app-store-scraper icon indicating copy to clipboard operation
app-store-scraper copied to clipboard

Crash when an invalid language is provided

Open AlexLeonte opened this issue 3 years ago • 1 comments

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

AlexLeonte avatar Oct 14 '22 18:10 AlexLeonte

any update for this ?

WilderLopez avatar Aug 15 '23 16:08 WilderLopez