Recent searches
No recent searches
422 Unprocessable Entity when Calling secure API with JWT using client.request()
Posted Sep 15, 2021
We face an obstacle when integrating the authenticate that Zendesk support suggest for custom apps. We always getting 422 error code (Unprocessable Entity) with any api we call when enabling the secure:true which is documented in zendesk support website. Does someone has an explanation why this is happening?
The error message is: “failed to get installation and oauth information for app”
We understand that you can't get the authenticated user token within the Custom App, currently the App framework's client.request() method supports supports encoding and sending JSON Web Token (JWT) that should suffice to authenticate and authorize the Agent on your back-end.
0
4
4 comments
Eric Nelson
Hey Bram,
I see you have a ticket open for this issue, I'm going to work with you via that to get your issue sorted.
Have a wonderful day!
Eric Nelson | Manager - Developer Advocacy
0
Xavier COMBES
Hi, i have the same problem. What is the solution ?
0
Greg Katechis
Hi Xavier! The issue here could be related to any number of different situations, although the first thing that I would guess is that this is being tested locally. Are you seeing this issue occur when it is also installed? If so, could you please share the code snippet from where this error is being generated?
0
Xavier COMBES
Hello, thank you for your response. Indeed this happens because I run my app locally. By switching the secure parameter to false everywhere, it works. I haven't published the app yet.
0