stormpath-express-react-example icon indicating copy to clipboard operation
stormpath-express-react-example copied to clipboard

req.body is being set to empty object {}

Open gitmrlu opened this issue 9 years ago • 2 comments

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 {}

gitmrlu avatar Jan 16 '17 23:01 gitmrlu

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!

edjiang avatar Jan 17 '17 19:01 edjiang

Looks like it's being tracked in this ticket: https://github.com/stormpath/stormpath-sdk-react/issues/154

edjiang avatar Jan 18 '17 00:01 edjiang