Skip to content

x/tools/cmd/godoc: /share and /compile endpoints are hanging indefinitely #28816

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

Closed
mabu opened this issue Nov 15, 2018 · 6 comments
Closed

x/tools/cmd/godoc: /share and /compile endpoints are hanging indefinitely #28816

mabu opened this issue Nov 15, 2018 · 6 comments
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done. Soon This needs action soon. (recent regressions, service outages, unusual time-sensitive situations)
Milestone

Comments

@mabu
Copy link
Contributor

mabu commented Nov 15, 2018

Looks similar to #19433 and #19373: nothing happens after clicking "Share", and after some time an alert pops up with "Server error; try again.". Console says:

Failed to load resource: the server responded with a status of 502

But it works if I change this line to
$.ajax("https://play.golang.org/share", {

@agnivade
Copy link
Contributor

Possibly related to - #28793

The request just remains hung. Curl command to reproduce -

curl 'https://golang.org/share' -H 'Accept: */*' -H 'Referer: https://golang.org/pkg/bytes/' -H 'Origin: https://golang.org' -H 'X-Requested-With: XMLHttpRequest' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.81 Safari/537.36' -H 'DNT: 1' -H 'Content-Type: text/plain; charset=UTF-8' --data-binary $'package main\n\nimport (\n\x09"bytes"\n\x09"fmt"\n)\n\nfunc main() {\n\x09fmt.Println(bytes.HasPrefix([]byte("Gopher"), []byte("Go")))\n\x09fmt.Println(bytes.HasPrefix([]byte("Gopher"), []byte("C")))\n\x09fmt.Println(bytes.HasPrefix([]byte("Gopher"), []byte("")))\n}\n' --compressed

/cc @broady @andybons

@agnivade agnivade changed the title golang.org/pkg example sharing is broken x/tools/cmd/godoc: example sharing is broken Nov 16, 2018
@gopherbot gopherbot added this to the Unreleased milestone Nov 16, 2018
@agnivade agnivade added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Nov 16, 2018
@andybons andybons self-assigned this Nov 28, 2018
@andybons andybons modified the milestones: Unreleased, Go1.12 Nov 28, 2018
@andybons andybons added the NeedsFix The path to resolution is known, but the work has not been done. label Nov 28, 2018
@gopherbot gopherbot removed the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Nov 28, 2018
@andybons andybons changed the title x/tools/cmd/godoc: example sharing is broken x/tools/cmd/godoc: /share and /compile endpoints are hanging indefinitely Nov 30, 2018
@andybons andybons added the Soon This needs action soon. (recent regressions, service outages, unusual time-sensitive situations) label Nov 30, 2018
@andybons
Copy link
Member

/compile completes, but after around 2 min

@broady
Copy link
Contributor

broady commented Nov 30, 2018 via email

@andybons
Copy link
Member

Great. Thanks, @broady!

@andybons
Copy link
Member

andybons commented Dec 3, 2018

Hey @broady any update?

@broady
Copy link
Contributor

broady commented Dec 6, 2018

Dupe of #28134.

@broady broady closed this as completed Dec 6, 2018
@golang golang locked and limited conversation to collaborators Dec 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done. Soon This needs action soon. (recent regressions, service outages, unusual time-sensitive situations)
Projects
None yet
Development

No branches or pull requests

5 participants