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

Apple API returns 401 #2

Closed
Sn8z opened this issue Mar 16, 2018 · 5 comments
Closed

Apple API returns 401 #2

Sn8z opened this issue Mar 16, 2018 · 5 comments

Comments

@Sn8z
Copy link
Owner

Sn8z commented Mar 16, 2018

Currently the storefronts endpoint(https://api.music.apple.com/v1/storefronts) returns a 401 Unauthorized error, not sure why as it shouldn't require any special kind of key etc. Get all storefronts
Not the biggest issue since we can still search and use Poddr, the only issue is that we can't change the default region to use. There's a built in fallback list of regions that is kicking in atm but this should be solved.

@Sn8z Sn8z added the bug label Mar 16, 2018
@Sn8z
Copy link
Owner Author

Sn8z commented Mar 20, 2018

The API endpoint is now working properly again so the issue will be closed, but there's a new improved fallback in the works that should help with this kind of issue in the future.

@Sn8z Sn8z closed this as completed Mar 20, 2018
@Sn8z Sn8z reopened this Mar 20, 2018
@Sn8z
Copy link
Owner Author

Sn8z commented Mar 20, 2018

Error seems to come and go so I will reopen the issue... But I managed to get a up to date JSON during the short time it did work so I should be able to make a great fallback function. If the API keeps on behaving like this I just might decide to only rely on a local JSON with info for the storefronts.

@Sn8z Sn8z added the api label Mar 20, 2018
@shkar62
Copy link

shkar62 commented Mar 23, 2018

I am getting 401 unauthorised every time, I hit the API. The same error comes while I do the store front lookup too. Can somebody assist?

@Sn8z
Copy link
Owner Author

Sn8z commented Mar 23, 2018

@shkar62 I managed to save a JSON response of the endpoint for all storefronts which you could copy and use while Apple is sorting out their issues...
Get all storefronts

When it comes to the lookup for separate storefronts I'm afraid I can't help you :(

@Sn8z
Copy link
Owner Author

Sn8z commented May 30, 2018

This issue will now be closed since Poddr is now using a local copy of the API response. The API seems to be more reliable and I might consider switching back to it in the future.

@Sn8z Sn8z closed this as completed May 30, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants