0

I have done following steps

  1. Deployed api on server
  2. Configure Azure Management Api Service to call api

Now

  1. Developer console i can successfully call api via azure api management.
  2. Also from C# console, it is called successfully.

But cannot access it via POSTMAN.(It return 404 - File or directory not found)

Don't know, is it common issue with postman?

Trying to search on google but no help found related to this issue.

Anybody has solution please help.

sangram parmar
  • 8,462
  • 2
  • 23
  • 47

2 Answers2

0

As I was using POSTMAN chrome extension, may be due to cross domain request or some proxy issue, It was not working.

After installing window app of POSTMAN.

Using the POSTMAN window app, I am able to access my API.

Still can't find the reason behind the POSTMAN Chrome extension.

But the window application is working. :)

sangram parmar
  • 8,462
  • 2
  • 23
  • 47
0

It's bit weird. In my case, Postman Chrome's extension works and Windows's App doesn't work. I am still finding the reason.

Sukhi
  • 13,261
  • 7
  • 36
  • 53
  • Window's app is latest? – sangram parmar Jul 23 '18 at 06:09
  • Yes. This has something to do with the security protocol. I think by default, the setting for Postman Windows's app and Chrome app is different (or perhaps the Chrome one's depend on Chrome browser setting/proxy setting). Until yesterday afternoon, I was not able to connect to Azure APIs. It works as soon as I changed the security protocol. (ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12) More details are https://stackoverflow.com/questions/28286086/default-securityprotocol-in-net-4-5 – Sukhi Jul 23 '18 at 09:47