-
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
Analyze Image is not working #28
Comments
Getting the same error in both VS2015 and VS2017. Tried clean, rebuild, build. Tried 2 different valid API keys. Same error. |
Hi folks - can you pull the latest source? The sample app now allows you to specify the endpoint address in addition to the API key. This is necessary because a given API key works only in a single endpoint/region (https://westus.api.cognitive.microsoft.com/vision/v1.0, for example). You can find the correct endpoint address on the Azure portal. |
Nope, still doing it. You're not passing the URL into the client, and it's hard coded in a few places too. |
I'm also having the same issue.
|
Few places, you find these line in common among all .cs files |
Hi Shanmurugan, |
@luthercrop Could you upload/send me the code snippet alone ?. |
@shanmurugan sorry forgot to comeback here and update... i managed to sort it out ....my API had a problem but was able to fix it ...thanks |
I have encountered this error after multiple builds..please resolve.. [15:17:20.828295]: VisionServiceClient is created |
yes just repmace by this code |
Similar issue, fixed it here https://github.com/itorian/Cognitive-Vision-Windows |
please reactivate if setting the endpoint does not solve your situation |
I get the following error when I Analyze the image
[14:13:52.548178]: VisionServiceClient is created
[14:13:52.559227]: Calling VisionServiceClient.AnalyzeImageAsync()...
[14:13:53.429685]: 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__42_1[TRequest,TResponse](Exception e)
at System.AggregateException.Handle(Func
2 predicate) at Microsoft.ProjectOxford.Vision.VisionServiceClient.<SendAsync>d__42
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 CallSite.Target(Closure , CallSite , Object ) at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0) at Microsoft.ProjectOxford.Vision.VisionServiceClient.<AnalyzeImageAsync>d__19.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__2.MoveNext() in C:\projects\Research\Cognitive-Vision-Windows\Sample-WPF\AnalyzePage.xaml.cs:line 117
--- 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:\projects\Research\Cognitive-Vision-Windows\Sample-WPF\AnalyzePage.xaml.cs:line 145
--- 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__15.MoveNext() in C:\projects\Research\Cognitive-Vision-Windows\Sample-WPF\ImageScenarioPage.cs:line 90
Screen Shot
https://prnt.sc/gog863
No changes made to the code or anything, the default is throwing an exception.
The text was updated successfully, but these errors were encountered: