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

Make sure requests to OCLC for FAST time out #2770

Open
jrochkind opened this issue Oct 26, 2024 · 0 comments
Open

Make sure requests to OCLC for FAST time out #2770

jrochkind opened this issue Oct 26, 2024 · 0 comments

Comments

@jrochkind
Copy link
Contributor

jrochkind commented Oct 26, 2024

Apparently the OCLC endpoint is timing out -- our app seems to wait 30 seconds for a response, which holds up the puma workers, and eventually at 30 seconds gets reported as an error by heroku.

The connection should have a timeout set to, say, 5s, so it gives up without waiting forever.

This may require making a change to the questioning_authority gem.

Oct 25 19:12:41 scihist-digicoll-production heroku/router at=error code=H12 desc="Request timeout" method=GET path="/authorities/search/assign_fast/all?q=United%20States.%20Patent%20%20Office" host=digital.sciencehistory.org request_id=a1506fd1-187b-4196-8fb4-291657a9c145 fwd="173.161.142.5" dyno=web.1 connect=0ms service=30001ms status=503 bytes=0 protocol=https

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

1 participant