Problem in making API calls

Hi team,

Hope you are all doing well and safe.

I was not able to do success full API calls to customer event though they have whitelisted the Ip’s mentioned in our Freshdesk documentation

Region - INDIA
IP’s Listed in Documentation - and

I don’t get any authorization error when I try from app.js and I get authorization error when I do API call from server.js(serverless app)

This is the authorization error that I have mentioned above

{ status: 500, headers: { 'content-type': 'application/json;charset=UTF-8', 'content-length': '61', date: 'Wed, 12 Aug 2020 03:08:20 GMT', connection: 'close', server: 'API Gateway' }, response: '{\n"success":false,\n"response":401,\n"message":"Unauthorized"\n}', attempts: 1, errorSource: 'APP' }

Before Whitelisting, I was not able to do API calls from app.js itself, FYI

Any quick update would be really helpful thanks :slightly_frowning_face:

Can you send the the code snippets of the of a example request that your app sends to the customer’s software?
cc: @Manigandan_Ravi

Hi @Saif,

Thanks for your quick reply I found the mistake, it was something that I did in code.

1 Like