mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -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 {
|
||||
BINARY_ENCODING,
|
||||
jsonParse,
|
||||
NodeApiError,
|
||||
NodeOperationError,
|
||||
sleep,
|
||||
jsonParse,
|
||||
removeCircularRefs,
|
||||
sleep,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { keysToLowercase } from '@utils/utilities';
|
||||
|
@ -1152,8 +1152,8 @@ export class HttpRequestV3 implements INodeType {
|
|||
if (timeout) {
|
||||
requestOptions.timeout = timeout;
|
||||
} else {
|
||||
// set default timeout to 1 hour
|
||||
requestOptions.timeout = 3600000;
|
||||
// set default timeout to 5 minutes
|
||||
requestOptions.timeout = 300_000;
|
||||
}
|
||||
if (sendQuery && queryParameterArrays) {
|
||||
Object.assign(requestOptions, {
|
||||
|
|
Loading…
Reference in a new issue