-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The WPF app raises a ClientException #10
Comments
HI @shajmerchant. The vision service was experiencing intermittent errors yesterday, but has now been resolved. Can you confirm if you still see the issue? |
I'm currently running into the same problem: Microsoft.ProjectOxford.Vision.ClientException: Exception of type 'Microsoft.ProjectOxford.Vision.ClientException' was thrown. |
i have the same problem. [14:23:27.918176]: VisionServiceClient is created |
Same Exception Here: any help please ??? |
i have the same issue in the 'Microsoft.ProjectOxford.Vision' project Microsoft.ProjectOxford.Vision.ClientException: Exception of type 'Microsoft.ProjectOxford.Vision.ClientException' was thrown. |
Same issue: [14:41:55.845689]: VisionServiceClient is created |
I found the same problem... and in the "Error" property inside the Exception, I can see the message: "Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription." I just created the Key for "Computer Vision API" and it is valid for 30 days. UPDATE |
Could you try changing the endpoint to https://westcentralus.api.cognitive.microsoft.com/vision/v1.0 and see if the microsoft.com/cognitive keys are working? You can change the endpoint by passing it to the VisionServiceClient when it is created. For example on the analyze page it can be changed here: https://github.com/Microsoft/Cognitive-Vision-Windows/blob/master/Sample-WPF/AnalyzePage.xaml.cs#L76 |
I have tried the C# Getting started sample, which DOES use that endpoint, and subscription key still fails.:
Returns response code 401 with message "Access denied" |
That's using westus can you try with https://westcentralus.api.cognitive.microsoft.com/vision/v1.0 ? |
Sorry, I missed that distinction! Yes, I changed it to westcentralus and it worked. Thanks for your assistance. |
please try to resolve my exception: [15:17:20.828295]: VisionServiceClient is created |
Closing for now. If you're are still seeing |
[10:57:13.233378]: VisionServiceClient is created
[10:57:13.267888]: Calling VisionServiceClient.AnalyzeImageAsync()...
[10:57:16.562135]: Microsoft.ProjectOxford.Vision.ClientException: Exception of type 'Microsoft.ProjectOxford.Vision.ClientException' was thrown.
at Microsoft.ProjectOxford.Vision.VisionServiceClient.HandleException(Exception exception)
at Microsoft.ProjectOxford.Vision.VisionServiceClient.b__39_1[TRequest,TResponse](Exception e)
at System.AggregateException.Handle(Func
2 predicate) at Microsoft.ProjectOxford.Vision.VisionServiceClient.<SendAsync>d__39
2.MoveNext()--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ProjectOxford.Vision.VisionServiceClient.d__21
1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.ProjectOxford.Vision.VisionServiceClient.<AnalyzeImageAsync>d__20.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter
1.GetResult()at VisionAPI_WPF_Samples.AnalyzePage.d__1.MoveNext() in C:\Users\smerc\Cognitive-Vision-Windows\Sample-WPF\AnalyzePage.xaml.cs:line 86
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at VisionAPI_WPF_Samples.AnalyzePage.d__3.MoveNext() in C:\Users\smerc\Cognitive-Vision-Windows\Sample-WPF\AnalyzePage.xaml.cs:line 141
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at VisionAPI_WPF_Samples.ImageScenarioPage.d__13.MoveNext() in C:\Users\smerc\Cognitive-Vision-Windows\Sample-WPF\ImageScenarioPage.cs:line 88
The text was updated successfully, but these errors were encountered: