Closed 17612850365 closed 3 months ago
bug
小程序服务(服务后台)
IOS, Android
8.33
v3.93.1
2024-08-08 22:02:19 至 2024-08-08 22:02:19
售后申请报错htto请求格式错误或不支持- code:-9012 请求内容: { status: 200, statusText: 'OK', headers: AxiosHeaders { date: 'Thu, 08 Aug 2024 13:46:57 GMT', 'content-type': 'application/json;charset=UTF-8', 'transfer-encoding': 'chunked', connection: 'close', server: 'nginx', 'set-cookie': [ 'acw_tc=32f7f7a45ca7db332f8493462e4619eff94097baa56727d19859aee326fbda;path=/;HttpOnly;Max-Age=1800' ], 'cat-msg-id': 'openapiminiapp-gateway-default-ac190416.0025863-478645-92069' }, config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http' ], transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: [Function], Blob: [class Blob] }, validateStatus: [Function: validateStatus], headers: AxiosHeaders { Accept: 'application/json, text/plain, /', 'Content-Type': 'application/json', 'User-Agent': 'axios/1.4.0', 'Content-Length': '457', 'Accept-Encoding': 'gzip, compress, deflate, br' }, params: { appid: '666289a3d5c40001302521', access_token: '07020388d367caa23664c0d7aa3d1c' }, method: 'post', url: 'https://miniapp.xiaohongshu.com/api/rmp/mp/deal/order/after_sales_order/add', data: '{"out_order_id":"20240807224955199692","out_after_sales_order_id":"20240808214657258055","open_id":"4ffed8e5e0888eaedd60dc31bc6cebae6049f717b76c55c1316d7aed7defb1a2","type":1,"biz_create_time":1723124817,"price_info":{"refund_price":100},"product_infos":[{"out_product_id":"GZ52","out_sku_id":"GZ52_CATE_0031572520100457","num":1,"price":100}],"refund_book_detail":{"book_id":"Peb738594195589381651","refund_price":100},"product_type":3,"auto_confirm":true}' }, request: <ref 1> ClientRequest { _events: [Object: null prototype] { abort: [Function (anonymous)], aborted: [Function (anonymous)], connect: [Function (anonymous)], error: [Function (anonymous)], socket: [Function (anonymous)], timeout: [Function (anonymous)], finish: [Function: requestOnFinish] }, _eventsCount: 7, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: true, _last: true, chunkedEncoding: false, shouldKeepAlive: false, maxRequestsOnConnectionReached: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, strictContentLength: false, _contentLength: '457', _hasBody: true, _trailer: '', finished: true, _headerSent: true, _closed: true, socket: TLSSocket { _tlsOptions: [Object], _secureEstablished: true, _securePending: false, _newSessionPending: false, _controlReleased: true, secureConnecting: false, _SNICallback: null, servername: 'miniapp.xiaohongshu.com', alpnProtocol: false, authorized: true, authorizationError: null, encrypted: true, _events: [Object: null prototype], _eventsCount: 9, connecting: false, _hadError: false, _parent: null, _host: 'miniapp.xiaohongshu.com', _closeAfterHandlingError: false, _readableState: [ReadableState], _maxListeners: undefined, _writableState: [WritableState], allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: '', server: undefined, _server: null, ssl: null, _requestCert: true, _rejectUnauthorized: true, parser: null, _httpMessage: [Circular 1],
[Symbol(res)]: null, [Symbol(verified)]: true, [Symbol(pendingSession)]: null, [Symbol(async_id_symbol)]: 13786, [Symbol(kHandle)]: null, [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: null, [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(kCapture)]: false, [Symbol(kSetNoDelay)]: false, [Symbol(kSetKeepAlive)]: true, [Symbol(kSetKeepAliveInitialDelay)]: 60, [Symbol(kBytesRead)]: 577, [Symbol(kBytesWritten)]: 813, [Symbol(connect-options)]: [Object] }, _header: 'POST /api/rmp/mp/deal/order/after_sales_order/add?appid=666289a3d5c4e400302521&access_token=070203d36e47caa23664c0d7aa3d1c HTTP/1.1\r\n' + 'Accept: application/json, text/plain, */*\r\n' + 'Content-Type: application/json\r\n' + 'User-Agent: axios/1.4.0\r\n' + 'Content-Length: 457\r\n' + 'Accept-Encoding: gzip, compress, deflate, br\r\n' + 'Host: miniapp.xiaohongshu.com\r\n' + 'Connection: close\r\n' + '\r\n', _keepAliveTimeout: 0, _onPendingData: [Function: nop], agent: Agent { _events: [Object: null prototype], _eventsCount: 2, _maxListeners: undefined, defaultPort: 443, protocol: 'https:', options: [Object: null prototype], requests: [Object: null prototype] {}, sockets: [Object: null prototype] {}, freeSockets: [Object: null prototype] {}, keepAliveMsecs: 1000, keepAlive: false, maxSockets: Infinity, maxFreeSockets: 256, scheduling: 'lifo', maxTotalSockets: Infinity, totalSocketCount: 0, maxCachedSessions: 100, _sessionCache: [Object], [Symbol(kCapture)]: false }, socketPath: undefined, method: 'POST', maxHeaderSize: undefined, insecureHTTPParser: undefined, joinDuplicateHeaders: undefined, path: '/api/rmp/mp/deal/order/after_sales_order/add?appid=666289a3c4e40001302521&access_token=070203d36e47caa23664c0d7aa3d1c', _ended: true, res: IncomingMessage { _readableState: [ReadableState], _events: [Object: null prototype], _eventsCount: 4, _maxListeners: undefined, socket: [TLSSocket], httpVersionMajor: 1, httpVersionMinor: 1, httpVersion: '1.1', complete: true, rawHeaders: [Array], rawTrailers: [], joinDuplicateHeaders: undefined, aborted: false, upgrade: false, url: '', method: null, statusCode: 200, statusMessage: 'OK', client: [TLSSocket], _consuming: true, _dumped: false, req: [Circular *1], responseUrl: 'https://miniapp.xiaohongshu.com/api/rmp/mp/deal/order/after_sales_order/add?appid=666289a3d5c40001302521&access_token=070203836e47caa23664c0d7aa3d1c', redirects: [], [Symbol(kCapture)]: false, [Symbol(kHeaders)]: [Object], [Symbol(kHeadersCount)]: 16, [Symbol(kTrailers)]: null, [Symbol(kTrailersCount)]: 0 }, aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, reusedSocket: false, host: 'miniapp.xiaohongshu.com', protocol: 'https:', _redirectable: Writable { _writableState: [WritableState], _events: [Object: null prototype], _eventsCount: 3, _maxListeners: undefined, _options: [Object], _ended: true, _ending: true, _redirectCount: 0, _redirects: [], _requestBodyLength: 457, _requestBodyBuffers: [], _onNativeResponse: [Function (anonymous)], _currentRequest: [Circular *1], _currentUrl: 'https://miniapp.xiaohongshu.com/api/rmp/mp/deal/order/after_sales_order/add?appid=666289a3d5c40001302521&access_token=070208d36e47caa23664c0d7aa3d1c', [Symbol(kCapture)]: false }, [Symbol(kCapture)]: false, [Symbol(kBytesWritten)]: 0, [Symbol(kNeedDrain)]: false, [Symbol(corked)]: 0, [Symbol(kOutHeaders)]: [Object: null prototype] { accept: [Array], 'content-type': [Array], 'user-agent': [Array], 'content-length': [Array], 'accept-encoding': [Array], host: [Array] }, [Symbol(errored)]: null, [Symbol(kHighWaterMark)]: 16384, [Symbol(kRejectNonStandardBodyWrites)]: false, [Symbol(kUniqueHeaders)]: null
}, data: { error_code: -9012, error_msg: 'HTTP请求格式错误或不支持,请仔细检查请求格式,若确认无误仍存在问题,请联系工作人员', success: false } }
提交成功,或者明确的错误信息提示
订单售后新增接口
您好开发者, 我们已收到你的问题, 已通知开发团队进行处理! 如您未阅读我们的开发文档,可先参阅开发文档 小红书问题处置流程 :sparkles: 感谢您的提问!:sparkles:
当前的 issue 填写不正确,请参考模板中的必填信息(问题分类、服务商等)。
我们将关闭这个问题,请使用剪贴板中的内容创建一个新的问题。
祝您使用愉快!
Issue类型
bug
问题模块
小程序服务(服务后台)
所属的服务商
平台
IOS, Android
小红书版本信息
8.33
基础库版本
v3.93.1
用户ID
发生问题的时间
2024-08-08 22:02:19 至 2024-08-08 22:02:19
问题描述
售后申请报错htto请求格式错误或不支持- code:-9012 请求内容: { status: 200, statusText: 'OK', headers: AxiosHeaders { date: 'Thu, 08 Aug 2024 13:46:57 GMT', 'content-type': 'application/json;charset=UTF-8', 'transfer-encoding': 'chunked', connection: 'close', server: 'nginx', 'set-cookie': [ 'acw_tc=32f7f7a45ca7db332f8493462e4619eff94097baa56727d19859aee326fbda;path=/;HttpOnly;Max-Age=1800' ], 'cat-msg-id': 'openapiminiapp-gateway-default-ac190416.0025863-478645-92069' }, config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http' ], transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: [Function], Blob: [class Blob] }, validateStatus: [Function: validateStatus], headers: AxiosHeaders { Accept: 'application/json, text/plain, /', 'Content-Type': 'application/json', 'User-Agent': 'axios/1.4.0', 'Content-Length': '457', 'Accept-Encoding': 'gzip, compress, deflate, br' }, params: { appid: '666289a3d5c40001302521', access_token: '07020388d367caa23664c0d7aa3d1c' }, method: 'post', url: 'https://miniapp.xiaohongshu.com/api/rmp/mp/deal/order/after_sales_order/add', data: '{"out_order_id":"20240807224955199692","out_after_sales_order_id":"20240808214657258055","open_id":"4ffed8e5e0888eaedd60dc31bc6cebae6049f717b76c55c1316d7aed7defb1a2","type":1,"biz_create_time":1723124817,"price_info":{"refund_price":100},"product_infos":[{"out_product_id":"GZ52","out_sku_id":"GZ52_CATE_0031572520100457","num":1,"price":100}],"refund_book_detail":{"book_id":"Peb738594195589381651","refund_price":100},"product_type":3,"auto_confirm":true}' }, request: <ref 1> ClientRequest { _events: [Object: null prototype] { abort: [Function (anonymous)], aborted: [Function (anonymous)], connect: [Function (anonymous)], error: [Function (anonymous)], socket: [Function (anonymous)], timeout: [Function (anonymous)], finish: [Function: requestOnFinish] }, _eventsCount: 7, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: true, _last: true, chunkedEncoding: false, shouldKeepAlive: false, maxRequestsOnConnectionReached: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, strictContentLength: false, _contentLength: '457', _hasBody: true, _trailer: '', finished: true, _headerSent: true, _closed: true, socket: TLSSocket { _tlsOptions: [Object], _secureEstablished: true, _securePending: false, _newSessionPending: false, _controlReleased: true, secureConnecting: false, _SNICallback: null, servername: 'miniapp.xiaohongshu.com', alpnProtocol: false, authorized: true, authorizationError: null, encrypted: true, _events: [Object: null prototype], _eventsCount: 9, connecting: false, _hadError: false, _parent: null, _host: 'miniapp.xiaohongshu.com', _closeAfterHandlingError: false, _readableState: [ReadableState], _maxListeners: undefined, _writableState: [WritableState], allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: '', server: undefined, _server: null, ssl: null, _requestCert: true, _rejectUnauthorized: true, parser: null, _httpMessage: [Circular 1],
}, data: { error_code: -9012, error_msg: 'HTTP请求格式错误或不支持,请仔细检查请求格式,若确认无误仍存在问题,请联系工作人员', success: false } }
期望结果
提交成功,或者明确的错误信息提示
重现步骤和复现问题的最小demo Github链接
订单售后新增接口