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

Failed to download settings Error Domain=FIRCLSNetworkError Code=-5 on catalyst #5641

Closed
Patrick3131 opened this issue May 19, 2020 · 26 comments
Labels
api: crashlytics contact-support-instead Please contact Firebase Support where you can share private info about your project and get help.

Comments

@Patrick3131
Copy link

[REQUIRED] Step 1: Describe your environment

Xcode version: 11.4.1
Firebase SDK version:6.24.0
Firebase Component: Crashlytics
Component version: 4.1.0
Installation method: CocoaPods

[REQUIRED] Step 2: Describe the problem

Steps to reproduce:

I have three different plists for iOS, macCatalyst staging and macCatalyst production. It works on iOS and staging. But for production it does not work and I run in to FIRCLSNetworkError Code=-5.

I checked if the bundle id's match, I added a run script and also tried the solutions from a similar problem: #4690

Researching I found a lot of related problems to the fabric implementation, but fabric is not connected to the project.

Do you have any other ideas?

Relevant Code:

2020-05-19 10:55:39.525825+0200 App[15152:114684] [Firebase/Crashlytics] Version 4.1.0
2020-05-19 10:55:39.560326+0200 App[15152:115166] [Firebase/Crashlytics] Packaged report with id 'censored' for submission
2020-05-19 10:55:39.630612+0200 App[15152:115166] 6.24.0 - [Firebase/Crashlytics][I-CLS000000] Failed to download settings Error Domain=FIRCLSNetworkError Code=-5 "(null)" UserInfo={status_code=404, type=2, request_id=, content_type=text/html; charset=utf-8}
@TKBurner
Copy link

Thanks. Can you let me know if you created this app in Fabric or if it was an app created in Firebase. Usually when we see issues like this, it's either that: 1 - the app is not fully activated on the backend. 2 - something is wrong with your integration of the Firebase SDKs. Usually it falls into the first category, in which case you'd need to clean your simulator and do a build and run event for the production version.

@google-oss-bot
Copy link

Hey @Patrick3131. 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!

@thehavre
Copy link

thehavre commented Jun 1, 2020

Hello there!

I have the same issue. (Failed to download settings Error Domain=FIRCLSNetworkError Code=-5 with 404 error code)

Can you let me know if you created this app in Fabric or if it was an app created in Firebase?

It was created in the Fabric and now we migrated to the Firebase

you'd need to clean your simulator and do a build and run event for the production version.

I've done it also, no results.

