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

Parsing error of a json response #4

Closed
gerardnll opened this issue Mar 10, 2014 · 6 comments
Closed

Parsing error of a json response #4

gerardnll opened this issue Mar 10, 2014 · 6 comments

Comments

@gerardnll
Copy link

The plugin throws the following error when it receives a Content-Type: application/json as a response once the image is uploaded:

Uncaught SyntaxError: Unexpected token o

I think that the plugin is parsing an already parsed json object. When the content type is changed to text/html this error doesn't happen.
The correct Header if we are returning a json object is "application/json" so i think this should be fixed appropriately.

Thanks guys for the good work.

@michkinn
Copy link

+1

1 similar comment
@grizzlylab
Copy link

+1

@michkinn
Copy link

I send a pull request yesterday
Should be fix soon

@cbrwizard
Copy link

+1, still not fixed
Thank you, michkinn!

@michkinn
Copy link

michkinn commented Jun 3, 2014

Only @styoe can merge

@sconsult
Copy link
Owner

sconsult commented Feb 1, 2015

this has been fixed, additionally a new callback has been implemented, onError, which provides feedback and allows you to react to an error within your app.

@sconsult sconsult closed this as completed Feb 1, 2015
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

5 participants