Skip to content

REST calls have empty Bearer token in the newest version (0.4.21) #162

@pareszka

Description

@pareszka

I upgraded Dataverse.Client and some of my tests started to fail. Retrieving records still work, as it's going through SOAP, but creating a new one fails. The exceptions is just:
JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.

I checked with Fiddler what exactly is going on. I called CreateAsync for a contact, I can see successful calls for RetrieveCurrentOrganizaton, WhoAmI and for retrieving EntityMetadata, but then there is a POST to /api/data/v9.2/contacts, which is getting status 401.
I checked requests headers and this is how Authorization header looks like:
image

I compared the call from my app with older version of Dataverse.Client (0.4.19), and it looks normally there:
image

I also noticed that Cookies section is empty for new version, when for old version it looks like that:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions