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

"Try it out!" doesn't work in new generated project (after swagger-ui update to 2.0.21) #432

Closed
clark0x opened this issue Aug 4, 2014 · 4 comments

Comments

@clark0x
Copy link
Contributor

clark0x commented Aug 4, 2014

I'm new to loopback, this is what I did (which can reproduce this issue):

$ sudo npm cache clean
$ yo loopback
... 
$ cd demo
$ slc run .

Then open a browser to access http://localhost:3000/explorer, under POST /Users, type {} in data field, then click Try it out!. a throbber keeps showing, but no response is received. It seems that request is not sent (monitor by chrome dev tool).

Actually, I try the same commands two day ago, everything works fine. So I compare the two demo, the only difference is the version of swagger-ui: the working (old) one uses swagger-ui 2.0.18, while the broken (new) one uses swagger-ui 2.0.21.

@jmls
Copy link

jmls commented Aug 4, 2014

changing the package.json file in loopback-explorer to read "swagger-ui": "2.0.18" does seem to fix the problem

@raymondfeng
Copy link
Member

[email protected] is published to npmjs. It should fix (or work around) the problem while we are waiting for a root fix at swagger-api/swagger-js#107.

@jmls
Copy link

jmls commented Aug 4, 2014

+1 works for me. Thanks.

@clark0x
Copy link
Contributor Author

clark0x commented Aug 4, 2014

+1 [email protected] works

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

3 participants