-
Notifications
You must be signed in to change notification settings - Fork 9k
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
Docs.shebang: undefined is not a function #551
Docs.shebang: undefined is not a function #551
Comments
Hi @dblock , I'd like to sign in to see what is causing the error. If you were to point the petstore version of the swagger ui (http://petstore.swagger.wordnik.com/) to your API, what do you get? |
Create an account on https://staging.artsy.net and you should see it. I'll try to repro with petstore soon-ish. |
Unless I'm doing something wrong, it looks like you've minified the swagger-ui source, and it's pretty hard to debug. |
You're doing nothing wrong :) If you don't want to wait for me, you can setup https://github.com/artsy/doppler.
You will have it locally, and it's not minified. |
Having the same issue here. I'm using the latest version of swagger/swagger-ui. There is a workaround? |
@fehguy I have a non-minified version for you, http://dblock-doppler.artsy.net, create an account on staging.artsy.net, login via http://dblock-doppler.artsy.net and click "Playground". |
Hi folks, If you are using Web Api or MVC (Microsoft) you could review your Bundle configuration file. At the beginning of the file you must add 3 new commands wich will clean and reset all previous bundles that have added. |
If I am not mistaken @gandarez issue was different, in my case ba-bbq is def. included. |
I had this issue when jQuery was included twice in the page. |
I have only one jquery included by page. |
@dblock I'm having trouble signing into the site to try this. Is it operational? Maybe some known credentials that I can use? |
@fehguy This will be alive for another maybe 24 hours, I'd have to redo it then. Feel free to find me via email, dblock at dblock dot org if you need the account again. Username: [email protected] |
@dblock I think the error is because it's taking so long to load your swagger resources. I think the timeout to expand the shebang is to low for the speed of the json being served. |
How do we fix this? This should work reliably though even if it takes forever, no? Generally I would want a callback on when things are "done", had some other issue trying to remove a message when all the API info was downloaded, see #550. |
yes, it should. tracing the calls, it actually looks like you have multiple jquery libraries loading:
and
I'm guessing this is a culprit in causing the issue as well. |
The multiple JQuery library problem is interesting - especially with all packaged solutions like https://github.com/BrandyMint/grape-swagger-rails, opened https://github.com/BrandyMint/grape-swagger-rails/issues/36 for your comments. |
I found the problem. Thanks for your helpful suggestions. First, I was including JQuery twice, once from my main Rails application.js and second via swagger-ui. I removed the swagger's version. Second, jquery-bbq defines If you want to see a diff of the fix, artsy/doppler#42. |
hey @dblock thanks for following up with this. |
This happened to me when trying to use Tampermonkey with Swagger UI, with a script which did |
Confirmed that this is a problem with the latest dist, too.
in
Docs.shebang
,var fragments = $.param.fragment().split('/');
is failing for me,param
is a function, and$.param.fragment()
is undefined.I am not sure whether this is a conflict or something else. The entire app is in https://github.com/artsy/doppler and you can see this in https://developers-staging.artsy.net/playground.
The text was updated successfully, but these errors were encountered: