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
{{ message }}
Repository navigation
NativeRunnable.java: Failed to create Value from JSON: #22445
Fetching a photo object from the Google Maps API causes a fatal error. Works as expected on RN 55.4, but crashes on 57.7
"Error calling RCTDeviceEventEmitter.emit
Failed to create Value from JSON:"
Reproducible Demo
React Native 57.7
fetch('https://maps.googleapis.com/maps/api/place/photo?maxwidth=200&photoreference=CnRvAAAAwMpdHeWlXl-lH0vp7lez4znKPIWSWvgvZFISdKx45AwJVP1Qp37YOrH7sqHMJ8C-vBDC546decipPHchJhHZL94RcTUfPa1jWzo-rSHaTlbNtjh-N68RkcToUCuY9v2HNpo5mziqkir37WU8FJEqVBIQ4k938TI3e7bf8xq-uwDZcxoUbO_ZJzPxremiQurAYzCTwRhE_V0' + '&key={SOME API KEY}')
On Dec 20, 2018 8:54 PM, "Jenn" ***@***.***> wrote:
I also have this issue on 57 when it is a photo. I've racked my brain
trying to figure out a way around this, but so far nothing.
Can reproduce by a fetch call that is pulling a photo response. Like above.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#22445 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ASZsAQIqJ5WnEuuCq03SO-0GzLdPCUwqks5u7GlvgaJpZM4Y3bdk>
.
Hello there 👋 this issue doesn't have a repro (which means, a react-native init-ed project with the minimal changes that leads to creating the same issue you are reporting). Unfortunately, I have no way of helping you in a meaningful way – there is no easy way for me to recreate the situation and check that the issue reported is still there when changing the code.
Because of this, we are going to close this issue - but if a repro is shared, we are happy to reopen it 🤗
Update: I've tried reproducing with another image and it downloads it w/o issues. Please provide Snack link, here's my example: https://snack.expo.io/HkeWCL0PV
@grabbou Actually that Snack example was very helpful. It does crash on the Honor 7X (made by Huawei) BND-L24. Getprop gives: [ro.build.version.base_os]: [HONOR/BND-L24/HWBND-H:8.0.0/HONORBND-L24/344(C567):user/release-keys].
With the latest version of the Expo app (2.11.4), I get crashes for Expo SDK versions 31 and 32, but not 33, leading to hope that this is fixed in RN 0.59.8.
Huawei-derived phones have been the most susceptible to this bug in my experience.
@grabbou I found also that the "Tap to Play" (again for https://snack.expo.io/HkeWCL0PV) in Snack on Android follows the same pattern, failure for SDKs 31 and 32, success for SDK 33.
Activity
code-jenn-or commentedon Dec 21, 2018
I also have this issue on 57 when it is a photo. I've racked my brain trying to figure out a way around this, but so far nothing.
Can reproduce by a fetch call that is pulling a photo response. Like above.
NicWickman commentedon Dec 23, 2018
Pingou commentedon Jan 18, 2019
Same problem using XMLHttpRequest().
AppleMango23 commentedon Jan 28, 2019
Error will come out when i try to read a photo, but text file just work fine. Is there anyone know how to make it work? : (
NicWickman commentedon Jan 28, 2019
darknblack commentedon Feb 17, 2019
Facing the same problem. Face no issues when using axios.
kelset commentedon Feb 21, 2019
(sorry clicked the close button by mistake!)
Can anyone create a repro with 0.59 (via the init command) and link it here?
grabbou commentedon Mar 19, 2019
Hello there 👋 this issue doesn't have a repro (which means, a react-native init-ed project with the minimal changes that leads to creating the same issue you are reporting). Unfortunately, I have no way of helping you in a meaningful way – there is no easy way for me to recreate the situation and check that the issue reported is still there when changing the code.
Because of this, we are going to close this issue - but if a repro is shared, we are happy to reopen it 🤗
grabbou commentedon Mar 19, 2019
Update: I've tried reproducing with another image and it downloads it w/o issues. Please provide Snack link, here's my example: https://snack.expo.io/HkeWCL0PV
cahaverl commentedon Jul 16, 2019
@grabbou Actually that Snack example was very helpful. It does crash on the Honor 7X (made by Huawei) BND-L24. Getprop gives: [ro.build.version.base_os]: [HONOR/BND-L24/HWBND-H:8.0.0/HONORBND-L24/344(C567):user/release-keys].
With the latest version of the Expo app (2.11.4), I get crashes for Expo SDK versions 31 and 32, but not 33, leading to hope that this is fixed in RN 0.59.8.
Huawei-derived phones have been the most susceptible to this bug in my experience.
cahaverl commentedon Jul 16, 2019
@grabbou I found also that the "Tap to Play" (again for https://snack.expo.io/HkeWCL0PV) in Snack on Android follows the same pattern, failure for SDKs 31 and 32, success for SDK 33.
wiess-huabo commentedon Dec 30, 2019
why this is close? come across this issue.