-
-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug report
Describe the bug
maybe_single is supposed to return None when the query returns no rows. But now it throws an APIError:
postgrest.exceptions.APIError: {'message': 'Missing response', 'code': '204', 'hint': 'Please check traceback of the code', 'details': "Postgrest couldn't retrieve response, please check traceback of the code. Please create an issue in `supabase-community/postgrest-py` if needed."}
To Reproduce
Run any query that returns 0 rows, e.g:
postgrestClientInstance.from_('my_table').select('*').eq('content', 'nonexistent').maybe_single().execute()
Expected behavior
should return APIResponse(data=None)
as in previous versions
System information
- supabase 2.3.0
- postgrest 0.13.0
- PostgreSQL 15.1 (Ubuntu 15.1-1.pgdg20.04+1) on aarch64-unknown-linux-gnu, compiled by gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, 64-bit
Daco2020, aschung01, AurelReb, cbrzn, adarshpunj and 2 more
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working