jfrog / jfrog-visual-studio-extension

Apache License 2.0
10 stars 11 forks source link

Issue with JFrog Xray scanning of .NET 5 project #26

Open nemanjamaricfincore opened 2 years ago

nemanjamaricfincore commented 2 years ago

Please find error below:

[19/07/2022 14:48:08] An error occurred while sending the request. [19/07/2022 14:48:08] at JFrogVSExtension.HttpClient.HttpUtils.d2.MoveNext() in C:\robi\releasedir\jfrog-visual-studio-extension\JFrogVSExtension\Utils\HttpClient\HttpUtils.cs:line 42 --- 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 JFrogVSExtension.Tree.TreeViewModel.d21.MoveNext() in C:\robi\releasedir\jfrog-visual-studio-extension\JFrogVSExtension\UI\Panel\Tree\TreeViewModel.cs:line 72 [19/07/2022 14:48:09] An error occurred while sending the request. [19/07/2022 14:48:09] at JFrogVSExtension.HttpClient.HttpUtils.d2.MoveNext() in C:\robi\releasedir\jfrog-visual-studio-extension\JFrogVSExtension\Utils\HttpClient\HttpUtils.cs:line 42 --- 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 JFrogVSExtension.Tree.TreeViewModel.d21.MoveNext() in C:\robi\releasedir\jfrog-visual-studio-extension\JFrogVSExtension\UI\Panel\Tree\TreeViewModel.cs:line 72

I tried this with multiple projects that we have and the error is the same. Can you please advice?

Many thanks

sdvck commented 2 years ago

Hi,

I have experienced similar error when running JFrog analysis from VS JFrog Extension, with the stacktrace:

[20/07/2022 11:03:16] Object reference not set to an instance of an object. [20/07/2022 11:03:16] at JFrogVSExtension.Data.DataService.populateRootElements(Projects projects) in C:\robi\releasedir\jfrog-visual-studio-extension\JFrogVSExtension\UI\Panel\DataService.cs:line 69 at JFrogVSExtension.Tree.TreeViewModel.d__21.MoveNext() in C:\robi\releasedir\jfrog-visual-studio-extension\JFrogVSExtension\UI\Panel\Tree\TreeViewModel.cs:line 114

I am using Visual Studio Professional 2019, Version 16.9.2. JFrog Extension version is 1.1.0

Can you please advice?

Best regards, Stefan

talarian1 commented 2 years ago

Hi @nemanjamaricfincore, @sdvck Thanks for reporting this issue. Our apologies for the inconvenience caused by this issue. It seems like this is a problem with Xray itself - a fix will be included in the next Xray version.

nemanjamaricfincore commented 2 years ago

Hi @talarian1,

Thank you so much for looking into this. Any idea about timelines and when we can expect new version of XRay? Thanks, Nemanja

eyalbe4 commented 2 years ago

The fix is included in version 3.54.5 of Xray, which should become available shortly @nemanjamaricfincore.

talarian1 commented 1 year ago

Hi @nemanjamaricfincore @sdvck, Dose the Xray upgrade solve the issue?