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

NativeRunnable.java: Failed to create Value from JSON: #22445

Closed
3 tasks done
NicWickman opened this issue Nov 28, 2018 · 12 comments
Closed
3 tasks done

NativeRunnable.java: Failed to create Value from JSON: #22445

NicWickman opened this issue Nov 28, 2018 · 12 comments
Labels
Bug JavaScript Resolution: Locked This issue was locked by the bot.

Comments

@NicWickman
Copy link

NicWickman commented Nov 28, 2018

Environment

react-native: 0.57.7

React Native Environment Info:
System:
OS: Windows 10
CPU: (12) x64 Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz
Memory: 2.48 GB / 11.90 GB
Binaries:
Yarn: 1.9.4 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.2.0 - C:\Program Files\nodejs\npm.CMD

Description

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}')

@code-jenn-or
Copy link

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
Copy link
Author

NicWickman commented Dec 23, 2018 via email

@Pingou
Copy link

Pingou commented Jan 18, 2019

Same problem using XMLHttpRequest().

@AppleMango23
Copy link

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
Copy link
Author

NicWickman commented Jan 28, 2019 via email

@hramos hramos removed the Bug Report label Feb 6, 2019
@darknblack
Copy link

darknblack commented Feb 17, 2019

Facing the same problem. Face no issues when using axios.

@kelset kelset closed this as completed Feb 21, 2019
@kelset
Copy link
Contributor

kelset commented 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
Copy link
Contributor

grabbou commented 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 grabbou closed this as completed Mar 19, 2019
@grabbou
Copy link
Contributor

grabbou commented 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
Copy link

@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
Copy link

@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
Copy link

why this is close? come across this issue.

@facebook facebook locked as resolved and limited conversation to collaborators Mar 19, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Mar 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug JavaScript Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests