Skip to content

Conversation

@kenwilde1
Copy link

@kenwilde1 kenwilde1 commented Jan 28, 2026

https://sirensolutions.atlassian.net/browse/INVE-28856

When investigate is configured with a base path proxy, the underlying proxy plugin (this project) sets a 3 minute timeout for requests. This PR removes that timeout.

Steps to test

  1. Set up Investigate to use the BasePathProxy. You can do this simply by ensuring this parameter is commented out in investigate.yml - # server.basePath: "". Investigate will assign a base path if it doesn't exist.

  2. Update the dependency in package.json to use this branch:

"@sirensolutions/h2o2": "git+https://github.com/sirensolutions/h2o2#remove-proxy-timeout"

  1. Throttle any HapiJS route by adding a timeout so requests take longer than 3 minutes to handle. I'm using the /api/ai/chat route in the Siren AI plugin but you can throttle any other route you want

Add this before the route handler

await new Promise((resolve) => setTimeout(resolve, 3.5 * 60 * 1000)); // 3.5 minutes

Expected: Your request should not timeout after 3 minutes. It should resolve at ~3.5 minutes.

Copy link

@daradermody daradermody left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will test now

@daradermody
Copy link

✔️ Tested!

@kenwilde1 kenwilde1 merged commit 19ca9d5 into master Jan 28, 2026
6 checks passed
@kenwilde1 kenwilde1 deleted the remove-proxy-timeout branch January 28, 2026 12:21
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

Successfully merging this pull request may close these issues.

4 participants