Skip to content

POST signup json error #87

@sidthekidder

Description

@sidthekidder

While making a POST request to create a new user in the /tcos/:tcoid/signup route, the JSON response returned has keys that are not enclosed by "" , leading to parsing errors

Paste the following code into a browser console and see the Response of the POST request in the Network tab -

$.ajax({url:"http://tcoapi.apiary-mock.com/tcos/tco14/signup", method: "POST"})

The corresponding code is at
line 13, https://github.com/cloudspokes/tco-api/blob/master/actions/signup.js
line 24, https://github.com/cloudspokes/tco-api/blob/master/initializers/signup.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions