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

App crashed on failed to fetch InAppMessaging image #7299

Closed
tanyuantj opened this issue Jan 14, 2021 · 2 comments · Fixed by #7328
Closed

App crashed on failed to fetch InAppMessaging image #7299

tanyuantj opened this issue Jan 14, 2021 · 2 comments · Fixed by #7328
Assignees
Labels
api: inappmessaging Firebase In App Messaging

Comments

@tanyuantj
Copy link

tanyuantj commented Jan 14, 2021

Step 0: Are you in the right place?

Yes

[REQUIRED] Step 1: Describe your environment

  • Xcode version: 12.3 (12C33)
  • Firebase SDK version: 7.3.0
  • Installation method: CocoaPods
  • Firebase Component: Messaging

[REQUIRED] Step 2: Describe the problem

I published a test campaign but app crashed when the event fired. I guess it should be silent even if the image is invalid.

Steps to reproduce:

Error in fetching image: Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo={NSUnderlyingError=0x283ba2af0 {Error Domain=kCFErrorDomainCFNetwork Code=-1005 "(null)" UserInfo={NSErrorPeerAddressKey=<CFData 0x281791c70 [0x1e707b730]>{length = 16, capacity = 16, bytes = 0x100201bb98c726720000000000000000}, _kCFStreamErrorCodeKey=53, _kCFStreamErrorDomainKey=1}}, NSErrorFailingURLStringKey=https://techcrunch.com/wp-content/uploads/2019/05/Screen-Shot-2019-05-22-at-8.43.37-AM.jpg, NSErrorFailingURLKey=https://techcrunch.com/wp-content/uploads/2019/05/Screen-Shot-2019-05-22-at-8.43.37-AM.jpg, _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=53, NSLocalizedDescription=The network connection was lost.}

Error in loading image data for the message.

The callstack exception message is: Image data should never nil for a valid card message.

Relevant Code:

No code

@christibbs
Copy link
Contributor

@tanyuantj Thanks for reporting. For a test message it should pop up a system alert to show you that there was an error. It would fail silently if it happens in production, though. Will look into this and fix.

@tanyuantj
Copy link
Author

@tanyuantj Thanks for reporting. For a test message it should pop up a system alert to show you that there was an error. It would fail silently if it happens in production, though. Will look into this and fix.

@christibbs the fix sounds great and thanks!

@firebase firebase locked and limited conversation to collaborators Feb 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: inappmessaging Firebase In App Messaging
4 participants