Error when sending an Image, Docs via whatsapp Api #7136
Unanswered
DeveloperLogistify
asked this question in
Chatwoot APIs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello
Can someone tell me why I get the following error?
In version 2.16 the sending of Messages, Docs and Images works well for me but when updating I generate the following
Has this happened to anyone else in this new version?
| [AxiosError: Request failed with status code 408] {
17:24:48 0|server | code: 'ERR_BAD_REQUEST',
17:24:48 0|server | config: {
17:24:48 0|server | transitional: {
17:24:48 0|server | silentJSONParsing: true,
17:24:48 0|server | forcedJSONParsing: true,
17:24:48 0|server | clarifyTimeoutError: false
17:24:48 0|server | },
17:24:48 0|server | adapter: [Function: httpAdapter],
17:24:48 0|server | transformRequest: [ [Function: transformRequest] ],
17:24:48 0|server | transformResponse: [ [Function: transformResponse] ],
17:24:48 0|server | timeout: 300000,
17:24:48 0|server | xsrfCookieName: 'XSRF-TOKEN',
17:24:48 0|server | xsrfHeaderName: 'X-XSRF-TOKEN',
17:24:48 0|server | maxContentLength: Infinity,
17:24:48 0|server | maxBodyLength: Infinity,
17:24:48 0|server | env: { FormData: [Function] },
17:24:48 0|server | validateStatus: [Function: validateStatus],
17:24:48 0|server | headers: {
17:24:48 0|server | Accept: 'application/json, text/plain, /',
17:24:48 0|server | 'Content-Type': 'multipart/form-data; boundary=--------------------------561639825902314383331907',
17:24:48 0|server | api_access_token: '5JHHzZmnVmGZX18SMUARaT1j',
17:24:48 0|server | 'User-Agent': 'axios/0.27.2',
17:24:48 0|server | 'content-type': 'multipart/form-data; boundary=--------------------------561639825902314383331907'
17:24:48 0|server | },
17:24:48 0|server | method: 'post',
17:24:48 0|server | url: 'http://chatwoot.navigation.com.mx:3000/api/v1/accounts/2/conversations/20/messages',
17:24:48 0|server | data: FormData {
17:24:48 0|server | _overheadLength: 489,
17:24:48 0|server | _valueLength: 84776,
17:24:48 0|server | _valuesToMeasure: [],
17:24:48 0|server | writable: false,
17:24:48 0|server | readable: true,
17:24:48 0|server | dataSize: 0,
17:24:48 0|server | maxDataSize: 2097152,
17:24:48 0|server | pauseStreams: true,
17:24:48 0|server | _released: true,
17:24:48 0|server | _streams: [],
17:24:48 0|server | _currentStream: null,
17:24:48 0|server | _insideLoop: false,
17:24:48 0|server | _pendingNext: false,
17:24:48 0|server | _boundary: '--------------------------561639825902314383331907',
17:24:48 0|server | _events: [Object: null prototype],
17:24:48 0|server | _eventsCount: 1
17:24:48 0|server | }
17:24:48 0|server | },
17:24:48 0|server | request: <ref *1> ClientRequest {
17:24:48 0|server | _events: [Object: null prototype] {
17:24:48 0|server | abort: [Function (anonymous)],
17:24:48 0|server | aborted: [Function (anonymous)],
17:24:48 0|server | connect: [Function (anonymous)],
17:24:48 0|server | error: [Function (anonymous)],
17:24:48 0|server | socket: [Function (anonymous)],
17:24:48 0|server | timeout: [Function (anonymous)],
17:24:48 0|server | finish: [Function: requestOnFinish]
17:24:48 0|server | },
17:24:48 0|server | _eventsCount: 7,
17:24:48 0|server | _maxListeners: undefined,
17:24:48 0|server | outputData: [],
17:24:48 0|server | outputSize: 0,
17:24:48 0|server | writable: true,
17:24:48 0|server | destroyed: false,
17:24:48 0|server | _last: true,
17:24:48 0|server | chunkedEncoding: true,
17:24:48 0|server | shouldKeepAlive: false,
17:24:48 0|server | maxRequestsOnConnectionReached: false,
17:24:48 0|server | _defaultKeepAlive: true,
17:24:48 0|server | useChunkedEncodingByDefault: true,
17:24:48 0|server | sendDate: false,
17:24:48 0|server | _removedConnection: false,
17:24:48 0|server | _removedContLen: false,
17:24:48 0|server | _removedTE: false,
17:24:48 0|server | strictContentLength: false,
17:24:48 0|server | _contentLength: null,
17:24:48 0|server | _hasBody: true,
17:24:48 0|server | _trailer: '',
17:24:48 0|server | finished: true,
17:24:48 0|server | _headerSent: true,
17:24:48 0|server | _closed: false,
17:24:48 0|server | socket: Socket {
17:24:48 0|server | connecting: false,
17:24:48 0|server | _hadError: false,
17:24:48 0|server | _parent: null,
17:24:48 0|server | _host: 'chatwoot.navigation.com.mx',
17:24:48 0|server | _closeAfterHandlingError: false,
17:24:48 0|server | _readableState: [ReadableState],
17:24:48 0|server | _events: [Object: null prototype],
17:24:48 0|server | _eventsCount: 8,
17:24:48 0|server | _maxListeners: undefined,
17:24:48 0|server | _writableState: [WritableState],
17:24:48 0|server | allowHalfOpen: false,
17:24:48 0|server | _sockname: null,
17:24:48 0|server | _pendingData: null,
17:24:48 0|server | _pendingEncoding: '',
17:24:48 0|server | server: null,
17:24:48 0|server | _server: null,
17:24:48 0|server | parser: null,
17:24:48 0|server | _httpMessage: [Circular *1],
17:24:48 0|server | timeout: 300000,
17:24:48 0|server | write: [Function: writeAfterFIN],
17:24:48 0|server | [Symbol(async_id_symbol)]: 4030,
17:24:48 0|server | [Symbol(kHandle)]: null,
17:24:48 0|server | [Symbol(lastWriteQueueSize)]: 0,
17:24:48 0|server | [Symbol(timeout)]: Timeout {
17:24:48 0|server | _idleTimeout: -1,
17:24:48 0|server | _idlePrev: null,
17:24:48 0|server | _idleNext: null,
17:24:48 0|server | _idleStart: 89943,
17:24:48 0|server | _onTimeout: null,
17:24:48 0|server | _timerArgs: undefined,
17:24:48 0|server | _repeat: null,
17:24:48 0|server | _destroyed: true,
17:24:48 0|server | [Symbol(refed)]: false,
17:24:48 0|server | [Symbol(kHasPrimitive)]: false,
17:24:48 0|server | [Symbol(asyncId)]: 4037,
17:24:48 0|server | [Symbol(triggerId)]: 4032
17:24:48 0|server | },
17:24:48 0|server | [Symbol(kBuffer)]: null,
17:24:48 0|server | [Symbol(kBufferCb)]: null,
17:24:48 0|server | [Symbol(kBufferGen)]: null,
17:24:48 0|server | [Symbol(kCapture)]: false,
17:24:48 0|server | [Symbol(kSetNoDelay)]: false,
17:24:48 0|server | [Symbol(kSetKeepAlive)]: true,
17:24:48 0|server | [Symbol(kSetKeepAliveInitialDelay)]: 60,
17:24:48 0|server | [Symbol(kBytesRead)]: 71,
17:24:48 0|server | [Symbol(kBytesWritten)]: 85753,
17:24:48 0|server | [Symbol(RequestTimeout)]: undefined
17:24:48 0|server | },
17:24:48 0|server | _header: 'POST /api/v1/accounts/2/conversations/20/messages HTTP/1.1\r\n' +
17:24:48 0|server | 'Accept: application/json, text/plain, /\r\n' +
17:24:48 0|server | 'content-type: multipart/form-data; boundary=--------------------------561639825902314383331907\r\n' +
17:24:48 0|server | 'api_access_token: 5JHHzZmnVmGZX18SMUARaT1j\r\n' +
17:24:48 0|server | 'User-Agent: axios/0.27.2\r\n' +
17:24:48 0|server | 'Host: chatwoot.navigation.com.mx:3000\r\n' +
17:24:48 0|server | 'Connection: close\r\n' +
17:24:48 0|server | 'Transfer-Encoding: chunked\r\n' +
17:24:48 0|server | '\r\n',
17:24:48 0|server | _keepAliveTimeout: 0,
17:24:48 0|server | _onPendingData: [Function: nop],
17:24:48 0|server | agent: Agent {
17:24:48 0|server | _events: [Object: null prototype],
17:24:48 0|server | _eventsCount: 2,
17:24:48 0|server | _maxListeners: undefined,
17:24:48 0|server | defaultPort: 80,
17:24:48 0|server | protocol: 'http:',
17:24:48 0|server | options: [Object: null prototype],
17:24:48 0|server | requests: [Object: null prototype] {},
17:24:48 0|server | sockets: [Object: null prototype],
17:24:48 0|server | freeSockets: [Object: null prototype] {},
17:24:48 0|server | keepAliveMsecs: 1000,
17:24:48 0|server | keepAlive: false,
17:24:48 0|server | maxSockets: Infinity,
17:24:48 0|server | maxFreeSockets: 256,
17:24:48 0|server | scheduling: 'lifo',
17:24:48 0|server | maxTotalSockets: Infinity,
17:24:48 0|server | totalSocketCount: 1,
17:24:48 0|server | [Symbol(kCapture)]: false
17:24:48 0|server | },
17:24:48 0|server | socketPath: undefined,
17:24:48 0|server | method: 'POST',
17:24:48 0|server | maxHeaderSize: undefined,
17:24:48 0|server | insecureHTTPParser: undefined,
17:24:48 0|server | path: '/api/v1/accounts/2/conversations/20/messages',
17:24:48 0|server | _ended: true,
17:24:48 0|server | res: IncomingMessage {
17:24:48 0|server | _readableState: [ReadableState],
17:24:48 0|server | _events: [Object: null prototype],
17:24:48 0|server | _eventsCount: 4,
17:24:48 0|server | _maxListeners: undefined,
17:24:48 0|server | socket: [Socket],
17:24:48 0|server | httpVersionMajor: 1,
17:24:48 0|server | httpVersionMinor: 1,
17:24:48 0|server | httpVersion: '1.1',
17:24:48 0|server | complete: true,
17:24:48 0|server | rawHeaders: [Array],
17:24:48 0|server | rawTrailers: [],
17:24:48 0|server | aborted: false,
17:24:48 0|server | upgrade: false,
17:24:48 0|server | url: '',
17:24:48 0|server | method: null,
17:24:48 0|server | statusCode: 408,
17:24:48 0|server | statusMessage: 'Request Timeout',
17:24:48 0|server | client: [Socket],
17:24:48 0|server | _consuming: true,
17:24:48 0|server | _dumped: false,
17:24:48 0|server | req: [Circular *1],
17:24:48 0|server | responseUrl: 'http://chatwoot.navigation.com.mx:3000/api/v1/accounts/2/conversations/20/messages',
17:24:48 0|server | redirects: [],
17:24:48 0|server | [Symbol(kCapture)]: false,
17:24:48 0|server | [Symbol(kHeaders)]: [Object],
17:24:48 0|server | [Symbol(kHeadersCount)]: 4,
17:24:48 0|server | [Symbol(kTrailers)]: null,
17:24:48 0|server | [Symbol(kTrailersCount)]: 0,
17:24:48 0|server | [Symbol(RequestTimeout)]: undefined
17:24:48 0|server | },
17:24:48 0|server | aborted: false,
17:24:48 0|server | timeoutCb: null,
17:24:48 0|server | upgradeOrConnect: false,
17:24:48 0|server | parser: null,
17:24:48 0|server | maxHeadersCount: null,
17:24:48 0|server | reusedSocket: false,
17:24:48 0|server | host: 'chatwoot.navigation.com.mx',
17:24:48 0|server | protocol: 'http:',
17:24:48 0|server | _redirectable: Writable {
17:24:48 0|server | _writableState: [WritableState],
17:24:48 0|server | _events: [Object: null prototype],
17:24:48 0|server | _eventsCount: 3,
17:24:48 0|server | _maxListeners: undefined,
17:24:48 0|server | _options: [Object],
17:24:48 0|server | _ended: true,
17:24:48 0|server | _ending: true,
17:24:48 0|server | _redirectCount: 0,
17:24:48 0|server | _redirects: [],
17:24:48 0|server | _requestBodyLength: 85321,
17:24:48 0|server | _requestBodyBuffers: [],
17:24:48 0|server | _onNativeResponse: [Function (anonymous)],
17:24:48 0|server | _currentRequest: [Circular *1],
17:24:48 0|server | _currentUrl: 'http://chatwoot.navigation.com.mx:3000/api/v1/accounts/2/conversations/20/messages',
17:24:48 0|server | _timeout: null,
17:24:48 0|server | [Symbol(kCapture)]: false
17:24:48 0|server | },
17:24:48 0|server | [Symbol(kCapture)]: false,
17:24:48 0|server | [Symbol(kBytesWritten)]: 0,
17:24:48 0|server | [Symbol(kEndCalled)]: true,
17:24:48 0|server | [Symbol(kNeedDrain)]: true,
17:24:48 0|server | [Symbol(corked)]: 0,
17:24:48 0|server | [Symbol(kOutHeaders)]: [Object: null prototype] {
17:24:48 0|server | accept: [Array],
17:24:48 0|server | 'content-type': [Array],
17:24:48 0|server | api_access_token: [Array],
17:24:48 0|server | 'user-agent': [Array],
17:24:48 0|server | host: [Array]
17:24:48 0|server | },
17:24:48 0|server | [Symbol(kUniqueHeaders)]: null
17:24:48 0|server | },
17:24:48 0|server | response: {
17:24:48 0|server | status: 408,
17:24:48 0|server | statusText: 'Request Timeout',
17:24:48 0|server | headers: { connection: 'close', server: 'Puma 6.2.2' },
17:24:48 0|server | config: {
17:24:48 0|server | transitional: [Object],
17:24:48 0|server | adapter: [Function: httpAdapter],
17:24:48 0|server | transformRequest: [Array],
17:24:48 0|server | transformResponse: [Array],
17:24:48 0|server | timeout: 300000,
17:24:48 0|server | xsrfCookieName: 'XSRF-TOKEN',
17:24:48 0|server | xsrfHeaderName: 'X-XSRF-TOKEN',
17:24:48 0|server | maxContentLength: Infinity,
17:24:48 0|server | maxBodyLength: Infinity,
17:24:48 0|server | env: [Object],
17:24:48 0|server | validateStatus: [Function: validateStatus],
17:24:48 0|server | headers: [Object],
17:24:48 0|server | method: 'post',
17:24:48 0|server | url: 'http://chatwoot.navigation.com.mx:3000/api/v1/accounts/2/conversations/20/messages',
17:24:48 0|server | data: [FormData]
17:24:48 0|server | },
17:24:48 0|server | request: <ref *1> ClientRequest {
17:24:48 0|server | _events: [Object: null prototype],
17:24:48 0|server | _eventsCount: 7,
17:24:48 0|server | _maxListeners: undefined,
17:24:48 0|server | outputData: [],
17:24:48 0|server | outputSize: 0,
17:24:48 0|server | writable: true,
17:24:48 0|server | destroyed: false,
17:24:48 0|server | _last: true,
17:24:48 0|server | chunkedEncoding: true,
17:24:48 0|server | shouldKeepAlive: false,
17:24:48 0|server | maxRequestsOnConnectionReached: false,
17:24:48 0|server | _defaultKeepAlive: true,
17:24:48 0|server | useChunkedEncodingByDefault: true,
17:24:48 0|server | sendDate: false,
17:24:48 0|server | _removedConnection: false,
17:24:48 0|server | _removedContLen: false,
17:24:48 0|server | _removedTE: false,
17:24:48 0|server | strictContentLength: false,
17:24:48 0|server | _contentLength: null,
17:24:48 0|server | _hasBody: true,
17:24:48 0|server | _trailer: '',
17:24:48 0|server | finished: true,
17:24:48 0|server | _headerSent: true,
17:24:48 0|server | _closed: false,
17:24:48 0|server | socket: [Socket],
17:24:48 0|server | _header: 'POST /api/v1/accounts/2/conversations/20/messages HTTP/1.1\r\n' +
17:24:48 0|server | 'Accept: application/json, text/plain, /\r\n' +
17:24:48 0|server | 'content-type: multipart/form-data; boundary=--------------------------561639825902314383331907\r\n' +
17:24:48 0|server | 'api_access_token: 5JHHzZmnVmGZX18SMUARaT1j\r\n' +
17:24:48 0|server | 'User-Agent: axios/0.27.2\r\n' +
17:24:48 0|server | 'Host: chatwoot.navigation.com.mx:3000\r\n' +
17:24:48 0|server | 'Connection: close\r\n' +
17:24:48 0|server | 'Transfer-Encoding: chunked\r\n' +
17:24:48 0|server | '\r\n',
17:24:48 0|server | _keepAliveTimeout: 0,
17:24:48 0|server | _onPendingData: [Function: nop],
17:24:48 0|server | agent: [Agent],
17:24:48 0|server | socketPath: undefined,
17:24:48 0|server | method: 'POST',
17:24:48 0|server | maxHeaderSize: undefined,
17:24:48 0|server | insecureHTTPParser: undefined,
17:24:48 0|server | path: '/api/v1/accounts/2/conversations/20/messages',
17:24:48 0|server | _ended: true,
17:24:48 0|server | res: [IncomingMessage],
17:24:48 0|server | aborted: false,
17:24:48 0|server | timeoutCb: null,
17:24:48 0|server | upgradeOrConnect: false,
17:24:48 0|server | parser: null,
17:24:48 0|server | maxHeadersCount: null,
17:24:48 0|server | reusedSocket: false,
17:24:48 0|server | host: 'chatwoot.navigation.com.mx',
17:24:48 0|server | protocol: 'http:',
17:24:48 0|server | _redirectable: [Writable],
17:24:48 0|server | [Symbol(kCapture)]: false,
17:24:48 0|server | [Symbol(kBytesWritten)]: 0,
17:24:48 0|server | [Symbol(kEndCalled)]: true,
17:24:48 0|server | [Symbol(kNeedDrain)]: true,
17:24:48 0|server | [Symbol(corked)]: 0,
17:24:48 0|server | [Symbol(kOutHeaders)]: [Object: null prototype],
17:24:48 0|server | [Symbol(kUniqueHeaders)]: null
17:24:48 0|server | },
17:24:48 0|server | data: ''
17:24:48 0|server | }
17:24:48 0|server | }
Beta Was this translation helpful? Give feedback.
All reactions