Incorrect return type of Response
on upload
method from supabase.storage.from_
#1016
Closed
2 tasks done
Labels
bug
Something isn't working
Bug report
Describe the bug
The
upload
method comingsupabase.storage.from_
has the return type ofResponse
in thestorage3/_sync/file_api.py
:While the method
_upload_or_update
returns anUploadResponse
type object :To Reproduce
This inconsistency breaks some of the code in tutorials where for example a
200
response is being checked on aResponse
type object here . For example:Expected behavior
The correct HTTP
Response
type should be returned with the relevant attributes.Screenshots
I can provide a screenshot but I think I've debugged where the error is coming from.
System information
supabase~=2.10.0
(installeduv add supabase
)The text was updated successfully, but these errors were encountered: