You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failure to fetch token fails to report server error.
I.e. error message 'Invalid fetch response, expected 'token' or 'Error' key' is shown, instead of the error after the 'Error' key returned by the FCM service.
Reproducing the issue
This issue is evident for some or all of the problems indicated by this issue in the Flutter Firebase library: firebase/flutterfire#13558
The error can be found by inspecting the code here:
The error key is parsed into errorValue on out on line 146. Lines 148-176 do not assign the error to responseError in all cases, including when errorValue is the string 'TOO_MANY_REGISTRATIONS'. Lines 177-183 then report the key 'Error' was not set.
Firebase SDK Version
latest
Xcode Version
n/a
Installation Method
CocoaPods
Firebase Product(s)
Messaging
Targeted Platforms
iOS
Relevant Log Output
No response
If using Swift Package Manager, the project's Package.resolved
Expand Package.resolved snippet
Replace this line with the contents of your Package.resolved.
If using CocoaPods, the project's Podfile.lock
Expand Podfile.lock snippet
Replace this line with the contents of your Podfile.lock!
The text was updated successfully, but these errors were encountered:
Thanks for the report! I agree that the error message can be improved to make it easier to debug fetch token failures. I will send out a PR to fix that.
Description
Failure to fetch token fails to report server error.
I.e. error message 'Invalid fetch response, expected 'token' or 'Error' key' is shown, instead of the error after the 'Error' key returned by the FCM service.
Reproducing the issue
This issue is evident for some or all of the problems indicated by this issue in the Flutter Firebase library: firebase/flutterfire#13558
The error can be found by inspecting the code here:
firebase-ios-sdk/FirebaseMessaging/Sources/Token/FIRMessagingTokenFetchOperation.m
Line 148 in 00674c8
The error key is parsed into errorValue on out on line 146. Lines 148-176 do not assign the error to responseError in all cases, including when errorValue is the string 'TOO_MANY_REGISTRATIONS'. Lines 177-183 then report the key 'Error' was not set.
Firebase SDK Version
latest
Xcode Version
n/a
Installation Method
CocoaPods
Firebase Product(s)
Messaging
Targeted Platforms
iOS
Relevant Log Output
No response
If using Swift Package Manager, the project's Package.resolved
Expand
Package.resolved
snippetReplace this line with the contents of your Package.resolved.
If using CocoaPods, the project's Podfile.lock
Expand
Podfile.lock
snippetReplace this line with the contents of your Podfile.lock!
The text was updated successfully, but these errors were encountered: