401 Access denied due to invalid subscription key in Central India Region - microsoft-cognitive

I've two Face API endpoints. One in US West and another in Central India. The one in US West works fine but the Central India endpoint is throwing 401 error.
{"error":{"code":"Unspecified","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."}}
I've verified all the endpoint, keys, location etc as mentioned in the blog (https://blogs.msdn.microsoft.com/kwill/2017/05/17/http-401-access-denied-when-calling-azure-cognitive-services-apis/)
Is there anything else I can try?

This is crazy! I deleted the resource and created it again and it started working. The only change I made was chose a new resource group instead of selecting an existing one. Gosh!

Related

Set country while scraping Amazon

I'm scraping prices from Amazon,Everything works fine except I'm facing an issue of location,apparently some products are not available outside of US so when my program runs it fails to fetch prices, I'm using Crawlera for US IP proxy, but it still fails for few requests.
Is there any way I can lock it US,using sending Cookies or Something like that.Any help or reference would be really helpful. Thanks in advance.
When you use Crawlera, you can create a new account through the web interface and set the region to US. Then replace your API key with the key for your newly created account.
See this guide for reference.

Verify if data was returned from preferred region in cosmos

So I have setup my cosmos in 2 regions (say West US and South Central US). I also have my app services running in these two region and connecting to cosmos. For app services running in each region I have configured my preferred region list. So for app service running WUS region, preferred list is in order [WUS, SCUS] and for app service running SCUS region, preferred list is in order [SCUS, WUS].
I want to verify if this configuration is working and my data was returned from cosmos region in order as i have mentioned. For example if accessed from WUS app service, verify if region chooses to execute the query was WUS and vice versa.
Is there any way to verify this?
NOTE : I am using spring-data-cosmosdb-2.1.2 to connect to cosmos.
Not sure if you can get that information from Response in code but you can make use of Cosmos Metrics in Azure portal.There you can filter the metrics on Region.
So, Attempt a request through App from region 1 and then verify in portal that expected Cosmos region served it. Test in same way for region 2.
Yes, just dump the Diagnostics returned in the response object and look for the FQDN to the endpoint. It will have a regional subdomain pre-pended to the URI.

getting this error even after putting different keys in facial recognition door sample

even after entering the key I have been subscribed to a standard plan of the face api service but getting this error constantly.! Tried changing the end points and creating s0 tier API to but getting same error .
The project is old, and does not allow for specifying the API endpoint. I've made a fix in a fork and a pull request to the main project. Cognitive Service API keys are valid in only one region (i.e. you cannot use a westeurope key in westus, etc.)

401 access denied with cognitive-services keys (not azure account)

I would like to test cognitive-services "face detect"
I created an account in :
https://www.microsoft.com/cognitive-services/en-US/subscriptions
with
Face-Free soubscription :
ok I have 2 keys
(not azure account)
now, I am trying to test in API Face Detect online :
https://westeurope.dev.cognitive.microsoft.com/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236/console
All my keys return 401
Sorry for my bad english : but where I have false ?
With best regards
Francis
Your non-Azure key you've obtained is for the westus region. You therefore have two options:
Use the westus API endpoint. This may have latency implications depending on where you are, and where your images are located.
Create a Face API account based on an Azure subscription. When you do so, you will be able to obtain a westeurope API key.

Has LinkedIn removed companySizes, industries and seniorities from company follower statistics available via the API?

Using the LinkedIn REST API to access the company-statistics dataset used to provide "companySizes", "industries" and "seniorities" arrays within the returned data. These have disappeared very recently (customer notified us of missing data 24 hours ago) - has LinkedIn removed this data, and if so, is there a workaround method of retrieving it?
Currently trying to access via https://api.linkedin.com/v1/companies/{company_id}/company-statistics?oath2_access_token={access_token}&format=json
Getting a response back, but there's a whole ton of data that's missing now.
Any ideas?

Resources