Unhandled exception. System.UriFormatException: Invalid URI: The format of the URI could not be determined.
See original GitHub issueDescribe the bug
Unhandled exception. System.UriFormatException: Invalid URI: The format of the URI could not be determined.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at System.Uri..ctor(String uriString)
at Microsoft.DevSkim.CLI.Writers.SarifWriter.WriteIssue(IssueRecord issue) in D:\a\1\s\DevSkim-DotNet\Microsoft.DevSkim.CLI\Writers\SarifWriter.cs:line 26
at Microsoft.DevSkim.CLI.Commands.AnalyzeCommand.Run() in D:\a\1\s\DevSkim-DotNet\Microsoft.DevSkim.CLI\Commands\AnalyzeCommand.cs:line 241
at Microsoft.DevSkim.CLI.Commands.AnalyzeCommand.<>c__DisplayClass0_0.<Configure>b__0() in D:\a\1\s\DevSkim-DotNet\Microsoft.DevSkim.CLI\Commands\AnalyzeCommand.cs:line 61
at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
at Microsoft.DevSkim.CLI.Program.Main(String[] args) in D:\a\1\s\DevSkim-DotNet\Microsoft.DevSkim.CLI\Program.cs:line 15
To Reproduce Steps to reproduce the behavior:
devskim analyze . -f sarif -d
Expected behavior A SARIF file is generated
Versions(please complete the following information):
- OS: Windows 10 version 10.0.21301
- Devskim Version: 0.4.107+f42bc84e3e
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Invalid URI: The format of the URI could not be determined
When creating a Uri from these two I get the "format could not be determined" exception unless I use the constructor with the...
Read more >the format of the URI could not be determined.' error in ...
The UriFormatException is thrown by the Uri class constructor if the supplied URI could not be correctly parsed. The format for a valid...
Read more >Invalid URI: The format of the URI could not be determined.
While seeing the error logs in service center, it says "Invalid URI: The format of the URI could not be determined". The error...
Read more >System.UriFormatException
UriFormatException with Invalid URI: The format of the URI could not be determined message is one of the errors that is almost always...
Read more >Invalid URI: The format of the URI could not be determined
The Core Business Layer fails to start with the following error message: UriFormatException: Invalid URI: The format of the URI could not be...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I was using the old devskim tool package version 0.4.107+f42bc84e3e.
This is not happening with Microsoft.CST.DevSkim.CLI version 0.4.212+1efa72658c.
Correct! 😃