Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🐛] Bug Report Title - unsupported URL #7244

Closed
1 of 8 tasks
allen-hsu opened this issue Jul 17, 2023 · 8 comments
Closed
1 of 8 tasks

[🐛] Bug Report Title - unsupported URL #7244

allen-hsu opened this issue Jul 17, 2023 · 8 comments
Labels
help: needs-triage Issue needs additional investigation/triaging. type: bug New bug report

Comments

@allen-hsu
Copy link

allen-hsu commented Jul 17, 2023

Issue

When I use React Native 0.71 and firebase 18.x and I call messaging.getToken() , I got this error

Error getting FCM registration token: Error Domain=com.firebase.installations Code=0 "Underlying error: unsupported URL" UserInfo={NSLocalizedFailureReason=Underlying error: unsupported URL, NSUnderlyingError=0x6000001702d0 {Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo={NSUnderlyingError=0x6000000eff30 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <1BAFEE56-4FBF-4248-9344-E37850CFB24E>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <1BAFEE56-4FBF-4248-9344-E37850CFB24E>.<1>",
"LocalDataTask <01AEB63E-D076-430E-A3B7-79B46F5A5DB5>.<1>"
), NSLocalizedDescription=unsupported URL}}}

Describe your issue here


Project Files

Javascript

const pushToken = await this.firebaseMessaging.getToken()

package.json:

    "@react-native-firebase/analytics": "18.2.0",
    "@react-native-firebase/app": "18.2.0",
    "@react-native-firebase/crashlytics": "18.2.0",
    "@react-native-firebase/messaging": "18.2.0",
    "@react-native-firebase/perf": "18.2.0",

firebase.json for react-native-firebase v6:

{
    "react-native": {
        "crashlytics_javascript_exception_handler_chaining_enabled": false,
    }
}

iOS

Click To Expand

ios/Podfile:

# use_frameworks! :linkage => :static
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, min_ios_version_supported
prepare_react_native_project!
# If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
# because `react-native-flipper` depends on (FlipperKit,...) that will be excluded
#
# To fix this you can also exclude `react-native-flipper` using a `react-native.config.js`
# ```js
# module.exports = {
#   dependencies: {
#     ...(process.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),
# ```
flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled
linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
  Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
  use_frameworks! :linkage => linkage.to_sym
end

# Enable this switch or you won't link native module
$RNFirebaseAsStaticFramework = true
$static_framework =[
  # 'FlipperKit',
  # 'Flipper',
  # 'Flipper-Folly',
  # 'Flipper-DoubleConversion',
  # 'Flipper-Glog',
  # 'Flipper-PeerTalk',
  # 'Flipper-RSocket',
  # 'Flipper-Fmt',
  # 'Flipper-Boost-iOSX',
  # 'CocoaAsyncSocket',
  # 'ComponentKit',
  # 'Yoga',
  # 'YogaKit',
  # 'CocoaLibEvent',
  # 'OpenSSL-Universal',
  # 'boost-for-react-native',
  # 'Permission-BluetoothPeripheral', 
  # 'Permission-Camera',
  # 'Permission-FaceID',
  # 'Permission-LocationAlways',
  # 'Permission-MediaLibrary',
  # 'Permission-Microphone',
  # 'Permission-Motion',
  # 'Permission-PhotoLibrary',
  'RNPermissions']

pre_install do |installer|
  Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
  installer.pod_targets.each do |pod|
    if $static_framework.include?(pod.name) || pod.name.start_with?('Permission-')
      def pod.build_type;
        Pod::BuildType.static_library
      end
    end
  end
end

