mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-09 22:24:05 -08:00
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:
parent
12a3168367
commit
321780d4a2
|
@ -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, {
|
||||||
|
|
Loading…
Reference in a new issue