You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I use scratch orgs on my project and I had the error "URI malformed" on several sf commands:
sf project retrieve start
sf project reset tracking
I found a workaround to avoid this error, I had this stack trace when I executed these commands with "--dev-debug" ("sf project reset tracking --dev-debug" here) :
Error (1): URI malformed
*** Internal Diagnostic ***
URIError: URI malformed
at decodeURIComponent (<anonymous>)
at getDecodedKeyIfSourceMembersHas (C:\Users\*****\AppData\Roaming\npm\node_modules\@salesforce\cli\node_modules\@salesforce\source-tracking\lib\shared\remoteSourceTrackingService.js:439:29)
at RemoteSourceTrackingService.getSourceMember (C:\Users\*****\AppData\Roaming\npm\node_modules\@salesforce\cli\node_modules\@salesforce\source-tracking\lib\shared\remoteSourceTrackingService.js:373:36)
at C:\Users\*****\AppData\Roaming\npm\node_modules\@salesforce\cli\node_modules\@salesforce\source-tracking\lib\shared\remoteSourceTrackingService.js:313:39
at Array.forEach (<anonymous>)
at RemoteSourceTrackingService.trackSourceMembers (C:\Users\*****\AppData\Roaming\npm\node_modules\@salesforce\cli\node_modules\@salesforce\source-tracking\lib\shared\remoteSourceTrackingService.js:309:23)
at RemoteSourceTrackingService.reset (C:\Users\*****\AppData\Roaming\npm\node_modules\@salesforce\cli\node_modules\@salesforce\source-tracking\lib\shared\remoteSourceTrackingService.js:152:20)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SourceTracking.resetRemoteTracking (C:\Users\*****\AppData\Roaming\npm\node_modules\@salesforce\cli\node_modules\@salesforce\source-tracking\lib\sourceTracking.js:389:30)
at async Promise.all (index 0)
******
Then, I can try catch this block of code as follow, and everything work just fine:
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.
I don't see an error when running decodeURIComponent('CustomMetadata__invalid_NAF_codes.X4761Z'). Regardless, I'll mark it as a bug and get a fix going.
shetzel
added
bug
Issue or pull request that identifies or fixes a bug
and removed
investigating
We're actively investigating this issue
labels
Jan 17, 2024
Summary
Hello, I use scratch orgs on my project and I had the error "URI malformed" on several sf commands:
I found a workaround to avoid this error, I had this stack trace when I executed these commands with "--dev-debug" ("sf project reset tracking --dev-debug" here) :
Then, I can try catch this block of code as follow, and everything work just fine:
Expected result
No error thrown
Actual result
"URI malformed" Error
System Information
I used shell terminal
Additional information
The text was updated successfully, but these errors were encountered: