Skip to content

serverResponse returns an empty string for _client.ApiUrl #170

@Nerfling

Description

@Nerfling

Hello everyone,

I'm trying to get this API to work, I created a simple settings file which has google username and password, longtitude and latitude and google as AuthType.

when I run this line:
await _client.Login.DoLogin();

all goes fine, but when I try to access inventory with:
var inventory = await _client.Inventory.GetInventory();

I get an error saying: Invalid URI: the hostname could not be parsed.

I debugged the login process and everything goes fine until the line:
98: _client.ApiUrl = serverResponse.ApiUrl;
in Login.cs

it seems that the serverResponse.ApiUrl always is an empty string.

I'm probably doing something wrong but I'm not sure what :)

If anyone can help me, I would appreciate it, I'll include an image where _client.ApiUrl is assigned in debug view.
capture3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions