[bug?] Supabase-swift SDK always times out on simulator

I'm building a native iOS app and have Supabase-swift integrated for fetching data from the database. However, when trying some easy queries, they always fail with a timeout 🤯 I have initialised the SupabaseClient as the docs state, using my project's URL and publishable key. If I run the same queries via cURL, they work fine and I get the expected data 🤔 as well as if I run my app in a real device. ℹ️ Additional information - SDK version: 2.31.2 - Happening on simulator (iPhone 16 Pro Max) - iOS 18.4 - Xcode version: 16.3
2 Replies
Barrios
BarriosOP2mo ago
Here are the logs from the Xcode console:
nw_connection_copy_connected_local_endpoint_block_invoke [C1] Connection has no local endpoint
nw_connection_copy_connected_local_endpoint_block_invoke [C1] Connection has no local endpoint
quic_conn_retire_dcid unable to find DCID 0164b080c97740146464e380977774ad46fdb7de
quic_conn_change_current_path [C1.1.1.1:2] [-0164b080c97740146464e380977774ad46fdb7de] tried to change paths, but no alternatives were found
nw_protocol_implementation_lookup_path [C1.1.1.1:2] No path found for ca4a0fab682a189f
nw_endpoint_handler_register_context [C1.1.1.1 104.18.38.10:443 failed socket-flow (satisfied (Path is satisfied), interface: en1[802.11], uses wifi)] Cannot register after flow table is released
nw_connection_register_context_block_invoke [C1] Failed to register context <nw_content_context request priority 0.500000 expiration 0>
Connection 1: received failure notification
Task <06AF0162-9526-48B5-829A-C1C27EC28A03>.<1> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x600000c03510 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <06AF0162-9526-48B5-829A-C1C27EC28A03>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <06AF0162-9526-48B5-829A-C1C27EC28A03>.<1>"
), NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=https://<my_project_id>.supabase.co/rest/v1/recipe?select=id&limit=10, NSErrorFailingURLKey=https://<my_project_id>.supabase.co/rest/v1/recipe?select=id&limit=10, _kCFStreamErrorDomainKey=4}
nw_endpoint_flow_fillout_data_transfer_snapshot copy_info() returned NULL
nw_connection_copy_connected_local_endpoint_block_invoke [C1] Connection has no local endpoint
nw_connection_copy_connected_local_endpoint_block_invoke [C1] Connection has no local endpoint
nw_connection_copy_connected_local_endpoint_block_invoke [C1] Connection has no local endpoint
quic_conn_retire_dcid unable to find DCID 0164b080c97740146464e380977774ad46fdb7de
quic_conn_change_current_path [C1.1.1.1:2] [-0164b080c97740146464e380977774ad46fdb7de] tried to change paths, but no alternatives were found
nw_protocol_implementation_lookup_path [C1.1.1.1:2] No path found for ca4a0fab682a189f
nw_endpoint_handler_register_context [C1.1.1.1 104.18.38.10:443 failed socket-flow (satisfied (Path is satisfied), interface: en1[802.11], uses wifi)] Cannot register after flow table is released
nw_connection_register_context_block_invoke [C1] Failed to register context <nw_content_context request priority 0.500000 expiration 0>
Connection 1: received failure notification
Task <06AF0162-9526-48B5-829A-C1C27EC28A03>.<1> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x600000c03510 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <06AF0162-9526-48B5-829A-C1C27EC28A03>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <06AF0162-9526-48B5-829A-C1C27EC28A03>.<1>"
), NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=https://<my_project_id>.supabase.co/rest/v1/recipe?select=id&limit=10, NSErrorFailingURLKey=https://<my_project_id>.supabase.co/rest/v1/recipe?select=id&limit=10, _kCFStreamErrorDomainKey=4}
nw_endpoint_flow_fillout_data_transfer_snapshot copy_info() returned NULL
nw_connection_copy_connected_local_endpoint_block_invoke [C1] Connection has no local endpoint
Barrios
BarriosOP2mo ago
After digging a bit more in the internet, I found this thread in Supabase's GitHub: https://github.com/orgs/supabase/discussions/35943 It points out to a bug within 18.4 simulators, that gets easily resolved by either downgrade or upgrade. I'll mark my issue as done ✅
GitHub
Supabase request failing on iOS 18.4 (iOS Simulator) · supabase ·...
Supabase Requests Fail on iOS Simulator After Upgrading to Expo SDK 52 Also Reported On: Supabase Discussion #35041 Description After upgrading my React Native project to Expo SDK 52, all Supabase-...

Did you find this page helpful?