-
Notifications
You must be signed in to change notification settings - Fork 17.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
x/pkgsite: code example format request returns HTTP 405 method not allowed error #70910
Comments
Related Issues (Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.) |
The example code is formatted in playground without any error. Needs Investigation for pkgsite. |
Good afternoon @ansaba. Does the GoPlayground environment allow you to work with URL? |
@ibeloyar , I think you mean does Playground environment allows to work with URL package? |
Found this bug when I ran into the same issue with a different example: https://pkg.go.dev/strings#example-Builder The error I see displayed in red is the same (running from a Chromebook): SyntaxError: Unexpected token 'M', "Method Not Allowed " is not valid JSON I tried random other examples and can't find any that format on pkg.go.dev at present. |
Change https://go.dev/cl/645577 mentions this issue: |
Is there an ETA for when the fix for this will be active on the site? |
We just deployed. I see valid output when I click Run on https://pkg.go.dev/strings#example-Builder. |
Thanks! |
What is the URL of the page with the issue?
https://pkg.go.dev/net/url#Values.Encode (click the "Format" button)
What is your user agent?
Chrome on Windows
Screenshot
What did you do?
Clicked the Format button for the code example
What did you expect to see?
Formatted code
What did you see instead?
An HTTP 405 error response
The text was updated successfully, but these errors were encountered: