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

Better error for when the type property is missing from a JSON API response. #3945

Closed
ghost opened this issue Nov 20, 2015 · 1 comment
Closed

Comments

@ghost
Copy link

ghost commented Nov 20, 2015

Currently it will just throw Uncaught TypeError: Cannot read property 'replace' of undefined, because somewhere along the parsing of the response replace is used on the value of type.

The error is triggered at: https://github.com/emberjs/data/blob/master/addon/serializers/json-api-serializer.js#L139

@allthesignals
Copy link
Contributor

I am getting this error, but I am using the RESTAdapter...

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

1 participant