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

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

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

Comments

Projects
None yet
5 participants
@mabu
Copy link
Contributor

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

This comment has been minimized.

Copy link
Member

commented Nov 16, 2018

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

@andybons andybons self-assigned this Nov 28, 2018

@andybons andybons modified the milestones: Unreleased, Go1.12 Nov 28, 2018

@andybons andybons added the NeedsFix 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 label Nov 30, 2018

@andybons

This comment has been minimized.

Copy link
Member

commented Nov 30, 2018

/compile completes, but after around 2 min

@broady

This comment has been minimized.

Copy link
Member

commented Nov 30, 2018

@andybons

This comment has been minimized.

Copy link
Member

commented Nov 30, 2018

Great. Thanks, @broady!

@andybons

This comment has been minimized.

Copy link
Member

commented Dec 3, 2018

Hey @broady any update?

@broady

This comment has been minimized.

Copy link
Member

commented Dec 6, 2018

Dupe of #28134.

@broady broady closed this Dec 6, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.