merge-api / merge-csharp-client

The C Sharp SDK for accessing various Merge Unified APIs
Other
2 stars 1 forks source link

System.InvalidOperationException: 'An invalid request URI was provided. Either the request URI must be an absolute URI or BaseAddress must be set.' #7

Closed jmawebtech closed 6 months ago

jmawebtech commented 6 months ago

I receive this error:

System.InvalidOperationException: 'An invalid request URI was provided. Either the request URI must be an absolute URI or BaseAddress must be set.'

Here is my code:

Merge.Client.Merge merge = new Merge.Client.Merge( "OMIT", "OMIT" );

        var items = await merge.Accounting.Items.ListAsync(new Merge.Client.Accounting.ItemsListRequest()
        {
            CreatedAfter = DateTime.Now.AddDays(-1),
            CreatedBefore = DateTime.Now.AddDays(1)
        });

Let me know next steps.

dsinghvi commented 6 months ago

@jmawebtech thanks for filing this issue, we are on it!

jmawebtech commented 6 months ago

I also tried

        Merge.Client.Merge merge = new Merge.Client.Merge(

"OMIT", "OMIT", new Merge.Client.ClientOptions() { BaseUrl = "https://api.merge.dev" } );

when I call var Items, I get System.Exception was thrown.

dsinghvi commented 6 months ago

@jmawebtech we've root caused the issue and will be shipping a new SDK version tonight

jmawebtech commented 6 months ago

OK please respond when the package is available on Github.

dsinghvi commented 6 months ago

@jmawebtech version 0.0.6 has been published here!