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

Crash when an invalid language is provided #181

Open
AlexLeonte opened this issue Oct 14, 2022 · 1 comment
Open

Crash when an invalid language is provided #181

AlexLeonte opened this issue Oct 14, 2022 · 1 comment

Comments

@AlexLeonte
Copy link

While calling appStore.app({ id: '....', lang: 'es', country: 'US' }) and if the lang is an invalid one, it will crash.

todo:

https://itunes.apple.com//lookup?id=479516143&country=US&entity=software&lang=xxxx

will return

{
"errorMessage":"Invalid value(s) for key(s): [language]",
"queryParameters":{"output":"json", "callback":"A javascript function to handle your search results", "country":"ISO-2A country code", "limit":"The number of search results to return", "term":"A search string", "lang":"ISO-2A language code"}
}

Can this happen when calling the .app method also be returned ?

Thanks

@WilderLopez
Copy link

any update for this ?

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