-
Notifications
You must be signed in to change notification settings - Fork 909
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
React Native, iOS: "Can't find variable: Image" #1279
Comments
I found a few problems with this issue:
|
Ahh, interesting! runTransaction hits a different mechanism for sending network requests, so I guess that's why you are hitting this even though #183 was fixed. It's worth noting that transactions do not work offline. They are expected to fail, though not via a "Unhandled JS Exception". :-) So This sounds like a bug, but you may want to revisit using transactions if you want that code to work while offline. |
Do you by chance get callstack with that error? Offhand I'm having trouble tracking down where it's coming from. Or if you can throw a project on github that reproduces the problem, that would help. |
The Exception also throws when not using
That is the reason I am using Because there are no timeouts or cancellations for Promises, the normal The I also want to avoid using the local cache, which the Firestore APIs seem to use unpredictably even when its turned off via settings. It would be good to have a The Do you think Im better off just using the HTTP API directly? I could not get a proper stack trace from React Native. This is from Chrome, Im not sure if there is a better way? |
Hrm, yeah, if you don't want caching or offline support, then the REST API may be a better option for you. Though I don't think it supports realtime listens (as onSnapshot() provides), so if you're using that, it may not be a perfect fit. :-/ |
I'm getting a similar issue, first bug report came in on Oct 17th 2018. I'm not trying to access any images in Firebase which is what's confusing me about this error. Using the Firebase npm package (https://www.npmjs.com/package/firebase) to access our Firestore DB. |
@fredrivett did you resolve? I'm seeing the same thing |
@Danelund no that error still persists for me. We're now actually looking to move away from Firebase to AWS, so haven't investigated much further. Are you on the latest version of the firebase-js-sdk? That's the next port of call I'm going to check, upgrade that and check back in. If you end up upgrading I'd be interested to hear if that fixes the issue. |
@fredrivett just upgraded to 5.7.0, seems to be working so far, but will have sentry report in from users :) |
@Danelund thanks for looping back. Did this fix it for you? We haven't got round to upgrading yet (I know), but be intrigued if it cleared things up your end. |
@fredrivett nope - still getting it |
@Danelund Hmmph. Super strange issue this. Does seem to be coming from Firebase but clearly not affecting everyone using the SDK in React Native as otherwise this thread would be flooded. |
Sorry for the delays. I poked at this, and I have a hunch that the issue we're hitting is this |
No worries @mikelehen. Appreciate you taking a look. |
Internal tracking issue: b/123242479 |
@mikelehen FYI, the required webchannel fix has made it out to public webchannel. |
Simple workaround:
|
I get this message when I run a transaction on the iOS Simulator offline:
It retries the transaction around 3-5 times over around 2 minutes, then throws the Exception.
I am using the Xcode "Network Link Conditioner" to disable the network.
Related
#183
Environment
The text was updated successfully, but these errors were encountered: