supabase-swift icon indicating copy to clipboard operation
supabase-swift copied to clipboard

_invokeWithStreamedResponse does not return any Data when throwing a httpError

Open bbauman1 opened this issue 9 months ago • 3 comments

Bug report

  • [x] I confirm this is a bug with Supabase, not with my own application.
  • [x] I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

Understand that this function is marked experimental but creating an issue to track that when an httpError is thrown the Data object is always empty. I tried coming up with a fix here but it didn't seem to work. https://github.com/bbauman1/supabase-swift/commit/43d9f01d185b66ba5edc40d403499ad7b8794cf9

Also, lesser important, but the completionHandler doesn't always get called which leads to an error in Xcode logs

To Reproduce

Call _invokeWithStreamedResponse and have it throw an error

Expected behavior

Data object is not empty

Screenshots

If applicable, add screenshots to help explain your problem.

System information

  • OS: [e.g. macOS, Windows]
  • Browser (if applies) [e.g. chrome, safari]
  • Version of supabase-js: [e.g. 6.0.2]
  • Version of Node.js: [e.g. 10.10.0]

Additional context

Add any other context about the problem here.

bbauman1 avatar Jan 09 '25 21:01 bbauman1