microsoft / Cognitive-Vision-Android

Android SDK for the Microsoft Computer Vision API, part of Cognitive Services.
https://www.microsoft.com/cognitive-services/en-us/computer-vision-api
Other
139 stars 80 forks source link

Android 3.0 POST Error 401 Trial #18

Closed xaiyeon closed 6 years ago

xaiyeon commented 7 years ago

I'm using Android SDK API 26 with new Android Studio 3.0. I managed to successfully compile it... I signed up for a free 30 day trial for MSFT cog serverics, Computer Vision API to test it out, I tried both subscription keys for Computer Vision API Version 1.0. I Can't find where I can change my endpoint and both keys fail... Is something internally wrong with Microsoft?

https://puu.sh/y8G4H/261e12d7ce.png

I get this in Logcat, which is definitely something wrong with API. I can't fix an API: what should I do to get it working?

`10-27 13:14:12.207 16907-16907/com.microsoft.projectoxford.visionsample D/AnalyzeActivity: onActivityResult

10-27 13:14:12.530 16907-16907/com.microsoft.projectoxford.visionsample I/ExifInterface_JNI: Raw image not detected

10-27 13:14:12.530 16907-16907/com.microsoft.projectoxford.visionsample W/ExifInterface: Skip the tag entry since tag number is not defined: 2

10-27 13:14:12.561 16907-16907/com.microsoft.projectoxford.visionsample D/AnalyzeActivity: Image: file:///storage/emulated/0/Android/data/com.microsoft.projectoxford.visionsample/files/Pictures/IMG_1139534705.jpg resized to 720x1280

10-27 13:14:12.646 16907-16907/com.microsoft.projectoxford.visionsample I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@3c58e56 time:922156746

10-27 13:14:13.540 16907-19650/com.microsoft.projectoxford.visionsample W/DefaultRequestDirector: Authentication error: Unable to respond to any of these challenges: {azureapimanagementkey=WWW-Authenticate: AzureApiManagementKey realm="https://westus.api.cognitive.microsoft.com/vision/v1.0",name="Ocp-Apim-Subscription-Key",type="header"}`