target 'app' do
  config = use_native_modules!
  # Flags change depending on the env values.
  flags = get_default_flags()

  use_react_native!(
    :path => config[:reactNativePath],
    # Hermes is now enabled by default. Disable by setting this flag to false.
    # Upcoming versions of React Native may rely on get_default_flags(), but
    # we make it explicit here to aid in the React Native upgrade process.
    # :hermes_enabled => flags[:hermes_enabled],
    :hermes_enabled => false,
    :fabric_enabled => flags[:fabric_enabled],
    # Enables Flipper.
    #
    # https://rnfirebase.io/
    # Notes: React-Native-Firebase uses use_frameworks, which has compatibility issues with Flipper, Hermes & Fabric
    # Flipper: use_frameworks is not compatible with Flipper. You need to disable Flipper by commenting out the :flipper_configuration line in your Podfile.
    # Hermes: a fix was put in place in react-native release 0.69.1 that allows Hermes to work with use_frameworks!. To use use_frameworks with Hermes, make sure you have set static linkage with use_frameworks! :linkage => :static.
    # New Architecture: Fabric is not compatible with use_frameworks!. Community support to help fix use_frameworks support for New Architecture is welcome!
    # Note that if you have use_frameworks! enabled, Flipper will not work and
    # you should disable the next line.
    # new change  :flipper_configuration => flipper_config,
    :flipper_configuration => FlipperConfiguration.enabled(["Debug"], { 'Flipper' => '0.164.0' }),

    
    # An absolute path to your application root.
    :app_path => "#{Pod::Config.instance.installation_root}/.."
  )


  permissions_path = '../node_modules/react-native-permissions/ios'
  pod 'Permission-BluetoothPeripheral', :path => "#{permissions_path}/BluetoothPeripheral"
  pod 'Permission-Camera', :path => "#{permissions_path}/Camera"
  pod 'Permission-FaceID', :path => "#{permissions_path}/FaceID"
  pod 'Permission-LocationAlways', :path => "#{permissions_path}/LocationAlways"
  pod 'Permission-MediaLibrary', :path => "#{permissions_path}/MediaLibrary"
  pod 'Permission-Microphone', :path => "#{permissions_path}/Microphone"
  pod 'Permission-Motion', :path => "#{permissions_path}/Motion"
  pod 'Permission-PhotoLibrary', :path => "#{permissions_path}/PhotoLibrary"

  pod 'Firebase', :modular_headers => true
  pod 'FirebaseCore', :modular_headers => true
  pod 'FirebaseCoreInternal', :modular_headers => true  
  pod 'FirebaseCoreExtension', :modular_headers => true
  pod 'GoogleDataTransport', :modular_headers => true
  pod 'GoogleUtilities', :modular_headers => true
  pod 'FirebaseInstallations', :modular_headers => true
  pod 'FirebaseSessions', :modular_headers => true
  pod 'nanopb', :modular_headers => true

end

post_install do |installer|
  react_native_post_install(
    installer,
    # Set `mac_catalyst_enabled` to `true` in order to apply patches
    # necessary for Mac Catalyst builds
    :mac_catalyst_enabled => false
  )
  __apply_Xcode_12_5_M1_post_install_workaround(installer)

  installer.pods_project.build_configurations.each do |config|
    config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
  end
  installer.pods_project.targets.each do |target|
    # https://github.com/facebook/react-native/issues/31149
    if (target.name&.eql?('FBReactNativeSpec'))
      target.build_phases.each do |build_phase|
        if (build_phase.respond_to?(:name) && build_phase.name.eql?('[CP-User] Generate Specs'))
          target.build_phases.move(build_phase, 0)
        end
      end
    end

    if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
      target.build_configurations.each do |config|
          config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
      end
    end
    
    target.build_configurations.each do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.4'
# Replace in file '/scripts/replace-template.js' when build.
#BUILD-TEMPLATE
      config.build_settings['ARCHS'] = 'arm64 x86_64'
      config.build_settings['VALID_ARCHS'] = 'arm64 x86_64'
#BUILD-TEMPLATE

      if target.name == "gRPC-C++-gRPCCertificates-Cpp"
        config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
      end
    end
  end
end

AppDelegate.m:

// N/A


Android

Click To Expand

