Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
gcurato82
Partner - Contributor II
Partner - Contributor II

tRESTclient error

Good morning, 

I’m trying to make an API call with the tRESTClient component, to get me to return the access token for Microsoft.

unfortunately I continue to receive this error (img1)

0695b00000qO4efAAC.png

, the flow at the moment is drawn so (img2)

0695b00000qO45OAAS.png

Can someone give me a solution?

thanks to anyone who will help me

best regards

Labels (6)
8 Replies
Anonymous
Not applicable

Hi

The error message indicates the request body must contain the following parameters..., I recommend double-checking the body format and parameter values.

 

Regards

Shong

 

gcurato82
Partner - Contributor II
Partner - Contributor II
Author

thank you for your answer. 

how can I verify the body of the request? 

 

Anonymous
Not applicable

Do you have the link of online API documentation page? I would like to take a look at it.

Can you please share a screenshot of tXMLMap?

gcurato82
Partner - Contributor II
Partner - Contributor II
Author

Hi Shong, 

 

This is the screen of the tXMLMap component.

0695b00000qOpxVAAS.pngdocumentation is what you can find at this link

https://learn.microsoft.com/it-it/power-bi/developer/embedded/embed-tokens?tabs=embed-for-customers#embed-token

this section specifies:

0695b00000qOpklAAC.pngthank you very much

 

best regards

Anonymous
Not applicable

I see you let the grant type value as empty, set it as "your_authorization_code_value" and double check all the required parameters.

 

gcurato82
Partner - Contributor II
Partner - Contributor II
Author

Thanks I did not realize that a link is missing...I have reverted the values and they are correct...unfortunately I still receive the error message:

0695b00000qOsBEAA0.pngwhile from Postman I have no mistakes:

 0695b00000qOsAVAA0.png

Anonymous
Not applicable

Have a try to use tRest component instead of tRestClient component, add a Headers for Content-Type as "application/x-www-form-urlencoded", add the http body as like below:

"key1=value1&key2=value2&other_keys_values_pairs"

 

let me know if it works.

 

gcurato82
Partner - Contributor II
Partner - Contributor II
Author

Hi Shong, 

unfortunately I continue to receive this error:

 

0695b00000qPWY8AAO.pngthis is the configuration of the trest component:

 

0695b00000qPWS6AAO.png