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

react-native compatibility (Android) #21

Closed
endel opened this issue Dec 16, 2019 · 8 comments
Closed

react-native compatibility (Android) #21

endel opened this issue Dec 16, 2019 · 8 comments

Comments

@endel
Copy link

endel commented Dec 16, 2019

Hi there,

I've received this bug report on my project that uses httpie@^2.0.0-next.2: colyseus/colyseus.js#55

I believe it's related to httpie but haven't inspected super deep yet. There is also a similar issue reported on axios repository here: axios/axios#1938

I hope to find a solution and create a PR soon

@endel
Copy link
Author

endel commented Dec 16, 2019

Hi @lukeed, I just noticed that you've already fixed this here: a29769f

Do you mind publishing this version to NPM? I believe it could be 2.0.0 without tags this time. I've been using it for quite some time and it's pretty stable.

Cheers!

@lukeed
Copy link
Owner

lukeed commented Dec 16, 2019

Hey, thank you for following up :)

Funny, I thought I had published those changes now.
In any event, httpie@2.0.0-next.3 is now published (with next tag).

I need to find time this holiday break to finish the last batch of documentation and testing.

Thanks again 🎉

@lukeed lukeed closed this as completed Dec 16, 2019
@endel
Copy link
Author

endel commented Dec 16, 2019

Thanks for the fast reply @lukeed!

I'm not a React Native expert but I found a strange behavior:

  • Created a React Native app (Expo)
  • Use colyseus.js (with the new httpie@2.0.0-next.3 version)
  • Open the Expo app from Android
  • The error appears (Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object reference )
  • If I open the node_modules/httpie/dist/httpie.esm.js file, and save it (without any changes on it) - it triggers a rebuild and reloads on Android Expo app, and the error doesn't show anymore

😨

@lukeed
Copy link
Owner

lukeed commented Dec 16, 2019

I've no idea. I've never touched RN or its tools (and don't plan to).

Is that consistent? Is there a build cache that needs to be invalidated?

@endel
Copy link
Author

endel commented Dec 16, 2019

Right, sorry to bother, you're correct, I've used expo --clear and the error is gone :)

Thanks again @lukeed! ❤️

@lukeed
Copy link
Owner

lukeed commented Dec 16, 2019

Not a problem at all, glad it works!

@gabimoncha
Copy link

@lukeed Hi, somehow I'm getting this error 2 years later :(
Tried expo start --clear with no luck

@lukeed
Copy link
Owner

lukeed commented May 20, 2022

Still never used RN, sorry. Not sure if expo --clear and export start --clear are the same thing though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants