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

Uncaught SyntaxError: Unexpected token % #642

Closed
Dzoge opened this issue Feb 12, 2016 · 3 comments
Closed

Uncaught SyntaxError: Unexpected token % #642

Dzoge opened this issue Feb 12, 2016 · 3 comments

Comments

@Dzoge
Copy link

Dzoge commented Feb 12, 2016

Hello,

I have installed the latest version of swashbucke into my WebAPI ASP.NET project.
When launching the ui in browser (Chrome), I get a Javascript error saying:
"Uncaught SyntaxError: Unexpected token %"

This happens on the following line:
oAuth2AdditionalQueryStringParams: JSON.parse('%(oAuth2AdditionalQueryStringParams)')
of the following url:
swagger/ui/index

I can't get any way around it. Any help would be much appreciated.

@jreames9
Copy link

I ran into the same issue, I think it is related to the changes for
#522
If I added a call to EnableOAuth2Support in my SwaggerConfig it sets the parameter and I no longer get the error.

@Dzoge
Copy link
Author

Dzoge commented Feb 13, 2016

@jreames9 Thank you, it helped.

I believe this issue should be fixed because it causes confusion.

@domaindrivendev
Copy link
Owner

See 5.3.1

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