Options

API consumption works on local but throws 401 unauthorized error on live

Hello All,

I have created a function which consume a certain API which works fine in my local PC but throws following error on live server:
A call to System.Net.HttpWebRequest.GetResponse failed with this message: The remote server returned an error: (401) Unauthorized.

The api works perfectly on live server while consuming through Postman

Answers

Sign In or Register to comment.