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/pkgsite: searching for "new" symbols causes page to hang and eventually return 500 internal server error #71052

Closed
jcbhmr opened this issue Dec 29, 2024 · 3 comments
Labels
pkgsite/search Issues related to pkg.go.dev search functionality pkgsite
Milestone

Comments

@jcbhmr
Copy link

jcbhmr commented Dec 29, 2024

What is the URL of the page with the issue?

https://pkg.go.dev/search?q=new&m=symbol

What is your user agent?

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36

Screenshot

image
image

What did you do?

  1. Go to https://pkg.go.dev/
  2. Search for "new" in the search box
  3. Click the "Symbols" tab

What did you see happen?

The page hangs for about 30 seconds and then the first time I did it showed the branded 500 error. The second time I tried it it showed the plaintext error.

What did you expect to see?

The first 25 items that were called "new" only. The reason I was searching for "new" in the first place was to get an idea of how many stdlib types were using plain "packagename.New()" instead of "packagename.NewOtherType()". I expected to see stdlib packages (since they are usually ranked above all third-party packages) like log.New()

@jcbhmr jcbhmr added the pkgsite label Dec 29, 2024
@gopherbot gopherbot added this to the Unreleased milestone Dec 29, 2024
@gabyhelp
Copy link

Related Issues

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

@seankhliao seankhliao added the pkgsite/search Issues related to pkg.go.dev search functionality label Dec 29, 2024
@seankhliao
Copy link
Member

seems to work for me?

@seankhliao
Copy link
Member

I think this is the same as #64422

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkgsite/search Issues related to pkg.go.dev search functionality pkgsite
Projects
None yet
Development

No branches or pull requests

4 participants