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

Error returned from GetMembershipsFromCurrentUser endpoint #58

Closed
rking788 opened this issue Sep 6, 2017 · 7 comments
Closed

Error returned from GetMembershipsFromCurrentUser endpoint #58

rking788 opened this issue Sep 6, 2017 · 7 comments

Comments

@rking788
Copy link

rking788 commented Sep 6, 2017

When attempting to hit the GetMembershipsFromCurrentUser endpoint, I'm getting the following response.

{
    "ErrorCode": 99,
    "ThrottleSeconds": 0,
    "ErrorStatus": "WebAuthRequired",
    "Message": "Please sign-in to continue.",
    "MessageData": {}
}

I am passing the a valid X-API-Key header as well as a newly requested access_token in the Authorization header. I seem to get the same response if the Authorization header is left off completely.

@floatingatoll
Copy link

floatingatoll commented Sep 6, 2017 via email

@rking788
Copy link
Author

rking788 commented Sep 6, 2017

ya so if i make a call to the GetMembershipsById endpoint and provide a membership type and the membership ID returned from the tokens endpoint, that request succeeds and i can load membership data.

The problem is my server isn't storing tokens directly (and i'd like to keep it that way) they are handed to me when a request comes in, so that means i'm also not storing the membership ID from the tokens response. I would like a way to get profile data from only the access token.

@AllynH
Copy link

AllynH commented Sep 6, 2017

Hi guys,
I can confirm that other authenticated endpoints are working but I'm seeing the same issue as described here. GetMembershipsFromCurrentUser is returning WebAuthRequired.

@rking788
Copy link
Author

rking788 commented Sep 7, 2017

problem solved. I needed to change https://bungie.net/ to https://www.bungie.net/ and that fixed the problem. it seems like the redirection that occurs will remove the Authorization header. Probably related to things going on in this issue: #55

@rking788 rking788 closed this as completed Sep 7, 2017
@vthornheart-bng
Copy link
Contributor

Ahhh, sneaky. Hmm... well I'm glad it's working now! That's definitely an FAQ-worthy addition - thank you for reporting back about it!

@AllynH
Copy link

AllynH commented Sep 7, 2017

@vthornheart-bng
Can you please update the wiki: https://bungie-net.github.io/multi/index.html#about-connecting?
Connecting to the API -> Server Endpoint -> API Root Path:
https://bungie.net/Platform
to
https://www.bungie.net/Platform

As this may catch some other people out.

@vthornheart-bng
Copy link
Contributor

Good call for sure!

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

4 participants