Closed ruidfigueiredo closed 5 years ago
That extra character is a byte order mark character:
@ruidfigueiredo this should now be resolved in version 3.5.7
@crhistianramirez Can you apply this fix to the Auth API? https://github.com/ordercloud-api/OrderCloud-JavaScript-SDK/blob/837a3952a2c7e5c5cdb0434b5e1a3b5a2ed23812/src/Sdk.js#L84
When using the ordercloud-javascript-sdk if there's an error, the response that contains the error message seems to contain a character that causes JSON.parse to fail internally in ordercloud. Here's an example:
Pasting what's on rawResponse to a text editor reveals the issue: