Closed aashishpatil closed 4 days ago
Hi @aashishpatil, thank you for reporting this issue. Could you please try these?
Hey @aashishpatil. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.
If you have more information that will help us get to the bottom of this, just add a comment!
I am facing similar issue.
Same Thing
nw_endpoint_flow_failed_with_error [C1 2607:f8b0:4007:813::200a.443 failed parent-flow (unsatisfied (No network route), ipv4, dns)] already failing, returning
nw_connection_get_connected_socket_block_invoke [C1] Client called nw_connection_get_connected_socket on unconnected nw_connection
TCP Conn 0x30340ea80 Failed : error 0:50 [50]
Hi @aashishpatil, thank you for reporting this issue. Could you please try these?
- Set logLevel to "kLogLevelDebug" and run the app again
- Check firestore rules, is there any rules that could forbid reading?
- Provide a minimal repro app, it would be easier if we can reproduce the bug at our end
- Is the error happening in each run or intermittently?
- Could this be simulator/device specific: Xcode 14 vs 15, iOS vs ipadOS, alpha vs beta?
Here is the log after setting debug.
There aren't any rules - confirmed. It's able to write successfully but a read immediately after fails with the network error which is odd since write just worked.
Error is consistently happening.
Environment: (I've updated since my original comment) Xcode 16, iPhone Sim iOS 18.0. Firebase 11.3.0
(Error log was captured before update but same issue happens even after update)
having same issue
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
I0000 00:00:1727865214.199402 2103817 config.cc:230] gRPC experiments enabled: call_status_override_on_cancellation, http2_stats_fix, monitoring_experiment, pick_first_new, trace_record_callops, work_serializer_clears_time_cache
nw_endpoint_flow_failed_with_error [C1 2607:f8b0:4023:1004::5f.443 failed parent-flow (unsatisfied (No network route), ipv4, dns)] already failing, returning
nw_connection_get_connected_socket_block_invoke [C1] Client called nw_connection_get_connected_socket on unconnected nw_connection
TCP Conn 0x303edef80 Failed : error 0:50 [50]
I0000 00:00:1727865214.721636 2103867 subchannel.cc:806] subchannel 0x1091ab000 {address=ipv6:%5B2607:f8b0:4023:1004::5f%5D:443, args={grpc.client_channel_factory=0x300de84c0, grpc.default_authority=firestore.googleapis.com, grpc.http2_scheme=https, grpc.internal.channel_credentials=0x302bf1b60, grpc.internal.client_channel_call_destination=0x105c24328, grpc.internal.event_engine=0x300de88a0, grpc.internal.security_connector=0x3021d8d80, grpc.internal.subchannel_pool=0x3024f6530, grpc.keepalive_time_ms=30000, grpc.primary_user_agent=grpc-c++/1.65.1, grpc.resource_quota=0x3001700f0, grpc.server_uri=dns:///firestore.googleapis.com}}: connect failed (UNKNOWN:(domain:NSPOSIXErrorDomain, code:50, description:The operation couldn’t be completed. Network is down) {file:"/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/ZipRelease/2024-07-25T04-01-28/project-ios/Pods/gRPC-Core/src/core/lib/transport/error_utils.cc", file_line:150, created_time:"2024-10-02T03:33:34.72014-07:00", grpc_status:2}), backing off for 500 ms
I0000 00:00:1727865215.266836 2103865 subchannel.cc:761] subchannel 0x1091ab000 {address=ipv6:%5B2607:f8b0:4023:1004::5f%5D:443, args={grpc.client_channel_factory=0x300de84c0, grpc.default_authority=firestore.googleapis.com, grpc.http2_scheme=https, grpc.internal.channel_credentials=0x302bf1b60, grpc.internal.client_channel_call_destination=0x105c24328, grpc.internal.event_engine=0x300de88a0, grpc.internal.security_connector=0x3021d8d80, grpc.internal.subchannel_pool=0x3024f6530, grpc.keepalive_time_ms=30000, grpc.primary_user_agent=grpc-c++/1.65.1, grpc.resource_quota=0x3001700f0, grpc.server_uri=dns:///firestore.googleapis.com}}: backoff delay elapsed, reporting IDLE
Environment: Xcode 16, Firebase 11.3.0. Checked on iphone 15, 16, ios 17, 18. Same issue everywhere both in simulator and on physical device
Same issue is happening for both simulator and OS device, on different versions, I think we can rule them out.
Out of curiosity, is this happening to SDK version 10.x.x as well? So far, it is reported on 11.2.0 and 11.3.0
Log has showed that the network is connected and the app have been receiving responses from backend. However, no docs has been sent over.
I am unable to reproduce the same error on my app. Could you please provide a minimal repro app?
To others who reported the same issue: Are you able to see the documents while receiving the erros, or no documents can be seen on the frontend at all?
Issue started appears in all 11.X versions starting with 11.0.0 Latest 10.X version does NOT have the issue Issue happens every time I start the app and the documents actually are loaded despite the errors Debug logs:
11.3.0 - [FirebaseCore][I-COR000001] Configuring the default app.
11.3.0 - [GoogleUtilities/AppDelegateSwizzler][I-SWZ001008] Successfully created App Delegate Proxy automatically. To disable the proxy, set the flag GoogleUtilitiesAppDelegateProxyEnabled to NO (Boolean) in the Info.plist
11.3.0 - [GoogleUtilities/SceneDelegateSwizzler][I-SWZ001114] Successfully created Scene Delegate Proxy automatically. To disable the proxy, set the flag GoogleUtilitiesAppDelegateProxyEnabled to NO (Boolean) in the Info.plist
11.3.0 - [FirebaseCore][I-COR000033] Data Collection flag is not set.
11.3.0 - [FirebaseFirestore][I-FST000001] Initializing. Current user: boucR3OCVAONBMD3Wk6FtIWjZPz1
11.3.0 - [FirebaseFirestore][I-FST000001] Using /var/mobile/Containers/Data/Application/9A281A34-DC37-4977-B1BA-063E51D7581D/Library/Application Support/firestore/__FIRAPP_DEFAULT/todo-app-7b13b/main for LevelDB storage
11.3.0 - [FirebaseFirestore][I-FST000001] Committing transaction: <LevelDbTransaction Start LevelDB: 0 changes (0 bytes):>
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
I0000 00:00:1727996131.509588 505470 config.cc:230] gRPC experiments enabled: call_status_override_on_cancellation, http2_stats_fix, monitoring_experiment, pick_first_new, trace_record_callops, work_serializer_clears_time_cache
11.3.0 - [FirebaseFirestore][I-FST000001] Committing transaction: <LevelDbTransaction Start MutationQueue: 0 changes (0 bytes):>
11.3.0 - [FirebaseFirestore][I-FST000001] Committing transaction: <LevelDbTransaction Start IndexManager: 0 changes (0 bytes):>
11.3.0 - [FirebaseFirestore][I-FST000001] Committing transaction: <LevelDbTransaction migrate overlays: 0 changes (0 bytes):>
11.3.0 - [FirebaseFirestore][I-FST000001] Committing transaction: <LevelDbTransaction NextMutationBatchAfterBatchID: 0 changes (0 bytes):>
11.3.0 - [FirebaseFirestore][I-FST000001] Committing transaction: <LevelDbTransaction Allocate target: 0 changes (0 bytes):>
11.3.0 - [FirebaseFirestore][I-FST000001] Re-using previous result from Timestamp(seconds=1727865155, nanoseconds=326931000) to execute query: Query(canonical_id=tasks|f:date==2024-10-03user_id==boucR3OCVAONBMD3Wk6FtIWjZPz1|ob:__name__asc)
11.3.0 - [FirebaseFirestore][I-FST000001] Committing transaction: <LevelDbTransaction ExecuteQuery: 0 changes (0 bytes):>
11.3.0 - [FirebaseFirestore][I-FST000001] WatchStream (689c456f01) start
11.3.0 - [FirebaseAuth][I-AUT000002] Token auto-refresh enabled.
11.3.0 - [FirebaseAuth][I-AUT000004] Token auto-refresh scheduled in 18:53 for the new token.
11.3.0 - [FirebaseAuth][I-AUT000017] Has valid access token. Estimated expiration date:2024-10-03 23:19:23 +0000, current date: 2024-10-03 22:55:31 +0000
11.3.0 - [FirebaseFirestore][I-FST000001] Creating Firestore stub.
11.3.0 - [FirebaseFirestore][I-FST000001] WatchStream (4093440301) watch: <ListenRequest 0x16f45a460>: {
database: "projects/todo-app-7b13b/databases/(default)"
add_target {
query {
parent: "projects/todo-app-7b13b/databases/(default)/documents"
structured_query {
from {
collection_id: "tasks"
}
where {
composite_filter {
op: AND
filters {
field_filter {
field {
field_path: "date"
}
op: EQUAL
value {
string_value: "2024-10-03"
}
}
}
filters {
field_filter {
field {
field_path: "user_id"
}
op: EQUAL
value {
string_value: "boucR3OCVAONBMD3Wk6FtIWjZPz1"
}
}
}
}
}
order_by {
field {
field_path: "__name__"
}
direction: ASCENDING
}
}
}
resume_token: "\n\t\010\217\205\212\245\246\363\210\003"
target_id: 8
expected_count {
value: 1
}
}
}
nw_endpoint_flow_failed_with_error [C1 2607:f8b0:4023:1000::5f.443 failed parent-flow (unsatisfied (No network route), ipv4, dns)] already failing, returning
nw_connection_get_connected_socket_block_invoke [C1] Client called nw_connection_get_connected_socket on unconnected nw_connection
TCP Conn 0x300a58e60 Failed : error 0:50 [50]
I0000 00:00:1727996131.956341 505519 subchannel.cc:806] subchannel 0x10729a000 {address=ipv6:%5B2607:f8b0:4023:1000::5f%5D:443, args={grpc.client_channel_factory=0x30396c7e0, grpc.default_authority=firestore.googleapis.com, grpc.http2_scheme=https, grpc.internal.channel_credentials=0x301f78d80, grpc.internal.client_channel_call_destination=0x103d0d128, grpc.internal.event_engine=0x30396cbc0, grpc.internal.security_connector=0x301569000, grpc.internal.subchannel_pool=0x301070a80, grpc.keepalive_time_ms=30000, grpc.primary_user_agent=grpc-c++/1.65.1, grpc.resource_quota=0x3035f5740, grpc.server_uri=dns:///firestore.googleapis.com}}: connect failed (UNKNOWN:(domain:NSPOSIXErrorDomain, code:50, description:The operation couldn’t be completed. Network is down) {grpc_status:2, created_time:"2024-10-03T15:55:31.954918-07:00", file_line:150, file:"/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/ZipRelease/2024-07-25T04-01-28/project-ios/Pods/gRPC-Core/src/core/lib/transport/error_utils.cc"}), backing off for 587 ms
11.3.0 - [FirebaseFirestore][I-FST000001] WatchStream (4093440301) headers (allowlisted): date: Thu, 03 Oct 2024 22:55:32 GMT
11.3.0 - [FirebaseFirestore][I-FST000001] WatchStream (4093440301) response: <ListenResponse 0x16f3ce640>: {
target_change {
target_change_type: ADD
target_ids: 8
}
}
11.3.0 - [FirebaseFirestore][I-FST000001] WatchStream (4093440301) headers (allowlisted): date: Thu, 03 Oct 2024 22:55:32 GMT
11.3.0 - [FirebaseFirestore][I-FST000001] WatchStream (4093440301) response: <ListenResponse 0x16f3ce640>: {
target_change {
resume_token: "\n\t\010\217\205\212\245\246\363\210\003"
read_time {
seconds: 1727995880
nanos: 571535000
}
}
}
11.3.0 - [FirebaseFirestore][I-FST000001] WatchStream (4093440301) headers (allowlisted): date: Thu, 03 Oct 2024 22:55:32 GMT
11.3.0 - [FirebaseFirestore][I-FST000001] WatchStream (4093440301) response: <ListenResponse 0x16f342640>: {
filter {
target_id: 8
count: 1
unchanged_names {
bits {
bitmap: "\263\367\000"
padding: 7
}
hash_count: 12
}
}
}
11.3.0 - [FirebaseFirestore][I-FST000001] WatchStream (4093440301) headers (allowlisted): date: Thu, 03 Oct 2024 22:55:32 GMT
11.3.0 - [FirebaseFirestore][I-FST000001] WatchStream (4093440301) response: <ListenResponse 0x16f342640>: {
target_change {
target_change_type: CURRENT
target_ids: 8
resume_token: "\n\t\010\231\327\232\235\247\363\210\003"
read_time {
seconds: 1727996132
nanos: 502425000
}
}
}
11.3.0 - [FirebaseFirestore][I-FST000001] WatchStream (4093440301) headers (allowlisted): date: Thu, 03 Oct 2024 22:55:32 GMT
11.3.0 - [FirebaseFirestore][I-FST000001] WatchStream (4093440301) response: <ListenResponse 0x16f342640>: {
target_change {
resume_token: "\n\t\010\231\327\232\235\247\363\210\003"
read_time {
seconds: 1727996132
nanos: 502425000
}
}
}
11.3.0 - [FirebaseFirestore][I-FST000001] Committing transaction: <LevelDbTransaction Apply remote event: 1 changes (20 bytes):
- Put [target_global:] (20 bytes)>
11.3.0 - [FirebaseFirestore][I-FST000001] Committing transaction: <LevelDbTransaction NotifyLocalViewChanges: 0 changes (0 bytes):>
11.3.0 - [FirebaseFirestore][I-FST000001] WatchStream (60405d0303) unwatch: <ListenRequest 0x16f342540>: {
database: "projects/todo-app-7b13b/databases/(default)"
remove_target: 8
}
11.3.0 - [FirebaseFirestore][I-FST000001] Committing transaction: <LevelDbTransaction Release target: 2 changes (235 bytes):
- Put [target: target_id=8] (215 bytes)
- Put [target_global:] (20 bytes)>
11.3.0 - [FirebaseFirestore][I-FST000001] WatchStream (4093440301) headers (allowlisted): date: Thu, 03 Oct 2024 22:55:32 GMT
11.3.0 - [FirebaseFirestore][I-FST000001] WatchStream (4093440301) response: <ListenResponse 0x16f3ce640>: {
target_change {
target_change_type: REMOVE
target_ids: 8
}
}
@AlexEzzeddine, still no docs being sent over. expected_count { value: 1}
indicates that there is one doc in your persistence, so you might be reading it from the cache. Can you clear cache first, and try restarting the app?
here are the logs with cache cleared:
11.3.0 - [FirebaseCore][I-COR000001] Configuring the default app.
11.3.0 - [GoogleUtilities/AppDelegateSwizzler][I-SWZ001008] Successfully created App Delegate Proxy automatically. To disable the proxy, set the flag GoogleUtilitiesAppDelegateProxyEnabled to NO (Boolean) in the Info.plist
11.3.0 - [FirebaseFirestore][I-FST000001] Clearing persistence for path: /var/mobile/Containers/Data/Application/5A34AAAB-5368-4DAD-99A0-BFB4979ED8E1/Library/Application Support/firestore/__FIRAPP_DEFAULT/todo-app-7b13b/main
11.3.0 - [GoogleUtilities/SceneDelegateSwizzler][I-SWZ001114] Successfully created Scene Delegate Proxy automatically. To disable the proxy, set the flag GoogleUtilitiesAppDelegateProxyEnabled to NO (Boolean) in the Info.plist
11.3.0 - [FirebaseCore][I-COR000033] Data Collection flag is not set.
onchange new date: 2024-10-04
11.3.0 - [FirebaseFirestore][I-FST000001] Initializing. Current user: boucR3OCVAONBMD3Wk6FtIWjZPz1
11.3.0 - [FirebaseFirestore][I-FST000001] Using /var/mobile/Containers/Data/Application/5A34AAAB-5368-4DAD-99A0-BFB4979ED8E1/Library/Application Support/firestore/__FIRAPP_DEFAULT/todo-app-7b13b/main for LevelDB storage
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
I0000 00:00:1728068987.120989 48436 config.cc:230] gRPC experiments enabled: call_status_override_on_cancellation, http2_stats_fix, monitoring_experiment, pick_first_new, trace_record_callops, work_serializer_clears_time_cache
11.3.0 - [FirebaseFirestore][I-FST000001] Committing transaction: <LevelDbTransaction Delete everything with prefix: 0 changes (0 bytes):>
11.3.0 - [FirebaseFirestore][I-FST000001] Committing transaction: <LevelDbTransaction Delete everything with prefix: 0 changes (0 bytes):>
11.3.0 - [FirebaseFirestore][I-FST000001] Committing transaction: <LevelDbTransaction Delete everything with prefix: 0 changes (0 bytes):>
11.3.0 - [FirebaseFirestore][I-FST000001] Committing transaction: <LevelDbTransaction Delete everything with prefix: 0 changes (0 bytes):>
11.3.0 - [FirebaseFirestore][I-FST000001] Committing transaction: <LevelDbTransaction Drop query cache: 2 changes (1 bytes):
- Put [target_global:] (0 bytes)
- Put [version:] (1 bytes)>
11.3.0 - [FirebaseFirestore][I-FST000001] Committing transaction: <LevelDbTransaction Ensure sentinel rows: 1 changes (1 bytes):
- Put [version:] (1 bytes)>
11.3.0 - [FirebaseFirestore][I-FST000001] Committing transaction: <LevelDbTransaction remove acknowledged mutations: 1 changes (1 bytes):
- Put [version:] (1 bytes)>
11.3.0 - [FirebaseFirestore][I-FST000001] Committing transaction: <LevelDbTransaction Ensure Collection Parents Index: 1 changes (1 bytes):
- Put [version:] (1 bytes)>
11.3.0 - [FirebaseFirestore][I-FST000001] Committing transaction: <LevelDbTransaction Rewrite Targets Canonical Ids: 1 changes (1 bytes):
- Put [version:] (1 bytes)>
11.3.0 - [FirebaseFirestore][I-FST000001] Committing transaction: <LevelDbTransaction Ensure overlay data migration is marked as required: 2 changes (1 bytes):
- Put [data_migration: data_migration_name=overlay_migration] (0 bytes)
- Put [version:] (1 bytes)>
11.3.0 - [FirebaseFirestore][I-FST000001] Committing transaction: <LevelDbTransaction Start LevelDB: 0 changes (0 bytes):>
11.3.0 - [FirebaseFirestore][I-FST000001] Committing transaction: <LevelDbTransaction Start MutationQueue: 0 changes (0 bytes):>
11.3.0 - [FirebaseFirestore][I-FST000001] Committing transaction: <LevelDbTransaction Start IndexManager: 0 changes (0 bytes):>
11.3.0 - [FirebaseFirestore][I-FST000001] Committing transaction: <LevelDbTransaction migrate overlays: 1 changes (0 bytes):
- Delete [data_migration: data_migration_name=overlay_migration]>
11.3.0 - [FirebaseFirestore][I-FST000001] Committing transaction: <LevelDbTransaction NextMutationBatchAfterBatchID: 0 changes (0 bytes):>
11.3.0 - [FirebaseFirestore][I-FST000001] Committing transaction: <LevelDbTransaction Allocate target: 3 changes (180 bytes):
- Put [query_target: canonical_id=tasks|f:date==2024-10-04user_id==boucR3OCVAONBMD3Wk6FtIWjZPz1|ob:__name__asc target_id=2] (0 bytes)
- Put [target: target_id=2] (174 bytes)
- Put [target_global:] (6 bytes)>
11.3.0 - [FirebaseFirestore][I-FST000001] Using full collection scan to execute query: Query(canonical_id=tasks|f:date==2024-10-04user_id==boucR3OCVAONBMD3Wk6FtIWjZPz1|ob:__name__asc)
11.3.0 - [FirebaseFirestore][I-FST000001] Committing transaction: <LevelDbTransaction ExecuteQuery: 0 changes (0 bytes):>
11.3.0 - [FirebaseFirestore][I-FST000001] WatchStream (685c496d01) start
11.3.0 - [FirebaseAuth][I-AUT000002] Token auto-refresh enabled.
11.3.0 - [FirebaseAuth][I-AUT000004] Token auto-refresh scheduled in 23:7 for the new token.
11.3.0 - [FirebaseAuth][I-AUT000017] Has valid access token. Estimated expiration date:2024-10-04 19:37:53 +0000, current date: 2024-10-04 19:09:47 +0000
11.3.0 - [FirebaseFirestore][I-FST000001] Creating Firestore stub.
11.3.0 - [FirebaseFirestore][I-FST000001] WatchStream (9855430501) watch: <ListenRequest 0x16d4965b0>: {
database: "projects/todo-app-7b13b/databases/(default)"
add_target {
query {
parent: "projects/todo-app-7b13b/databases/(default)/documents"
structured_query {
from {
collection_id: "tasks"
}
where {
composite_filter {
op: AND
filters {
field_filter {
field {
field_path: "date"
}
op: EQUAL
value {
string_value: "2024-10-04"
}
}
}
filters {
field_filter {
field {
field_path: "user_id"
}
op: EQUAL
value {
string_value: "boucR3OCVAONBMD3Wk6FtIWjZPz1"
}
}
}
}
}
order_by {
field {
field_path: "__name__"
}
direction: ASCENDING
}
}
}
target_id: 2
}
}
nw_endpoint_flow_failed_with_error [C1 2607:f8b0:4007:809::200a.443 failed parent-flow (unsatisfied (No network route), ipv4, dns)] already failing, returning
nw_connection_get_connected_socket_block_invoke [C1] Client called nw_connection_get_connected_socket on unconnected nw_connection
TCP Conn 0x3006bb200 Failed : error 0:50 [50]
I0000 00:00:1728068987.699584 48475 subchannel.cc:806] subchannel 0x15e264800 {address=ipv6:%5B2607:f8b0:4007:809::200a%5D:443, args={grpc.client_channel_factory=0x303594940, grpc.default_authority=firestore.googleapis.com, grpc.http2_scheme=https, grpc.internal.channel_credentials=0x301384de0, grpc.internal.client_channel_call_destination=0x105cf9128, grpc.internal.event_engine=0x30359d9d0, grpc.internal.security_connector=0x30199d500, grpc.internal.subchannel_pool=0x301c8a840, grpc.keepalive_time_ms=30000, grpc.primary_user_agent=grpc-c++/1.65.1, grpc.resource_quota=0x303913f30, grpc.server_uri=dns:///firestore.googleapis.com}}: connect failed (UNKNOWN:(domain:NSPOSIXErrorDomain, code:50, description:The operation couldn’t be completed. Network is down) {grpc_status:2, created_time:"2024-10-04T12:09:47.697823-07:00", file_line:150, file:"/var/folders/hn/5bx1f4_d4ds5vhwhkxc7vdcr0000gn/T/ZipRelease/2024-07-25T04-01-28/project-ios/Pods/gRPC-Core/src/core/lib/transport/error_utils.cc"}), backing off for 451 ms
I0000 00:00:1728068988.263918 48474 subchannel.cc:761] subchannel 0x15e264800 {address=ipv6:%5B2607:f8b0:4007:809::200a%5D:443, args={grpc.client_channel_factory=0x303594940, grpc.default_authority=firestore.googleapis.com, grpc.http2_scheme=https, grpc.internal.channel_credentials=0x301384de0, grpc.internal.client_channel_call_destination=0x105cf9128, grpc.internal.event_engine=0x30359d9d0, grpc.internal.security_connector=0x30199d500, grpc.internal.subchannel_pool=0x301c8a840, grpc.keepalive_time_ms=30000, grpc.primary_user_agent=grpc-c++/1.65.1, grpc.resource_quota=0x303913f30, grpc.server_uri=dns:///firestore.googleapis.com}}: backoff delay elapsed, reporting IDLE
11.3.0 - [FirebaseFirestore][I-FST000001] WatchStream (9855430501) headers (allowlisted): date: Fri, 04 Oct 2024 19:09:48 GMT
11.3.0 - [FirebaseFirestore][I-FST000001] WatchStream (9855430501) response: <ListenResponse 0x16d8f6640>: {
target_change {
target_change_type: ADD
target_ids: 2
}
}
11.3.0 - [FirebaseFirestore][I-FST000001] WatchStream (9855430501) headers (allowlisted): date: Fri, 04 Oct 2024 19:09:48 GMT
11.3.0 - [FirebaseFirestore][I-FST000001] WatchStream (9855430501) response: <ListenResponse 0x16d37e640>: {
target_change {
target_change_type: CURRENT
target_ids: 2
resume_token: "\n\t\010\334\231\325\321\266\365\210\003"
read_time {
seconds: 1728068988
nanos: 521692000
}
}
}
11.3.0 - [FirebaseFirestore][I-FST000001] WatchStream (9855430501) headers (allowlisted): date: Fri, 04 Oct 2024 19:09:48 GMT
11.3.0 - [FirebaseFirestore][I-FST000001] WatchStream (9855430501) response: <ListenResponse 0x16d37e640>: {
target_change {
resume_token: "\n\t\010\334\231\325\321\266\365\210\003"
read_time {
seconds: 1728068988
nanos: 521692000
}
}
}
11.3.0 - [FirebaseFirestore][I-FST000001] Committing transaction: <LevelDbTransaction Apply remote event: 2 changes (221 bytes):
- Put [target: target_id=2] (201 bytes)
- Put [target_global:] (20 bytes)>
11.3.0 - [FirebaseFirestore][I-FST000001] Committing transaction: <LevelDbTransaction NotifyLocalViewChanges: 0 changes (0 bytes):>
11.3.0 - [FirebaseFirestore][I-FST000001] WatchStream (9855430501) headers (allowlisted): date: Fri, 04 Oct 2024 19:09:48 GMT
11.3.0 - [FirebaseFirestore][I-FST000001] WatchStream (9855430501) response: <ListenResponse 0x16d8f6640>: {
filter {
target_id: 2
unchanged_names {
bits {
}
}
}
}
11.3.0 - [FirebaseFirestore][I-FST000001] WatchStream (9855430501) headers (allowlisted): date: Fri, 04 Oct 2024 19:09:48 GMT
11.3.0 - [FirebaseFirestore][I-FST000001] WatchStream (9855430501) response: <ListenResponse 0x16d37e640>: {
target_change {
resume_token: "\n\t\010\361\301\332\321\266\365\210\003"
read_time {
seconds: 1728068988
nanos: 608753000
}
}
}
11.3.0 - [FirebaseFirestore][I-FST000001] Committing transaction: <LevelDbTransaction Apply remote event: 1 changes (20 bytes):
- Put [target_global:] (20 bytes)>
11.3.0 - [FirebaseFirestore][I-FST000001] Committing transaction: <LevelDbTransaction NotifyLocalViewChanges: 0 changes (0 bytes):>
Update: the issue seems to be introduced by the SDK 11.0.0, where it have upgraded the gRPC version. This ticket is brought to related team's attention.
The issue is not reproducible locally. A minimal repro app will be greatly appreciated.
Hey @aashishpatil. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.
If you have more information that will help us get to the bottom of this, just add a comment!
Since there haven't been any recent updates here, I am going to close this issue.
@aashishpatil if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.
Description
When trying to read documents in a collection or setting up a listener, I am getting a networking error. However, I am able to write and create docs so network is available. I see the created docs via the console.
Read error occurs on both simulator (iPhone 17.5) and device (iPad 18.1 Beta)
Found a Stackoverflow thread reporting exact same issue as mine -> https://stackoverflow.com/questions/78929426/swiftui-with-firebasefirestore
Reproducing the issue
It's a very basic project that writes a document to a one level collection and then tries to read an array of docs from that collection and tries to setup a snapshot listener.
Firebase SDK Version
11.2.0
Xcode Version
15.4
Installation Method
Swift Package Manager
Firebase Product(s)
Firestore
Targeted Platforms
iOS
Relevant Log Output
No response
If using Swift Package Manager, the project's Package.resolved
Expand
Package.resolved
snippet```json Replace this line with the contents of your Package.resolved. ```
If using CocoaPods, the project's Podfile.lock
Expand
Podfile.lock
snippet```yml Replace this line with the contents of your Podfile.lock! ```