-
-
Notifications
You must be signed in to change notification settings - Fork 22k
Description
Describe the bug
I am using HTTP node to genertate token to invoke my remote REST API
But when i configured HTTP node with Body type x-www-form-urlencoded and try to run WF gives error: 'invalid_request',
logs -
request: <ref *1> ClientRequest { _events: [Object: null prototype], _eventsCount: 7, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: false, _last: true, chunkedEncoding: false, shouldKeepAlive: false, maxRequestsOnConnectionReached: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, strictContentLength: false, _contentLength: '11', _hasBody: true, _trailer: '', finished: true, _headerSent: true, _closed: false, _header: 'POST /sso/realms/example/protocol/openid-connect/token HTTP/1.1\r\n' + 'Accept: application/json, text/plain, */*\r\n' + 'Content-Type: application/x-www-form-urlencoded\r\n' + 'User-Agent: axios/1.7.9\r\n' + 'Content-Length: 11\r\n' + 'Accept-Encoding: gzip, compress, deflate, br\r\n' + 'Host: aiop-btms4.td.teradata.com\r\n' + 'Connection: close\r\n' + '\r\n', _keepAliveTimeout: 0, _onPendingData: [Function: nop], agent: [BoundHttpsProxyAgent], socketPath: undefined, method: 'POST', maxHeaderSize: undefined, insecureHTTPParser: undefined, joinDuplicateHeaders: undefined, path: '/sso/realms/example/protocol/openid-connect/token', _ended: true, res: [IncomingMessage], aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, reusedSocket: false, host: 'idp.example.com', protocol: 'https:', _redirectable: [Writable], [Symbol(shapeMode)]: false, [Symbol(kCapture)]: false, [Symbol(kBytesWritten)]: 0, [Symbol(kNeedDrain)]: false, [Symbol(corked)]: 0, [Symbol(kChunkedBuffer)]: [], [Symbol(kChunkedLength)]: 0, [Symbol(kSocket)]: [TLSSocket], [Symbol(kOutHeaders)]: [Object: null prototype], [Symbol(errored)]: null, [Symbol(kHighWaterMark)]: 65536, [Symbol(kRejectNonStandardBodyWrites)]: false, [Symbol(kUniqueHeaders)]: null }, data: { error: 'invalid_request', error_description: 'Missing form parameter: grant_type' } }, status: 400


To Reproduce
- create new WF
- add HTTP node
- Method POST
- URL - set URL
- Header - Key=Content-Type , value=application/x-www-form-urlencoded
- Body Type = x-www-form-urlencoded
- set key values

Expected behavior
When i set Body type x-www-form-urlencoded, it should take configured body key value and execute request.
Screenshots
No response
Flow
No response
Use Method
npx flowise start
Flowise Version
3.0.4
Operating System
Linux
Browser
Chrome
Additional context
No response