Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

serverResponse returns an empty string for _client.ApiUrl #170

Open
Nerfling opened this issue Apr 25, 2017 · 1 comment
Open

serverResponse returns an empty string for _client.ApiUrl #170

Nerfling opened this issue Apr 25, 2017 · 1 comment

Comments

@Nerfling
Copy link

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

@Lord-Haji
Copy link

Lord-Haji commented May 8, 2017

@Nerfling Checkout https://github.com/Necrobot-Private/PokemonGo.RocketAPI/
We maintain RocketAPI :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants