Log errors to a channel and also fix/improve error handling

This commit is contained in:
2024-04-25 12:33:55 -05:00
parent 1a1019b37b
commit 9cb8c24e58
7 changed files with 95 additions and 52 deletions

@ -29,7 +29,7 @@ async function getAssetInfo(assetId) {
params: {
assetIds: assetId
},
validateStatus: (status) => status === 403 || status === 404 || (status >= 200 && status < 300) // Allow 403/404 as a valid status (don't throw an error)
validateStatus: (_status) => true
});
if (res.status < 200 || res.status > 300) {