MY ISSUE:
1- I am facing the validation error 400 on HTTP get request , but if i update or Installing app first time it validate successful and then when i go back to settings to view my configuration and want to update it validates failed. This happening on internal API (e.g https://api.freshchat.com/v2/channels) & any 3rd party API.
2- It works on my local environment , In fact i hit multiple times my validation process after and before the installation it works perfectly.
MY TRIES:
1- I visit community for the solution i got multiple answers on same issue. I tried, but unfortunately didn’t get the positive response.
2- Also run in INCOGNITO to avoiding cache but issue still persists.
My CODE:
Same request method goes with 3rd party API & issue persists on both API’s.
var url = https://api.freshchat.com/v2/channels;
let options = {
headers: {
“Authorization”: Bearer ${fcToken},
“Content-Type”: “application/json”
}
};
Hi @Furqan_Mehboob,
Good Day!
Have you whitelisted the domain? and due to security issue we blocked the template literal parsing in body, you are allowed to use only in header.
& i tried your mentioned solution of template literal parsing and fix it but unfortunately error 400 still persists,I am not having any post request to send body so here is my GET request code.
var url = 'https://api.freshchat.com/v2/channels';
let options = {
headers: {
"Authorization": `Bearer ${fcToken}`,
"Content-Type": "application/json"
}
};
client.request.get(url, options).then(*********
I would like to let you know this is my market place app so please try your best to help me out quickly that would be highly appreciated.
As per latest update from @Furqan_Mehboob, we scheduled two calls in which we provided all the info required. We haven’t heard back from any devrel since then. Can I please get an update on this at the earliest as this is blocking our app from working correctly.
@Saif@velmurugan@Hem Can you guys please look into this for me? Let me know if anything is required from our end to resolve this.
Hi Yusra & Furqan,
Thanks for being patient. I had the chance to look into the issue that is logged on our side. Good thing is that it’s already picked up by engineering Unfortunately, this hasn’t reached our live systems yet. I have notified the stakeholders on our side to fast track the same.