stormpath-express-react-example
stormpath-express-react-example copied to clipboard
req.body is being set to empty object {}
This can be reproduced by logging in (after creating a user if necessary) and trying to edit the profile page. The form will give the error 'Unexpected token T in JSON at position 0' and the server will give the error 'Cannot use 'in' operator to search for 'color' in undefined' but this is due to req.body being {}
Looks like there's a problem with the React 1.3.4 library for the purposes of this example; I would pin it in your package.json.
"react-stormpath": "1.3.3"
Will get this reported. Thanks!
Looks like it's being tracked in this ticket: https://github.com/stormpath/stormpath-sdk-react/issues/154