Jun 16, 2017

How to fix Microsoft Cognitive Face API invalid subscription key

cognitive_face.util.CognitiveFaceException: Error when calling Cognitive Face API:
status_code: 401
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.

To fix it, you can change your region.
A safe region is "West US".