You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 23, 2026. It is now read-only.
This mismatch make it difficult to correctly handle errors on the frontend.
I'd like to use the isStorageError function defined in storage-js, but it does not recognize errors thrown from the API
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
isStorageError correctly identifies when the storage API has thrown an error. StorageApiError has the correct fields that correspond to the returned error.
System information
Version of supabase-js: 2.2.0 (though this mismatch persists in the main branch)
Bug report
Describe the bug
The StorageApiError class defined in storage-js has a
statusfield.The StorageError defined in storage-api has a
statusCodefield.This mismatch make it difficult to correctly handle errors on the frontend.
I'd like to use the
isStorageErrorfunction defined instorage-js, but it does not recognize errors thrown from the APITo Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Expected behavior
isStorageErrorcorrectly identifies when the storage API has thrown an error.StorageApiErrorhas the correct fields that correspond to the returned error.System information