diff --git a/src/lib/queryVersions.ts b/src/lib/queryVersions.ts index 4368c093..ac3b1428 100644 --- a/src/lib/queryVersions.ts +++ b/src/lib/queryVersions.ts @@ -94,7 +94,7 @@ async function queryVersions(packageMap: Index, options: Options = : (versionResult?.version ?? null) } catch (err: any) { const errorMessage = err ? (err.message || err).toString() : '' - if (errorMessage.match(/E404|ENOTFOUND|404 Not Found/i)) { + if (errorMessage.match(/E400|E404|ENOTFOUND|404 Not Found|400 Bad Request/i)) { return { error: `${errorMessage.replace(/ - Not found$/i, '')}. All ${ options.retry