nango icon indicating copy to clipboard operation
nango copied to clipboard

Error during baseUrl interpolation using the Salesforce integration

Open guillaumemeyer opened this issue 5 years ago • 5 comments

Looks like the ${auth.tokenResponse.body.instance_url} tag from the baseUrl property of the Salesforce integration is never available and generates an exception during the interpolation. A quick analysis shows that the tokenResponse property doesn't exist, but the tokenResponseJSON is there: image

guillaumemeyer avatar Nov 11 '20 00:11 guillaumemeyer

@Frenchcooc is it something that could be solved just by updating the configuration or does it needs a fix?

guillaumemeyer avatar Nov 16 '20 16:11 guillaumemeyer

@guillaumemeyer looks like a glitch indeed. I'd recommend that you first give a try by updating the integration's configuration file to tokenResponseJSON. Did you try that already?

Frenchcooc avatar Nov 17 '20 09:11 Frenchcooc

I tried but the tokenResponseJSON is... wait for it... a stringified JSON, not an object :-( And through the interpolation, I can't use something like ${JSON.parse(auth.tokenResponseJSON).body.instance_url} as far as I can remember...

guillaumemeyer avatar Nov 20 '20 09:11 guillaumemeyer

Looks like a cat biting his tail to me... Will give it a try asap.

Frenchcooc avatar Nov 23 '20 09:11 Frenchcooc

Any news? Any way I can help?

guillaumemeyer avatar Jan 05 '21 22:01 guillaumemeyer