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

PATCH requests ignore their body #60

Closed
atlanteh opened this issue Apr 2, 2017 · 2 comments
Closed

PATCH requests ignore their body #60

atlanteh opened this issue Apr 2, 2017 · 2 comments

Comments

@atlanteh
Copy link

atlanteh commented Apr 2, 2017

** Please provide the following information if you found some bugs or have question:

React Native version: 41.3
Platform: iOS
Is real device of platform: No
Operating System: macOS
React Native Debugger: 0.6.2

When using react-native-debugger, all PATCH requests which have a body, just drop it and the server receives an empty body:

fetch('http://myServer.com/test', {method: 'PATCH', body: {test: 1234}});

when I use POST, it's working fine.

I'm have react-native-fetch-blob in my app and it polyfills xor, blob and fetch, so this might be what's causing it.

@jhen0409
Copy link
Owner

jhen0409 commented Apr 2, 2017

Just simple tried PATCH original fetch with json-server it works fine.

I'm have react-native-fetch-blob in my app and it polyfills xor, blob and fetch, so this might be what's causing it.

I don't think it related here, have you tried it with http://localhost:8081/debugger-ui? I think there should be some reason causing the problem for the module in Debug JS remotely mode.

I'll try it when I have time.

@jhen0409
Copy link
Owner

jhen0409 commented Apr 2, 2017

I can reproduce the react-native-fetch-blob problem, but it still ignore body with PATCH request if I leave Debug JS remotely mode, it just called the native method, so I'm sure it not related here. :\

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

2 participants