SiddhantSadangi / st_supabase_connection

An easy-to-use Supabase connector for Streamlit that caches your API calls to make querying fast and cheap.
https://pypi.org/project/st-supabase-connection/
MIT License
99 stars 12 forks source link

[BUG] AttributeError: 'UploadResponse' object has no attribute 'json' #13

Open ivysdad opened 7 hours ago

ivysdad commented 7 hours ago

I have no idea why this is happening but I've using the supabase connection just fine with streamlit -- in fact running my app locally everything works. But the deployed version for the community cloud started giving this error a couple days ago (I'm running streamlit 1.31.1 and sb connection 1.2.2).

this is the error from the console:

/home/adminuser/venv/lib/python3.11/site-packages/st_supabase_connection/__i

nit__.py:217 in upload

214 │   │   │   │   │   │   "x-upsert": overwrite,                          

215 │   │   │   │   │   },                                                  

216 │   │   │   │   )                                                       

❱ 217 │ │ return response.json()

218 │                                                                       

219 │   def download(                                                       

220 │   │   self,                                                           

────────────────────────────────────────────────────────────────────────────────

AttributeError: 'UploadResponse' object has no attribute 'json'

SiddhantSadangi commented 6 hours ago

Hey @ivysdad , I could not reproduce this with the latest version of st-supabase-connection. Can you update st-supabase-connection to the latest version (2.0.0) and see if it still gives an error?

If it does, can you share the complete trackback, a reproducible code sample, and the file you are trying to upload?