I created an “Instant API” that I want to run through my Microsoft Azure API Management Portal. I know the tool well and have never run into issues.
My Wolfram API works when visited in a browser directly and when I visit the Azure proxy API directly in a browser as well.
I am not sure if this is related to cross domain scripting blocks or what. It is very strange that it works in a browser but inaccessible from Azure server. I can’t find any documentation helpful after searching here, Google and stackoverflow.
Thanks for the tip. I hope they didn’t block API access from servers on purpose. I wonder, is there a way to set some permissions in my WL app that allows Azure? I have it set to Public.
The UserAgent shouldn’t matter. We want Instant APIs to be accessed from any user agent imaginable, so, no, we don’t block API access on purpose for Azure or anything else.
Chances are there’s a different issue at play and the different User-Agent string just happens to coincide.
If you have a sequence of concrete steps we could take to illustrate the problem (particularly how to make the HTTP request that fails), we could debug it.
{
“statusCode”: 401,
“message”: “Access denied due to invalid subscription key. Make sure you are subscribed to an API you are trying to call and provide the right key.”
}