-
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
Facing error while using @salesforce/core on AWS serverless #2553
Comments
Hello @thebedroomprogrammer 👋 It looks like you didn't include the full Salesforce CLI version information in your issue. A few more things to check:
Thank you! |
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. |
@thebedroomprogrammer - the stack trace doesn't show it but I'm assuming the Logger creation is happening from other classes in |
This issue has been linked to a new work item: W-14424066 |
Summary
I am using the @salesforce/core package and just upgraded to version 5.2.9. The issue that I am running into now is that when running the code on the server I get the error
ERROR Error: unable to determine transport target for "../../lib/logger/transformStream"
, even though I am using the flagSF_DISABLE_LOG_FILE: true
in my env file to disable the logs. This was not happening in the previous version as the logger was honouring the flag passed in the env file.I looked at the code and I think that this is the code that is causing the issue.
Steps To Reproduce
Any serverless project that uses the @salesforce/core package with the version. 5.2.9 with AWS serverless should have the issue with the logs disabled.
Expected result
Since I had not opted for the logs I should not have got the error.
Actual result
Serverless function threw an error
ERROR Error: unable to determine transport target for "../../lib/logger/transformStream"
System Information
I am using zsh
The text was updated successfully, but these errors were encountered: