redengineer / redmini

小红书小程序
17 stars 4 forks source link

申请售后接口,报错“HTTP请求格式错误或不支持,请仔细检查请求格式,若确认无误仍存在问题,请联系工作人员”:code:-9012 #1399

Closed 17612850365 closed 2 months ago

17612850365 commented 2 months ago

Issue类型

bug

问题模块

小程序服务(服务后台)

所属的服务商

平台

IOS, Android

小红书版本信息

8.31

基础库版本

v3.98.1

用户ID

发生问题的时间

2024-08-07 23:00:33 至 2024-08-07 23:00:33

问题描述

正常提交退款申请接口报错:error_code: -9012,error_msg: 'HTTP请求格式错误或不支持,请仔细检查请求格式,若确认无误仍存在问题,请联系工作人员',

请求详情: { status: 200, statusText: 'OK', headers: AxiosHeaders { date: 'Wed, 07 Aug 2024 14:57:47 GMT', 'content-type': 'application/json;charset=UTF-8', 'transfer-encoding': 'chunked', connection: 'close', server: 'nginx', 'set-cookie': [ 'acw_tc=71b5bda90fefaada29152038653136ff1a9e9ac4f8a5acdec44761a84c7d6a;path=/;HttpOnly;Max-Age=1800' ], 'cat-msg-id': 'openapiminiapp-gateway-default-ac196aed.0000625-478622-107944' }, 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: '666289a3d5c47780001302521', access_token: '3e437b9feffd43371856c4f22bf956f13' }, 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":"20240807225746868025","open_id":"4ffed8e5e0888eaedd60dc31bc6cebae6049f717bc55c1316d7aed7defb1a2","type":1,"biz_create_time":1723042666,"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)]: 312,
  [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)]: 578,
  [Symbol(kBytesWritten)]: 813,
  [Symbol(connect-options)]: [Object]
},
_header: 'POST /api/rmp/mp/deal/order/after_sales_order/add?appid=666289a3d5c4e601302521&access_token=3e437b9feffd4371877c982f956f13 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=666289a3d4780001302521&access_token=3e4b9feff45371877c4f22bf956f13',
_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=666289a3d5c4e46601302521&access_token=3e437b9fef344371877c4f22bf956f13',
  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=666289a3d5aae001302521&access_token=3e437b9fef6371977c4f22bf956f13',
  [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 } }

期望结果

提交成功,或者详细错误描述

重现步骤和复现问题的最小demo Github链接

https://miniapp.xiaohongshu.com/api/rmp/mp/deal/order/after_sales_order/add

github-actions[bot] commented 2 months ago

您好开发者, 我们已收到你的问题, 已通知开发团队进行处理! 如您未阅读我们的开发文档,可先参阅开发文档 小红书问题处置流程 :sparkles: 感谢您的提问!:sparkles:

github-actions[bot] commented 2 months ago

当前的 issue 填写不正确,请参考模板中的必填信息(问题分类、服务商等)。

我们将关闭这个问题,请使用剪贴板中的内容创建一个新的问题。

祝您使用愉快!