facebook-ios-sdk
facebook-ios-sdk copied to clipboard
Query fired: did not receive all answers in time for graph.facebook.com:443
Checklist before submitting a bug report
- [X] I've updated to the latest released version of the SDK
- [X] I've searched for existing GitHub issues
- [X] I've looked for existing answers on Stack Overflow, the Facebook Developer Community Forum and the Facebook Developers Group
- [X] I've read the Code of Conduct
- [X] This issue is not security related and can safely be disclosed publicly on GitHub
Xcode version
14.0
Facebook iOS SDK version
15.0.0
Dependency Manager
SPM
SDK Framework
Core
Goals
I would like to track app installs and send custom events to Facebook Events Manager
Expected results
App installs tracked and custom events received in Facebook Events Manager.
Actual results
Installs are not tracked. Neither standard nor custom app events are received in Facebook Events Manager. I see the following error in xcode logs:
Query fired: did not receive all answers in time for graph.facebook.com:443
Full log:
2022-10-02 18:35:27.271639+0200 Appname7446:2051894] [connection] nw_resolver_start_query_timer_block_invoke [C1.1.1] Query fired: did not receive all answers in time for graph.facebook.com:443
2022-10-02 18:35:27.271946+0200 Appname7446[7446:2051894] [connection] nw_resolver_start_query_timer_block_invoke [C2.1.1] Query fired: did not receive all answers in time for graph.facebook.com:443
2022-10-02 18:35:27.287321+0200 Appname7446[7446:2051894] [connection] nw_resolver_start_query_timer_block_invoke [C3.1.1] Query fired: did not receive all answers in time for graph.facebook.com:443
2022-10-02 18:35:27.360958+0200 Appname7446[7446:2051894] [connection] nw_resolver_start_query_timer_block_invoke [C1.1.2] Query fired: did not receive all answers in time for graph.facebook.com:443
2022-10-02 18:35:27.361291+0200 Appname7446[7446:2051894] [connection] nw_resolver_start_query_timer_block_invoke [C2.1.2] Query fired: did not receive all answers in time for graph.facebook.com:443
2022-10-02 18:35:27.386177+0200 Appname7446[7446:2051891] [connection] nw_resolver_start_query_timer_block_invoke [C3.1.2] Query fired: did not receive all answers in time for graph.facebook.com:443
2022-10-02 18:35:27.498069+0200 Appname7446[7446:2051894] [connection] nw_resolver_start_query_timer_block_invoke [C7.1.1] Query fired: did not receive all answers in time for graph.facebook.com:443
2022-10-02 18:35:27.498387+0200 Appname7446[7446:2051894] [connection] nw_resolver_start_query_timer_block_invoke [C8.1.1] Query fired: did not receive all answers in time for graph.facebook.com:443
2022-10-02 18:35:27.498540+0200 Appname7446[7446:2051894] [connection] nw_resolver_start_query_timer_block_invoke [C9.1.1] Query fired: did not receive all answers in time for graph.facebook.com:443```
### Steps to reproduce
1. Create a new app in xcode.
2. Add Facebook SDK according to the installation guidelines.
3. Run app from Xcode.
### Code samples & details
_No response_
@samodom would you be able to help?
Would you be ale to help @jawwad?
Is it possible to get any support from FB at all?
Got the same issue in v14.1.0
There's another topic about this bug https://github.com/facebook/facebook-ios-sdk/issues/2085 . Not solved as well.
It seems like events are fired if I directly set the configuration as below in the info.plist
<key>FacebookAdvertiserIDCollectionEnabled</key>
<true/>
But I want to get the user's consent and then mark it as true
Facing the same issue, did anyone find another solution where we can get the user's consent before enabling advertiser ID collection?
I am facing the same issue. Have you guy sorted this out?
I have the same issue
I have the same issue
Is there an update on this? Still happening as of February 13 2023
nw_resolver_start_query_timer_block_invoke [C16.1.1] Query fired: did not receive all answers in time for api.onesignal.com:443 same error
Same here...
2023-03-01 14:33:47.682922+0100 <MyAppName>[5766:1781249] [connection] nw_resolver_start_query_timer_block_invoke [C1.1.1] Query fired: did not receive all answers in time for graph.facebook.com:443
2023-03-01 14:33:47.683252+0100 <MyAppName>[5766:1781249] [connection] nw_resolver_start_query_timer_block_invoke [C2.1.1] Query fired: did not receive all answers in time for graph.facebook.com:443
2023-03-01 14:33:48.071687+0100 <MyAppName>[5766:1781249] [connection] nw_resolver_start_query_timer_block_invoke [C1.1.2] Query fired: did not receive all answers in time for graph.facebook.com:443
2023-03-01 14:33:48.071966+0100 <MyAppName>[5766:1781249] [connection] nw_resolver_start_query_timer_block_invoke [C2.1.2] Query fired: did not receive all answers in time for graph.facebook.com:443
2023-03-01 14:33:48.710538+0100 <MyAppName>[5766:1781255] [connection] nw_resolver_start_query_timer_block_invoke [C7.1.1] Query fired: did not receive all answers in time for graph.facebook.com:443
2023-03-01 14:33:48.969128+0100 <MyAppName>[5766:1781249] [connection] nw_resolver_start_query_timer_block_invoke [C9.1.1] Query fired: did not receive all answers in time for graph.facebook.com:443
2023-03-01 14:33:48.969544+0100 <MyAppName>[5766:1781249] [connection] nw_resolver_start_query_timer_block_invoke [C10.1.1] Query fired: did not receive all answers in time for graph.facebook.com:443
No matter the config on Info.plist
, these logs always appear
Same here...
2023-03-01 14:33:47.682922+0100 <MyAppName>[5766:1781249] [connection] nw_resolver_start_query_timer_block_invoke [C1.1.1] Query fired: did not receive all answers in time for graph.facebook.com:443 2023-03-01 14:33:47.683252+0100 <MyAppName>[5766:1781249] [connection] nw_resolver_start_query_timer_block_invoke [C2.1.1] Query fired: did not receive all answers in time for graph.facebook.com:443 2023-03-01 14:33:48.071687+0100 <MyAppName>[5766:1781249] [connection] nw_resolver_start_query_timer_block_invoke [C1.1.2] Query fired: did not receive all answers in time for graph.facebook.com:443 2023-03-01 14:33:48.071966+0100 <MyAppName>[5766:1781249] [connection] nw_resolver_start_query_timer_block_invoke [C2.1.2] Query fired: did not receive all answers in time for graph.facebook.com:443 2023-03-01 14:33:48.710538+0100 <MyAppName>[5766:1781255] [connection] nw_resolver_start_query_timer_block_invoke [C7.1.1] Query fired: did not receive all answers in time for graph.facebook.com:443 2023-03-01 14:33:48.969128+0100 <MyAppName>[5766:1781249] [connection] nw_resolver_start_query_timer_block_invoke [C9.1.1] Query fired: did not receive all answers in time for graph.facebook.com:443 2023-03-01 14:33:48.969544+0100 <MyAppName>[5766:1781249] [connection] nw_resolver_start_query_timer_block_invoke [C10.1.1] Query fired: did not receive all answers in time for graph.facebook.com:443
No matter the config on
Info.plist
, these logs always appear
I created a new onesignal app and did everything from the beginning with the new certificates and improved.
Yeah these logs are so noisy, doesn't seem to impair functionality but it would be nice to get rid of them.
Issue still happening even for a fresh project
Just started working on fresh project and I also ran into the same issue.
same error
try this :
If you are working on iOS 14+ do check this App tracking permission that is required for events tracking.
https://developer.apple.com/app-store/user-privacy-and-data-use/#permission-to-track
Also, while testing on real device (iOS) check if your device's facebook app "Allow Tracking" is allowed. You can do this by checking facebook's permissions from Settings.
REF: https://stackoverflow.com/questions/70833242/facbook-events-doesnt-works-on-ios
@daradonn thanks for you answer it's very helpful. By using your solution I successfully login with Facebook but not getting the callback in my app. I am getting following logs.
2023-04-05 14:46:31.521544-0400 Vooconnect[4972:837438] Connection 21: received failure notification
2023-04-05 14:46:31.521619-0400 Vooconnect[4972:837438] [connection] nw_flow_add_write_request [C21 24.43.25.241:9450 failed parent-flow (satisfied (Path is satisfied), interface: en0[802.11], ipv4, dns, constrained)] cannot accept write requests
2023-04-05 14:46:31.521661-0400 Vooconnect[4972:837438] [connection] nw_write_request_report [C21] Send failed with error "Socket is not connected"
The same error continues in the game I made in Unity. Anyone know the solution?
2023-05-09 20:27:24.148971+0300 MyApps[5672:1742969] [tcp] tcp_input [C2.1.1:3] flags=[R.] seq=1681785977, ack=3432364880, win=265 state=CLOSED rcv_nxt=1681785937, snd_una=3432364855 2023-05-09 20:27:24.159672+0300 MyApps[5672:1743019] [Client] Updating selectors after delegate addition failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service with pid 94 named com.apple.commcenter.coretelephony.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service with pid 94 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.} 2023-05-09 20:27:24.475982+0300 MyApps[5672:1742970] [tcp] tcp_input [C6.1.1:3] flags=[R] seq=1579991797, ack=0, win=0 state=CLOSED rcv_nxt=1579991797, snd_una=1425097925 2023-05-09 20:27:25.387534+0300 MyApps[5672:1742974] [connection] nw_resolver_start_query_timer_block_invoke [C1.1] Query fired: did not receive all answers in time for graph.facebook.com:443 2023-05-09 20:27:25.387707+0300 MyApps[5672:1742974] [connection] nw_resolver_start_query_timer_block_invoke [C2.1] Query fired: did not receive all answers in time for graph.facebook.com:443 2023-05-09 20:27:25.966930+0300 MyApps[5672:1743019] [connection] nw_resolver_start_query_timer_block_invoke [C3.1] Query fired: did not receive all answers in time for graph.facebook.com:443 2023-05-09 20:27:26.164896+0300 MyApps[5672:1742974] [connection] nw_resolver_start_query_timer_block_invoke [C4.1] Query fired: did not receive all answers in time for graph.facebook.com:443 2023-05-09 20:27:26.164987+0300 MyApps[5672:1742974] [connection] nw_resolver_start_query_timer_block_invoke [C5.1] Query fired: did not receive all answers in time for graph.facebook.com:443 2023-05-09 20:27:26.165010+0300 MyApps[5672:1742974] [connection] nw_resolver_start_query_timer_block_invoke [C6.1] Query fired: did not receive all answers in time for graph.facebook.com:443
Same error on iOS, Flutter. Seems like events are counted in the graph but not properly logged. Shows no events but says there is 2000 events in the graph.
try this :
If you are working on iOS 14+ do check this App tracking permission that is required for events tracking.
https://developer.apple.com/app-store/user-privacy-and-data-use/#permission-to-track
Also, while testing on real device (iOS) check if your device's facebook app "Allow Tracking" is allowed. You can do this by checking facebook's permissions from Settings.
REF: https://stackoverflow.com/questions/70833242/facbook-events-doesnt-works-on-ios
it works~!!!
@daradonn thanks for you answer it's very helpful. By using your solution I successfully login with Facebook but not getting the callback in my app. I am getting following logs.
2023-04-05 14:46:31.521544-0400 Vooconnect[4972:837438] Connection 21: received failure notification 2023-04-05 14:46:31.521619-0400 Vooconnect[4972:837438] [connection] nw_flow_add_write_request [C21 24.43.25.241:9450 failed parent-flow (satisfied (Path is satisfied), interface: en0[802.11], ipv4, dns, constrained)] cannot accept write requests 2023-04-05 14:46:31.521661-0400 Vooconnect[4972:837438] [connection] nw_write_request_report [C21] Send failed with error "Socket is not connected"
Did you find a solution?