quickstart-ios icon indicating copy to clipboard operation
quickstart-ios copied to clipboard

[Firebase/Crash][I-CRA100001] Failed to transmit crash: Error Domain=com.google.FirebaseCrash

Open ZhengXueNing opened this issue 9 years ago • 7 comments

I encountered a crash log can not upload the error.

Error message: [Firebase/Crash][I-CRA100001] Failed to transmit crash: Error Domain=com.google.FirebaseCrash Code=1 "Upload failed" UserInfo={NSLocalizedDescription=Upload failed, NSLocalizedFailureReason=HTTP Error Code 400: <NSHTTPURLResponse: 0x17403eec0> { URL: https://mobilecrashreporting.googleapis.com/v1/crashes:batchCreate?key=AIzaSyBFFt4mgU8WOLJmaizi1KWgv3KxnobL3MU&alt=json } { status code: 400, headers { "Cache-Control" = private; "Content-Encoding" = gzip; "Content-Length" = 157; "Content-Type" = "application/json; charset=UTF-8"; Date = "Tue, 17 Oct 2017 08:09:20 GMT"; Server = ESF; Vary = "Origin, X-Origin, Referer"; "alt-svc" = "quic=":443"; ma=2592000; v="39,38,37,35""; "x-content-type-options" = nosniff; "x-frame-options" = SAMEORIGIN; "x-xss-protection" = "1; mode=block"; } }}

Can this error be resolved?

ZhengXueNing avatar Oct 17 '17 08:10 ZhengXueNing

This can happen sometimes if your GoogleService-Info.plist file is missing the API_KEY parameter. Can you try redownloading the plist file and seeing if that resolves the error?

morganchen12 avatar Oct 17 '17 18:10 morganchen12

image

I re-downloaded the configuration file, but the inside of the Key is not missing, Replace the configuration file, But still there will be 400 errors.

ZhengXueNing avatar Oct 18 '17 02:10 ZhengXueNing

您用的是哪一本 Firebase?请安装最新版本,然后再试一次。

新的 Firebase 应该会在此误发出 400 Error 的原因。

Translation Which version of Firebase are you using? Please install the latest version, then try again.

The newest Firebase version should print the 400 error's failure reason.

morganchen12 avatar Oct 18 '17 21:10 morganchen12

image image

我更新到最新版本后,依然还是会发生错误

Translation I updated to the newest Firebase version, but still have the same error.

ZhengXueNing avatar Oct 19 '17 01:10 ZhengXueNing

请用一款 proxy (例如Charles proxy)调查伺服器的回应(使用方法)。

Translation Use a proxy (i.e. Charles proxy) to to investigate the server response.

morganchen12 avatar Oct 19 '17 17:10 morganchen12

发生错误的时候如果服务器回应没有error参数,现有的FirebaseCrash不会发出原因。未来发布的Firebase当时会每次印出服务器回应,不管有没有error的参数。因此以后开发者不用安装proxy程序来调查。

There was a part of the codebase that wouldn't report an error if it wasn't able to find an error in the message body. In a newer release of Firebase, this will be changed to print out the whole server response if the error message is missing, so developers will no longer have to proxy their own devices to debug this error.

morganchen12 avatar Oct 31 '17 23:10 morganchen12

This logging change will be released soon. Closing this issue until there's more activity.

morganchen12 avatar Nov 14 '17 01:11 morganchen12