We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c04e7b commit fb5ffd0Copy full SHA for fb5ffd0
src/backend/common/vendor/LastfmApiClient.ts
@@ -21,7 +21,8 @@ const badErrors = [
21
'api key suspended',
22
'invalid session key',
23
'invalid api key',
24
- 'authentication failed'
+ 'authentication failed',
25
+ 'invalid parameters'
26
];
27
28
const retryErrors = [
@@ -120,7 +121,7 @@ export default class LastfmApiClient extends AbstractApiClient {
120
121
} = e;
122
// for now check for exceptional errors by matching error code text
123
const retryError = retryErrors.find(x => message.toLocaleLowerCase().includes(x));
- let networkError = null;
124
+ let networkError = undefined;
125
if(retryError === undefined) {
126
const nError = getNodeNetworkException(e);
127
if(nError !== undefined) {
0 commit comments