fix(HTTP Request Node): Decrease default timeout to 5min (#7177)

Github issue / Community forum post (link here to close automatically):

fixes https://github.com/n8n-io/n8n/issues/7081
This commit is contained in:
Elias Meire 2023-09-20 12:38:34 +02:00 committed by GitHub
parent 12a3168367
commit 321780d4a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,11 +14,11 @@ import type {
import { import {
BINARY_ENCODING, BINARY_ENCODING,
jsonParse,
NodeApiError, NodeApiError,
NodeOperationError, NodeOperationError,
sleep, jsonParse,
removeCircularRefs, removeCircularRefs,
sleep,
} from 'n8n-workflow'; } from 'n8n-workflow';
import { keysToLowercase } from '@utils/utilities'; import { keysToLowercase } from '@utils/utilities';
@ -1152,8 +1152,8 @@ export class HttpRequestV3 implements INodeType {
if (timeout) { if (timeout) {
requestOptions.timeout = timeout; requestOptions.timeout = timeout;
} else { } else {
// set default timeout to 1 hour // set default timeout to 5 minutes
requestOptions.timeout = 3600000; requestOptions.timeout = 300_000;
} }
if (sendQuery && queryParameterArrays) { if (sendQuery && queryParameterArrays) {
Object.assign(requestOptions, { Object.assign(requestOptions, {