Have you converted to AndroidX?

  • my application is an AndroidX application?
  • I am using android/gradle.settings jetifier=true for Android compatibility?
  • I am using the NPM package jetifier for react-native compatibility?

android/build.gradle:

// N/A

android/app/build.gradle:

// N/A

android/settings.gradle:

// N/A

MainApplication.java:

// N/A

AndroidManifest.xml:

<!-- N/A -->


Environment

Click To Expand

react-native info output:

 OUTPUT GOES HERE
  • Platform that you're experiencing the issue on:
    • iOS
    • Android
    • iOS but have not tested behavior on Android
    • Android but have not tested behavior on iOS
    • Both
  • react-native-firebase version you're using that has this issue:
    • e.g. 5.4.3
  • Firebase module(s) you're using that has the issue:
    • e.g. Instance ID
  • Are you using TypeScript?
    • Y/N & VERSION


@allen-hsu allen-hsu added help: needs-triage Issue needs additional investigation/triaging. type: bug New bug report labels Jul 17, 2023
@allen-hsu allen-hsu changed the title [🐛] Bug Report Title - CHANGE ME [🐛] Bug Report Title - unsupported URL Jul 17, 2023
@mikehardy
Copy link
Collaborator

Interesting - what's the execution environment on this? A real device (if so which one?) or is it a computer/simulator (if so, is it apple silicon or not, what version of macOS, what version of simulator?). That can alter how getToken works pretty significantly, since getToken only works on real devices or an iOS16+ simulator running on Apple Silicon

@allen-hsu
Copy link
Author

Hi @mikehardy , iOS16+ simulator, and real devices all throw this error and my laptop is an Apple silicon m1 pro.

@mikehardy
Copy link
Collaborator

I just merged an update here in our test app to current react-native on current react-native-firebase and qualified it on an m1 with ios16 simulator. It calls that API and works. I suspect a local network issue of some sort?

@allen-hsu
Copy link
Author

I just merged an update here in our test app to current react-native on current react-native-firebase and qualified it on an m1 with ios16 simulator. It calls that API and works. I suspect a local network issue of some sort?

but I try to use wifi, 4g, and my colleague, everyone got this issue

@allen-hsu
Copy link
Author

I can provide more logs. seems like some local key was lost.

