Proxy error: UnprocessableEntity - When make a request to external API



Publicado 16 feb 2022

Hi,

I'm testing our application locally using zat server and I've receiving this message Proxy error: {:code=>"UnprocessableEntity", :status=>"422", :title=>"Unprocessable Entity", :message=>"Failed to get installation and oauth information for app."} when a request is made locally to our server API. 

below is the code to generate the header for the API request

request(params) {
const settings = Object.assign({
type: 'GET',
secure: true,
contentType: 'application/json',
headers: {
Authorization: 'Basic {{setting.ApiToken}}',
Accept: `application/vnd.${API_VERSION}`,
},
}, params);

return this.client.request(settings);
}

 

 note: ZenDesk App works in production


0

0

0 comentarios

Iniciar sesión para dejar un comentario.

¿No encontró lo que buscaba?

Nueva publicación