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

Fails to show non-JSON parse-able response #1354

Closed
mortias opened this issue Jun 10, 2015 · 3 comments
Closed

Fails to show non-JSON parse-able response #1354

mortias opened this issue Jun 10, 2015 · 3 comments

Comments

@mortias
Copy link

mortias commented Jun 10, 2015

Hello,

Refr @webron @ponelat

We identified a possible regression bug related to the "no content" bug

Basically if the json returned is invalid, in previous versions you got the response back
anyway but it told me that it was not able to parse it, now i yust get "no content"

For security reasons we prefix our json responses with
)]}',
{"header":{"code":200,"text":"OK","version":"1.0"},"data":"some data"}

@mortias
Copy link
Author

mortias commented Jun 10, 2015

ok, we figured out that the thirdparty libs are not relaiable so the only option would be to force the ui to use jquery, meaning set the option useJQuery : true in the SwaggerUI constructor on the index.html

@ponelat
Copy link
Member

ponelat commented Jun 10, 2015

Here is the issue for superagent...
ladjs/superagent#675

@webron
Copy link
Contributor

webron commented Jun 9, 2017

This should no longer be an issue in 3.X.

@webron webron closed this as completed Jun 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants