-
Notifications
You must be signed in to change notification settings - Fork 472
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
Grape 0.9.0 and grape-swagger 0.9.0 incompatible #187
Comments
Does that endpoint work? Does it work without .json? |
No. It is not working without json too. |
I am 99% sure this is a known bug fixed in the combination of grape 0.10.1 and grape-swagger 0.9.0, you should upgrade, but this is still an issue for the version combination of 0.9.0's. |
Now I am using below version. |
Still it is working with below version. |
Are you saying this is not working with 0.10.1 / 0.9.0 for you? |
+1. yes same bug with 0.10.1 |
I could really use a repro, maybe on top of https://github.com/dblock/grape-on-rack? |
I ran into this issue as well. Here is a rails app that reproduces the problem: https://github.com/aaronrenner/ember-contacts-backend-demo/tree/grape-swagger-issue. Fire up the rails server and visit http://localhost:3000/documentation Since I'm continuing to work on the app, make sure to check out the grape-swagger-issue tag so you can reproduce it. |
@aaronrenner Just change https://github.com/aaronrenner/ember-contacts-backend-demo/blob/master/config/initializers/grape.rb#L1 from GrapeSwaggerRails.options.url = '/api/v1/swagger_doc.json' to GrapeSwaggerRails.options.url = '/api/v1/swagger_doc' And everything will work. PR: aaronrenner/ember-contacts-backend-demo#1 Can everyone on this thread check this and confirm? I changed https://github.com/tim-vandecasteele/grape-swagger/blob/master/UPGRADING.md. |
That works. Thanks @dblock. |
It works! Thanks @dblock. |
Closing this, thanks. |
I am using Grape gem with rails app but I am getting below error when I call grape-swagger UI.
Error : Unable to read api 'users' from path https://appname.herokuapp.com/api/swagger_doc.json/users.json (server returned undefined)
Gem:: grape 0.9.0, grape-entity 0.4.4, grape-swagger 0.9.0, rails 4.1.6, rack-cors 0.2.9
Please help me
The text was updated successfully, but these errors were encountered: