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

Allow request timeout modification in server #22

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

irenemherrero
Copy link
Contributor

Main changes

  • 🆕 (feat)

Additional info

With this change we want to make the request timeout of the server configurable. This is needed because server request timeout has changed from Node.js v18. Now it is set to 300000 milliseconds (5 minutes) by default. See docs.

Our current use case is that we have an upload asset endpoint that takes some time to upload a file, so with this default timeout the request was failing with a "Request timeout" error with big files. That's why we need to customise this timeout value.

This value can be configurable in config.js

Captura de pantalla 2024-02-13 a las 10 12 31

With this change we want to make the request timeout of the server configurable. This is needed because server request timeout has changed from Node.js v18. Now it is set to 300000 milliseconds (5 minutes) by default. See docs: https://fek.io/blog/what-is-new-in-node-js-18/.

Our current use case is that we have an upload asset endpoint that takes some time to upload a file, so with this default timeout the request was failing with a "Request timeout" error. That's why we need to customise this timeout value.
Copy link
Member

@inigomarquinez inigomarquinez left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@jgleal jgleal left a comment

Choose a reason for hiding this comment

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

🚀 🚀 🚀 🚀

@jgleal jgleal merged commit f740111 into onebeyond:master Feb 13, 2024
2 checks passed
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.

3 participants