mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00: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:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user