question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unhandled exception. System.UriFormatException: Invalid URI: The format of the URI could not be determined.

See original GitHub issue

Describe 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:

  1. 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:closed
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
paulomorgadocommented, Feb 3, 2021

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.

0reactions
eddynakacommented, Feb 1, 2021

Correct! 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found