API] API MISUSE: Resuming an NSURLSessionTask with nil URL.
2023-07-18 14:21:34.264531+0800 token[27105:4999847] Task <51560E3A-0ADA-4577-8D06-4A820C394225>.<1> finished with error [-1002] Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo={NSUnderlyingError=0x600000651fe0 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <51560E3A-0ADA-4577-8D06-4A820C394225>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <51560E3A-0ADA-4577-8D06-4A820C394225>.<1>"
), NSLocalizedDescription=unsupported URL}
2023-07-18 14:21:34.265096+0800 token[27105:4999847] Task <59241992-DF0A-4F20-B83C-53722AF16294>.<1> finished with error [-1002] Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo={NSUnderlyingError=0x600000651fe0 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <59241992-DF0A-4F20-B83C-53722AF16294>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <59241992-DF0A-4F20-B83C-53722AF16294>.<1>",
    "LocalDataTask <51560E3A-0ADA-4577-8D06-4A820C394225>.<1>"
), NSLocalizedDescription=unsupported URL}
2023-07-18 14:21:34.271278+0800 token[27105:4994005] [native] Invalidating <RCTCxxBridge: 0x7fd05980f530> (parent: <RCTBridge: 0x600002335b20>, executor: (null))
2023-07-18 14:21:34.350383+0800 token[27105:4999037] 8.10.0 - [Firebase/Performance][I-PRF300002] Invalid URL. URL is nil.
2023-07-18 14:21:34.436034+0800 token[27105:5001179] 8.10.0 - [Firebase/Performance][I-PRF300002] Invalid URL. URL is nil.
Thread Performance Checker: Thread running at QOS_CLASS_USER_INTERACTIVE waiting on a lower QoS thread running at QOS_CLASS_DEFAULT. Investigate ways to avoid priority inversions
PID: 27105, TID: 4994005
Backtrace
=================================================================
3   token                               0x000000010509d51d -[_RCTSRRunLoopThread runLoop] + 61
4   token                               0x000000010509d1ed __49+[NSRunLoop(RCTSRWebSocket) RCTSR_networkRunLoop]_block_invoke + 141
5   libdispatch.dylib                   0x000000012021ff5b _dispatch_client_callout + 8
6   libdispatch.dylib                   0x00000001202215b5 _dispatch_once_callout + 66
7   token                               0x000000010509d134 +[NSRunLoop(RCTSRWebSocket) RCTSR_networkRunLoop] + 132
8   token                               0x0000000105095362 -[RCTSRWebSocket _connect] + 114
9   token                               0x0000000105093c96 -[RCTSRWebSocket open] + 406
10  token                               0x000000010506ccdf -[RCTReconnectingWebSocket start] + 191
11  token                               0x0000000105058a4c -[RCTPackagerConnection init] + 556
12  token                               0x0000000105058806 __49+[RCTPackagerConnection sharedPackagerConnection]_block_invoke + 54
13  libdispatch.dylib                   0x000000012021ff5b _dispatch_client_callout + 8
14  libdispatch.dylib                   0x00000001202215b5 _dispatch_once_callout + 66
15  token                               0x00000001050587a4 +[RCTPackagerConnection sharedPackagerConnection] + 132
16  token                               0x00000001051181ee -[RCTDevSettings initialize] + 206
17  token                               0x000000010503ae48 -[RCTModuleData _initializeModule] + 184
18  token                               0x000000010503a5c0 -[RCTModuleData setUpInstanceAndBridge:] + 2992
19  token                               0x000000010503c999 -[RCTModuleData instance] + 1529
20  token                               0x0000000104fc1efc -[RCTCxxBridge moduleForName:lazilyLoadIfNecessary:] + 1020
21  token                               0x000000010504815b -[RCTModuleRegistry moduleForName:lazilyLoadIfNecessary:] + 171
22  token                               0x00000001050480a0 -[RCTModuleRegistry moduleForName:] + 64
23  token                               0x0000000105130f57 -[RCTPerfMonitor devMenuItem] + 135
24  token                               0x0000000105130dd4 -[RCTPerfMonitor initialize] + 132
25  token                               0x000000010503ae48 -[RCTModuleData _initializeModule] + 184
26  token                               0x000000010503a5c0 -[RCTModuleData setUpInstanceAndBridge:] + 2992
27  token                               0x000000010503ccac __25-[RCTModuleData instance]_block_invoke + 60
28  token                               0x00000001050c44ec RCTUnsafeExecuteOnMainQueueSync + 92
29  token                               0x000000010503c7c9 -[RCTModuleData instance] + 1065
30  token                               0x0000000104fc81a0 __49-[RCTCxxBridge _prepareModulesWithDispatchGroup:]_block_invoke + 256
31  libdispatch.dylib                   0x000000012021ed18 _dispatch_call_block_and_release + 12
32  libdispatch.dylib                   0x000000012021ff5b _dispatch_client_callout + 8
33  libdispatch.dylib                   0x0000000120230e5c _dispatch_main_queue_drain + 1726
34  libdispatch.dylib                   0x0000000120230790 _dispatch_main_queue_callback_4CF + 31
35  CoreFoundation                      0x000000011e783b1f __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
36  CoreFoundation                      0x000000011e77e436 __CFRunLoopRun + 2482
37  CoreFoundation                      0x000000011e77d6a7 CFRunLoopRunSpecific + 560
38  GraphicsServices                    0x0000000121ed428a GSEventRunModal + 139
39  UIKitCore                           0x0000000143845ad3 -[UIApplication _run] + 994
40  UIKitCore                           0x000000014384a9ef UIApplicationMain + 123
41  token                               0x000000010469f6df main + 63
2023-07-18 14:21:34.690579+0800 token[27105:4994536] [API] API MISUSE: Resuming an NSURLSessionTask with nil URL.
2023-07-18 14:21:34.691262+0800 token[27105:4999847] Task <395DAC54-A1F1-46F9-B922-E54FFA0CA81B>.<1> finished with error [-1002] Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo={NSUnderlyingError=0x60000077e640 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <395DAC54-A1F1-46F9-B922-E54FFA0CA81B>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <395DAC54-A1F1-46F9-B922-E54FFA0CA81B>.<1>"
), NSLocalizedDescription=unsupported URL}
2023-07-18 14:21:34.692018+0800 token[27105:4999847] Task <682B9330-DBA6-49FE-8BB0-F9B5D354ADE6>.<5> finished with error [-1002] Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo={NSUnderlyingError=0x60000077e640 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <682B9330-DBA6-49FE-8BB0-F9B5D354ADE6>.<5>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <682B9330-DBA6-49FE-8BB0-F9B5D354ADE6>.<5>",
    "LocalDataTask <395DAC54-A1F1-46F9-B922-E54FFA0CA81B>.<1>"
), NSLocalizedDescription=unsupported URL}
2023-07-18 14:21:34.699011+0800 token[27105:4994536] [API] API MISUSE: Resuming an NSURLSessionTask with nil URL.
2023-07-18 14:21:34.699818+0800 token[27105:5001177] Task <87F41BD9-A31D-4AB5-848C-C95D7BD67027>.<1> finished with error [-1002] Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo={NSUnderlyingError=0x6000006e4db0 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <87F41BD9-A31D-4AB5-848C-C95D7BD67027>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <87F41BD9-A31D-4AB5-848C-C95D7BD67027>.<1>"
), NSLocalizedDescription=unsupported URL}
2023-07-18 14:21:34.700335+0800 token[27105:5001180] Task <BB6AF1FD-C399-4CE9-92CA-6B985DE5B538>.<1> finished with error [-1002] Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo={NSUnderlyingError=0x6000006e4db0 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <BB6AF1FD-C399-4CE9-92CA-6B985DE5B538>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <BB6AF1FD-C399-4CE9-92CA-6B985DE5B538>.<1>",
    "LocalDataTask <87F41BD9-A31D-4AB5-848C-C95D7BD67027>.<1>"
), NSLocalizedDescription=unsupported URL}
2023-07-18 14:21:34.704483+0800 token[27105:4999847] 8.10.0 - [Firebase/Performance][I-PRF300002] Invalid URL. URL is nil.
2023-07-18 14:21:34.723056+0800 token[27105:4999847] 8.10.0 - [Firebase/Performance][I-PRF300002] Invalid URL. URL is nil.
2023-07-18 14:21:34.747054+0800 token[27105:4999847] 8.10.0 - [Firebase/Performance][I-PRF300002] Invalid URL. URL is nil.
2023-07-18 14:21:34.755823+0800 token[27105:4999847] 8.10.0 - [Firebase/Performance][I-PRF300002] Invalid URL. URL is nil.
2023-07-18 14:21:35.155087+0800 token[27105:4994536] [API] API MISUSE: Resuming an NSURLSessionTask with nil URL.
2023-07-18 14:21:35.155703+0800 token[27105:5001180] Task <40382F5E-309F-46AC-B233-51B588F0281F>.<1> finished with error [-1002] Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo={NSUnderlyingError=0x6000006e47b0 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <40382F5E-309F-46AC-B233-51B588F0281F>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <40382F5E-309F-46AC-B233-51B588F0281F>.<1>"
), NSLocalizedDescription=unsupported URL}
2023-07-18 14:21:35.156075+0800 token[27105:5001178] Task <CD6A6E4C-6D76-494B-89BF-665338D88202>.<6> finished with error [-1002] Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo={NSUnderlyingError=0x6000006e47b0 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <CD6A6E4C-6D76-494B-89BF-665338D88202>.<6>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <CD6A6E4C-6D76-494B-89BF-665338D88202>.<6>",
    "LocalDataTask <40382F5E-309F-46AC-B233-51B588F0281F>.<1>"
), NSLocalizedDescription=unsupported URL}
2023-07-18 14:21:35.159767+0800 token[27105:4994536] [API] API MISUSE: Resuming an NSURLSessionTask with nil URL.
2023-07-18 14:21:35.160322+0800 token[27105:5001180] Task <425DD4F7-FF99-436B-BDB6-44EC6310FE2F>.<1> finished with error [-1002] Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo={NSUnderlyingError=0x6000006bf0f0 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <425DD4F7-FF99-436B-BDB6-44EC6310FE2F>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <425DD4F7-FF99-436B-BDB6-44EC6310FE2F>.<1>"
), NSLocalizedDescription=unsupported URL}
2023-07-18 14:21:35.163900+0800 token[27105:5001180] Task <72CE571D-2D15-403C-9D12-4D2C618737EE>.<1> finished with error [-1002] Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo={NSUnderlyingError=0x6000006bf0f0 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <72CE571D-2D15-403C-9D12-4D2C618737EE>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <72CE571D-2D15-403C-9D12-4D2C618737EE>.<1>",
    "LocalDataTask <425DD4F7-FF99-436B-BDB6-44EC6310FE2F>.<1>"
), NSLocalizedDescription=unsupported URL}
2023-07-18 14:21:35.165874+0800 token[27105:5001187] 8.10.0 - [Firebase/Performance][I-PRF300002] Invalid URL. URL is nil.
2023-07-18 14:21:35.167277+0800 token[27105:5001187] 8.10.0 - [Firebase/Performance][I-PRF300002] Invalid URL. URL is nil.
2023-07-18 14:21:35.168584+0800 token[27105:5001187] 8.10.0 - [Firebase/Performance][I-PRF300002] Invalid URL. URL is nil.
2023-07-18 14:21:35.169868+0800 token[27105:5001187] 8.10.0 - [Firebase/Performance][I-PRF300002] Invalid URL. URL is nil.
2023-07-18 14:21:37.301606+0800 token[27105:4994536] [API] API MISUSE: Resuming an NSURLSessionTask with nil URL.
2023-07-18 14:21:37.302155+0800 token[27105:4999037] Task <233884B5-DCE0-443F-BCA3-D3D183B0871F>.<1> finished with error [-1002] Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo={NSUnderlyingError=0x6000006b96e0 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <233884B5-DCE0-443F-BCA3-D3D183B0871F>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <233884B5-DCE0-443F-BCA3-D3D183B0871F>.<1>"
), NSLocalizedDescription=unsupported URL}
2023-07-18 14:21:37.302565+0800 token[27105:5001177] Task <EF17D54B-8C7D-4730-A7E4-F78FCA34493F>.<1> finished with error [-1002] Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo={NSUnderlyingError=0x6000006b96e0 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <EF17D54B-8C7D-4730-A7E4-F78FCA34493F>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <EF17D54B-8C7D-4730-A7E4-F78FCA34493F>.<1>",
    "LocalDataTask <233884B5-DCE0-443F-BCA3-D3D183B0871F>.<1>"
), NSLocalizedDescription=unsupported URL}

@allen-hsu
Copy link
Author

Hi @mikehardy I found the root cause, thx your help, I close this issue

@mikehardy
Copy link
Collaborator

Can you elaborate at all on the root cause? It may save other people the trouble in the future and will help me support others in the future

@allen-hsu
Copy link
Author

Root cause is we proxy some request, not relate about sdk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help: needs-triage Issue needs additional investigation/triaging. type: bug New bug report
Projects
None yet
Development

No branches or pull requests

2 participants