A little bit more information in my case:
We are developing a brand new application under bundle id with existing app in store (wanna ship our new app as an update for the existing app). So is it possible that we are facing 404 connection error because there is somewhere in the Firebase exist the same app with the same bundle id? Unfortunately, I can't tell for sure is it true, because we haven't an access to the previous app code :(
(Also we pointed out App Store ID in the Firebase app creation, maybe it also may imply an issue, because there is another app in the App Store now)

P.S. One more thing: we have successfully configured iOS app in the same account for this project under another bundle id and it works. Issue had appeared when I tried to migrate to the new bundle id and create new app for it in Firebase

@roskoff
Copy link

roskoff commented Jun 3, 2020

I've got the same problem, after reading Upgrade to the Firebase Crashlytics SDK:

Step 3: Update your code

  1. In Xcode, rebuild your app, then re-open your .xcworkspace file again.

my application finally got connected to the Firebase Console.

@thehavre
Copy link

thehavre commented Jun 3, 2020

@roskoff thanks
But I have migrated to the Firebase Crashlytics SDK successfully. Problem appeared when I changed bundle ID and created new iOS app in the Firebase dashboard

@biomiker
Copy link

biomiker commented Jun 4, 2020

I am seeing this also, and did not migrate from Fabric. This is a new project following the latest documentation.

@thehavre
Copy link

thehavre commented Jun 8, 2020

@TKBurner could you please assist on this issue?

@thehavre
Copy link

I have resolved this issue:
As I assumed, my issue (Failed to download settings Error Domain=FIRCLSNetworkError Code=-5 with 404 error code) was related to the existing app in Firebase with the same bundle id. So I've requested from previous developers to remove theirs Firebase app and now I can recreate Firebase app without this settings issue, everything is fine :)

@Macjon
Copy link

Macjon commented Jun 18, 2020

Is it possible you can't register bundle identifiers with a "-"?
Because I'm getting this error because my bundle identifier contains a -.

@yeuem141289
Copy link

yeuem141289 commented Jun 20, 2020

After i use
pod 'Firebase/Crashlytics'
pod 'Firebase/Analytics'
This error disappear

@google-oss-bot
Copy link

Hey @Patrick3131. 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!

@michaeleisel
Copy link

I can reliably reproduce this by setting up a new project and adding just pod Firebase/Crashlytics to the project. However, as with @yeuem141289 above, it goes away if I add pod 'Firebase/Analytics' as well

@ehlersd
Copy link

ehlersd commented Jul 27, 2020

Is it possible you can't register bundle identifiers with a "-"?
Because I'm getting this error because my bundle identifier contains a -.

I have confirmed that this is a problem. By changing my bundle ID to remove any dashes, this resolved the Crashlytics problem.

@Herbal7ea
Copy link

Herbal7ea commented Aug 4, 2020

I have this problem as well.
Brand new "app" in firebase.
v 4.3.1
No dashes in my bundle Id.
I am including both pod 'Firebase/Analytics' and pod 'Firebase/Crashlytics'

I am able to get our debug builds to work as other apps, but not release builds.

My error message is:
Failed to download settings Error Domain=FIRCLSNetworkError Code=-5 "(null)" UserInfo={status_code=404, type=2, request_id=, content_type=text/html; charset=utf-8}

@ClayPwr

This comment has been minimized.

@morganchen12
Copy link
Contributor

Hey @ClayPwr, if you're seeing console errors you should file an issue at Firebase Support.

This is definitely a client-side bug, but it should not be causing console errors.

@jakob-fiegerl
Copy link

I had the same issue.
Solved it with by reading this: #4690 (comment)

I forgot to active Crashlytics for iOS.

@jriskin
Copy link

jriskin commented Sep 11, 2020

I'm having the same issue. I'm migrating from fabric and first it ran in to a case sensitivity issue. The bundle name in firebase has a single capitolized letter which made it not match. So i created a second new app, and now it give the FIRCLSNetworkError Code=-5 error. The bundleId DOES have a dash in it. But, i can't remove it since apple doesn't allow bundleId's to change and this is an existing app in the store.

@morganchen12
Copy link
Contributor

@jriskin you should file a ticket at Firebase Support, they may be able to help you on the Firebase project side of things.

@Clem23
Copy link

Clem23 commented Sep 24, 2020

Hi, I'm having the same issue as @jriskin. New app with "-" in the BUNDLE_ID.

@grago
Copy link

grago commented Oct 2, 2020

I'm experiencing this error too, i can't get Crashlytics to report crashes from my debug build. No dashes in the bundle id, and this is a new app, not imported from Fabric.

@brascene
Copy link

brascene commented Oct 9, 2020

I've got the same problem, after reading Upgrade to the Firebase Crashlytics SDK:

Step 3: Update your code

  1. In Xcode, rebuild your app, then re-open your .xcworkspace file again.

my application finally got connected to the Firebase Console.

Magically this solved my issue.

@aditur2112
Copy link

com.moneygram.ro
App Id: 1:453676358633:ios:3b491035019f8480b88978
@TKBurner Can you please have a look?

I am having the same error. I have some apps migrated from Fabric whereas rest of the apps are new in single project.
The new apps are not sending any crash reports.
6.15.0 - [Firebase/Crashlytics][I-CLS000000] Failed to download settings Error Domain=FIRCLSNetworkError Code=-5 "(null)" UserInfo={status_code=403, type=2, request_id=, content_type=application/json; charset=utf-8}

6.15.0 - [Firebase/Crashlytics][I-CLS000000] Skipping report with id 'c1b8aa111be04a078872ee0b7da42a68' this run of the app because Organization ID was nil. Report will upload once settings are download successfully
6.15.0 - [Firebase/Crashlytics][I-CLS000000] Skipping report with id 'd78d5bb2d0b0440ead37c3b6e6c031c4' this run of the app because Organization ID was nil. Report will upload once settings are download successfully

@morganchen12
Copy link
Contributor

@aditur2112 TKBurner no longer works on Firebase. Please file a support ticket via the link above.

@morganchen12 morganchen12 added the contact-support-instead Please contact Firebase Support where you can share private info about your project and get help. label Oct 16, 2020
@aditur2112
Copy link

aditur2112 commented Oct 16, 2020

@aditur2112 TKBurner no longer works on Firebase. Please file a support ticket via the link above.
@morganchen12
Already done twice but with no response.
[EXTERNAL] Case 00091521: [Firebase/Crashlytics][I-CLS000000] Failed to download settings

com.moneygram.ro
App Id: 1:453676358633:ios:3b491035019f8480b88978

I am having the same error. I have some apps migrated from Fabric whereas rest of the apps are new in single project.
The new apps are not sending any crash reports.
6.15.0 - [Firebase/Crashlytics][I-CLS000000] Failed to download settings Error Domain=FIRCLSNetworkError Code=-5 "(null)" UserInfo={status_code=403, type=2, request_id=, content_type=application/json; charset=utf-8}

6.15.0 - [Firebase/Crashlytics][I-CLS000000] Skipping report with id 'c1b8aa111be04a078872ee0b7da42a68' this run of the app because Organization ID was nil. Report will upload once settings are download successfully
6.15.0 - [Firebase/Crashlytics][I-CLS000000] Skipping report with id 'd78d5bb2d0b0440ead37c3b6e6c031c4' this run of the app because Organization ID was nil. Report will upload once settings are download successfully

@javieramp
Copy link

javieramp commented Nov 3, 2020

After added implementations of Firebase Crashlytics at iOS, app are not sending any crash reports. The error is:

Skipping report with id '7d0cf07ac7624f31838f32fcb8e8b11d' this run of the app because Organization ID was nil. Report will upload once settings are download successfully`

Steps:

  • Add pod lib pod 'Firebase/Crashlytics'
  • Add call init FirebaseApp.configure() to Appdelegate method application:didFinishLaunchingWithOptions
  • Add run script to Build Phases ${PODS_ROOT}/FirebaseCrashlytics/run

Next log:
2020-11-02 19:33:03.591891+0100 Develop[3109:3821141] 6.18.0 - [Firebase/Crashlytics][I-CLS000000] [Crashlytics] Running on iPhone8,1, 13.7.0 (17H35) 2020-11-02 19:33:03.592892+0100 Develop[3109:3821141] 6.18.0 - [Firebase/Crashlytics][I-CLS000000] [Crashlytics:Settings] No settings were cached 2020-11-02 19:33:03.593111+0100 Develop[3109:3821141] 6.18.0 - [Firebase/Crashlytics][I-CLS000000] Root: /var/mobile/Containers/Data/Application/7A038883-7017-4513-99B9-FFC89509F830/Library/Caches/com.crashlytics.data/es.xxxx.dev.xxxx 2020-11-02 19:33:03.593756+0100 Develop[3109:3821141] 6.18.0 - [Firebase/Crashlytics][I-CLS000000] [Crashlytics:Crash:Reports:Event] Registered Firebase Analytics event listener 2020-11-02 19:33:03.594150+0100 Develop[3109:3821141] 6.18.0 - [Firebase/Crashlytics][I-CLS000000] Automatic data collection is enabled. 2020-11-02 19:33:03.615947+0100 Develop[3109:3821141] 6.18.0 - [Firebase/Crashlytics][I-CLS000000] Unsent reports will be uploaded at startup 2020-11-02 19:33:03.616233+0100 Develop[3109:3821141] 6.18.0 - [Firebase/Crashlytics][I-CLS000000] Skipping report with id '7d0cf07ac7624f31838f32fcb8e8b11d' this run of the app because Organization ID was nil. Report will upload once settings are download successfully

Does anyone know what is causing this problem with the Organization ID?

After open ticket with Firebase support they send me next reply:

The second thing I noticed from the logs is that the Firebase SDK version being used is a bit old "6.18.0", the latest version is "7.0.0" If running "pod install" gives you the same version, you could try running the command "pod update" or "pod install --repo-update" to get the latest version.

This recent update Version 7.0.0 - October 26, 2020 works for me.
https://firebase.google.com/support/release-notes/ios#version_700_-_october_26_2020

@firebase firebase locked and limited conversation to collaborators Nov 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: crashlytics contact-support-instead Please contact Firebase Support where you can share private info about your project and get help.
Projects
None yet
Development

No branches or pull requests