Proxy error: UnprocessableEntity - When make a request to external API
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
-
I see you are testing locally and the request type is secure. Maybe this helps
-
Secure settings don't work if you're testing the app locally using the ZAT server. However, you can install the app as a private app and then use ZAT to make updates to the installed app. You can also run the app locally after installing the app remotely. See Testing an app with secure settings locally.
-
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
1 Kommentare