Pesquisas recentes


Sem pesquisas recentes

422 Unprocessable Entity when Calling secure API with JWT using client.request()



Publicado 15 de set. de 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”

https://developer.zendesk.com/documentation/apps/app-developer-guide/using-the-apps-framework/#encoding-and-sending-json-web-tokens

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 comentários

image avatar

Eric Nelson

Zendesk Developer Advocacy

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


Hi, i have the same problem. What is the solution ?

0


image avatar

Greg Katechis

Zendesk Developer Advocacy

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


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


Por favor, entrar para comentar.

Não encontrou o que estava procurando?

Nova publicação