Log errors to a channel and also fix/improve error handling
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user