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

After the last commit ajax get is not working #521

Closed
tong-jomedia opened this issue Aug 7, 2014 · 5 comments
Closed

After the last commit ajax get is not working #521

tong-jomedia opened this issue Aug 7, 2014 · 5 comments

Comments

@tong-jomedia
Copy link

I am getting this
Request Method:OPTIONS
Status Code:405 Method Not Allowed

it seems the method is not taking from the function call in swagger.js

@fehguy
Copy link
Contributor

fehguy commented Aug 8, 2014

can you share the details from the developer console in your browser?

@tong-jomedia
Copy link
Author

Request Method:OPTIONS
Status Code:405 Method Not Allowed

@tong-jomedia
Copy link
Author

no zlib library shred.bundle.js:1726
no iconv library shred.bundle.js:1734
2
Loaded SwaggerUI swagger-ui.js:71
Loaded SwaggerUI swagger-ui.js:71
shebang endpoint: book_getDetailAction swagger-ui.js:71
li_dom_id book_getDetailAction swagger-ui.js:71
li_content_dom_id book_getDetailAction_content swagger-ui.js:71
shebang endpoint: book_getDetailAction swagger-ui.js:71
li_dom_id book_getDetailAction swagger-ui.js:71
li_content_dom_id book_getDetailAction_content swagger-ui.js:71
shebang endpoint: book_getDetailAction swagger-ui.js:71
li_dom_id book_getDetailAction swagger-ui.js:71
li_content_dom_id book_getDetailAction_content swagger-ui.js:71
OPTIONS http://somedomain/api/v1/book/detail/bookId/1 405 (Method Not Allowed) shred.bundle.js:2608
XMLHttpRequest cannot load http://somedomain/api/v1/book/detail/bookId/1. Invalid HTTP status code 405

@hardikvohra
Copy link

I am facing the same error as well.
no zlib library shred.bundle.js:1726
no iconv library shred.bundle.js:1734
2
Uncaught TypeError: undefined is not a function swagger.js:1409

@fehguy
Copy link
Contributor

fehguy commented Aug 30, 2014

I've updated swagger-js. Can you please update your lib/swagger.js from here:

https://raw.githubusercontent.com/wordnik/swagger-js/master/lib/swagger.js

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