Hi support,
I’m trying to use the ‘Call an API’ function in my flow to make a POST to Microsoft Graph to get an access token.
However, I receive an error:
“error”: “invalid_request”, “error_description”: "AADSTS900144: The request body must contain the following parameter: ‘grant_type’
The puzzling part is that my API call does have the ‘grant_type’ key in the body.
And when I copy the same key/value pairs into Postman and make the same request, it succeeds and returns the desired access token:
Is the API call in my flow converting the ‘grant_type’ key into a non-string value?
Interesting. @DemocracyManifest - Could you please try this API call in the Run Code
node or in a Custom node? Gumloop Custom Nodes
If it works in those nodes we can investigate what might be going wrong here.
Thanks for the response, Wasay.
I used a Run Code node with Python and was able to generate a token successfully.
Gotcha! Glad you’re unblocked. Could you share the run link from the history page where the ‘Call API’ was not working?
https://www.gumloop.com/history
system
Closed
5
This topic was solved and automatically closed 60 minutes after the last reply. New replies are no longer allowed.