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.

[QUESTION] {"This operation is not supported for a relative URI."}

See original GitHub issue

I’m getting this error, my code is:

`private bool InsertBotConfigToDb(string path) {

            var stream = new StreamReader(path).ReadToEnd();
        // Open data file (or create if not exits)
        using (var db = new LiteDatabase(Server.MapPath("~/db.db")))
        {
            // Get customer collection
            var col = db.GetCollection<BotConfig>("botconfigs");

            var config = JsonConvert.DeserializeObject<BotConfig>(stream);

            // Insert new customer document
            col.Insert(1, config);


            //var result = col.Find(x => x.Name.StartsWith("Jo"));
        }
        return true;
    }`

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
JensSchadroncommented, Feb 12, 2020

@mbaletic does this mean your issue has been resolved?

0reactions
JensSchadroncommented, Feb 11, 2020

Could you provide us with the stacktrace of the exception? Also, it might speed things up if we could get some minimal code that easily reproduces your exception as I can’t seem to reproduce your issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

This operation is not supported for a relative URI, error ...
As the exception message indicates, relative URI is not allowed. Try removing the prefix="item" and make all of them an absolute URI.
Read more >
This operation is not supported for a relative URI. at System ...
Umbraco 7 We have recently upgraded a website from v6 to v7.10 and are now seeing regular errors in the error logs: 2018-08-08...
Read more >
This operation is not supported for a relative URI, error ...
As the exception message indicates, relative URI is not allowed. Try removing the prefix="item" and make all of them an absolute URI.
Read more >
Link Validation - "This operation is not supported for a relative
I have a EPiServer CMS 7.13 web site and is trying to run the Link Validation scheduled job. However, the job always fails...
Read more >
Could not query build definitions. This operation is ...
This operation is not supported for a relative URI." Azure DevOpsAzure DevOpspipelines.. This issue is read only, because it has been in ...
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