-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sfdx force:org:create
fails on converting circular structure to JSON
#1928
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
Confirming I have the same issue on a Bitbucket pipeline |
Me too on bitbucket pipeline |
Same issue on my Side on Bitbucet also, I changed the image from my pipeline But it's not an explanation on the root cause we faced at the beginning. |
This issue has been linked to a new work item: W-12535806 |
I can reproduce this locally, no CI involved. I see the bug happen down in the logging framework, trying to figure out why and how to prevent it. |
|
Confirming this is occurring in Github Actions as well, but glad @mshanemc was able to reproduce locally.
Rolling back to 7.186.2 fixed it for me. I've started to call out a specific version in my CI/CD scripts for stability.
|
best workaround so far: another: |
Just to confirm that I am also seeing this error in our CI builds:
When I set |
Why is debug is the default? |
@Kevmo92 there's no default log level, this only happens if you set |
@cristiand391 Why isn't there a default log level set 🤔 |
@mshanemc Instead of consumers implementing a workaround would it make more sense for a default log level to be set in the cli that's attempting to log? |
@Kevmo92 do you get the error without setting |
For our CI builds, we want as much info as reasonable in the logs so that, when a build breaks, it's easier to diagnose the issue. We set a global It's unfortunate as I would prefer to have that extra level of log information (I assume that's what "debug" is for... debugging), but stepping down to |
@cristiand391 @Kevmo92 According to Salesforce CLI Configuration and Tips / Log Messages and Log Levels:
|
@jdatskuid I think that was being set here: So, commands supporting That code was deprecated and removed for almost all commands now, and using that flag just prints a msg showing how to set the log level using the env var: I'll double-check with my team, otherwise we'll update the docs. |
@jdatskuid A teammate mentioned the default log level set is still set to While it's not exactly set as a global in sfdx like with the To sum up:
|
yes |
Are there any plans to work on a fix that doesn't require an environment variable to be set? Could sfdx cli set the "necessary" env variable in the users session if it's not set? Or is the plan to just replace the logger system and let this issue linger in the meantime? |
@Kevmo92 - Yes there are plans to fix the log level bug. However, there are 2 workarounds to this issue:
|
fixed here: salesforcecli/plugin-org#708 and already available on latest CLI. |
Summary
sfdx force:org:create
fails on converting circular structure to JSON. This fails when default Devhub username is set andSFDX_LOG_LEVEL
variable is provided. It crashes even without any parameters tosfdx force:org:create
.Steps To Reproduce:
sfdx auth sfdxurl store -f auth.txt -a prod -d
(note option-d
)SFDX_LOG_LEVEL=debug sfdx force:org:create
Expected result
Regular message about lacking params of
force:org:create
command.Actual result
an error:
System Information
Additional information
it fails same way on latest-rc 7.188.1
might be related to:
Converting circular structure to JSON
error when creating package version withoutversionName
#1914The text was updated successfully, but these errors were encountered: