dotnet-apiport icon indicating copy to clipboard operation
dotnet-apiport copied to clipboard

There was an unknown error code from the service: 'InternalServerError'. Please make sure you have the most up-to-date version.

Open Mattacks opened this issue 9 years ago • 13 comments

apiport.exe analyze -f folder Gives:

"There was an unknown error code from the service: 'InternalServerError'. Please make sure you have the most up-to-date version."

during 'Analyzing compatibbility

Reported when I have just downloaded the latest version 1.4.0-alpha-00119

When I ran it in 1.2 I got the same error, but with the following additional stack trace:

Detecting assembly references [Done] Sending data to service [Failed] ApiPort.exe Error: 0 : System.AggregateException: One or more errors occurred. ---> Microsoft.Fx.Portability.Portability AnalyzerException: There was an unknown error code from the service: 'InternalServerError'. Please make sure you have t he most up-to-date version. at Microsoft.Fx.Portability.CompressedHttpClient.d__7.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.Fx.Portability.CompressedHttpClient.d__31.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.Fx.Portability.ApiPortService.<SendAnalysisAsync>d__4.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.Fx.Portability.ApiPortClient.<GetResultFromServiceAsync>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 Microsoft.Fx.Portability.ApiPortClient.<GetAnalysisResultAsync>d__15.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.Fx.Portability.ApiPortClient.<WriteAnalysisReportsAsync>d__12.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 ApiPort.ConsoleApiPort.<AnalyzeAssembliesAsync>d__7.MoveNext() --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at ApiPort.Program.Main(String[] args) ---> (Inner Exception #0) Microsoft.Fx.Portability.PortabilityAnalyzerException: There was an unknown error code from th e service: 'InternalServerError'. Please make sure you have the most up-to-date version. at Microsoft.Fx.Portability.CompressedHttpClient.<CallInternalAsync>d__7.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.Fx.Portability.CompressedHttpClient.<CallAsync>d__31.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.Fx.Portability.ApiPortService.d__4.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.Fx.Portability.ApiPortClient.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 Microsoft.Fx.Portability.ApiPortClient.d__15.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.Fx.Portability.ApiPortClient.d__12.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 ApiPort.ConsoleApiPort.d__7.MoveNext()<---

There was an unknown error code from the service: 'InternalServerError'. Please make sure you have the most up-to-date version.

Mattacks avatar Dec 14 '16 10:12 Mattacks

@Mattacks Would you mind checking again? There was a service degradation around the time you created this issue. The service should be up and running now.

conniey avatar Dec 16 '16 01:12 conniey

Yes, that seems to have been it. However, the bug was not really about the failure but the uninformative error message. Have you fixed the error message?

Mattacks avatar Jan 06 '17 09:01 Mattacks

I have downloaded the Visual Studio extension for ".net portability analyzer" and I am getting a same error while running it on one of the project,

Using default target platforms.
To select platforms, visit Tools->Options->.NET Portability Analyzer.
Detecting assembly references                      [Done]
Analyzing compatibility                            [Failed]

There was an unknown error code from the service: 'InternalServerError'.  Please make sure you have the most up-to-date version.

and when i go to Portability Analyzer settings then it is showing me following error,

unable to contact service. Try again later.

is that a same issue or something different? or service is not available now?

rhafeez avatar Feb 09 '17 17:02 rhafeez

I have 1.3.0.119 version of this extension on my machine.

rhafeez avatar Feb 09 '17 17:02 rhafeez

I have tried to use this tool and got the next message: Detecting assembly references [Done] Analyzing compatibility [Failed]

There was an unknown error code from the service: 'InternalServerError'. Please make sure you have the most up-to-date version. I have installed this extension approximately 10 mins ago and reinstalled again. Please help me to analyze the code

EfimenkoAndrew avatar Sep 11 '20 13:09 EfimenkoAndrew

@conniey, please take a look

EfimenkoAndrew avatar Sep 11 '20 13:09 EfimenkoAndrew

@EfimenkoAndrew Thanks for reporting the problem. This error message normally means that you got an error from APIPort's server endpoint. Can you share the reproduction steps for the issue? There is an known issue getting the same error when select dgml format when using APIPort VS extension.

Lxiamail avatar Sep 11 '20 15:09 Lxiamail

@Lxiamail you are right. Everything works fine, my mistake. Thank you very much for your help

EfimenkoAndrew avatar Sep 11 '20 16:09 EfimenkoAndrew

I'm happy to hear that everything works fine.

Lxiamail avatar Sep 11 '20 16:09 Lxiamail

I had this same error today running portability analyzer in VS IDE - switching to command line worked just fine for exporting DGML...

image

alohaninja avatar Sep 11 '20 17:09 alohaninja

@alohaninja yes, it's a known issue, tracked by https://github.com/microsoft/dotnet-apiport/issues/896

Lxiamail avatar Sep 11 '20 17:09 Lxiamail

Is this issue resolved? This fails all the time both using the console app and the Add-In when generating DGML files. The step it fails is when it contacts the external API while "Analyzing compatibility". I couldn't make it work with Offline mode as well.

Did anybody have any workarounds or tried any other approach to build that dependency tree which is very helpful.

TIA

lalitmj avatar Nov 09 '21 15:11 lalitmj

I am using ApiPort.2.8.10 and Net runtime 3.1.22 x64 and am getting the same error.

I have tried a number of different report types DGML and HTML and it always fails.

pramsden avatar Dec 22 '21 08:12 pramsden