question

Brent Batas (Lisk) avatar image
Brent Batas (Lisk) asked

GetUserAccountInfoAsync returns Invalid URI while other API calls work fine

On my game server, when I call GetUserAccountInfoAsync, I get a

ConnectionError:

Invalid URI: The hostname could not be parsed.

What's weird is that (1) other ServerAPI calls work fine on my game server, and (2) the identical GetUserAccountInfoAsync call on my lobby server works fine.

I'm not really sure what's going on here.

apis
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

That's a low-level error response message indicating something is bad in the URI you're passing into the call. Can you try putting a breakpoint in your project where the actual http call is made, and check what it's set to?

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Brent Batas (Lisk) avatar image Brent Batas (Lisk) commented ·

Thanks for the reply. I figured it out! Pulling the latest SDK gave me a more helpful error message, which was that the TitleID wasn't set.

After setting the TitleID correctly, the call now works.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.