olofd / react-native-signalr

Use SignalR with React Native
150 stars 61 forks source link

Error: Method GET must not have a request body #41

Closed brunobraun closed 7 years ago

brunobraun commented 7 years ago

I can't use the function:

connection.start().done(() => {

as shown in the example.

This error occurs: Method GET must not have a request body.

"react": "16.0.0-beta.5" "react-native": "0.49.3" "react-native-signalr": "^1.0.5"

Kebabpizza commented 7 years ago

Same.

image

olofd commented 7 years ago

Fixing this tonight. Error mentioned here as well #32. New issue after yesterdays release. Use version 1.0.4 for now!

olofd commented 7 years ago

For reference. this changed introduced the issue I believe: https://github.com/olofd/react-native-signalr/commit/e3a8238b7f0da0b5d9d27826952896669bfde653 from #33

olofd commented 7 years ago

Should be fixed on npm 1.0.6