有赞新零售社区

发帖
API使用问题»接口调用/报错/查询异常

[API调用-商品/交易] 接口调用/报错/查询异常

z 04-27 2656 浏览 1 评论 | 只看楼主 [打印]
第一个问题:
接口:https://doc.youzanyun.com/detail/API/0/2971
查询:TID:E20240330175711018006183 ,可以查到订单信息,该笔订单商品信息查询不到
1.可以帮我们看一下,这笔订单是否退款?
2.如何获取这笔商品信息:

第二个问题:
接口:https://doc.youzanyun.com/detail/API/0/3775    偶发报错
报错信息“
Python Script Log:
PARAMETER:
None
====================
SCRIPT:
Python.ec.ec_yz_api
====================
RETURN VALUE:
None
====================
STDERR:
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/starlette/concurrency.py", line 40, in run_in_threadpool
    return await loop.run_in_executor(None, func, *args)
  File "/usr/local/lib/python3.8/asyncio/futures.py", line 260, in __await__
    yield self  # This tells Task to wait for completion.
  File "/usr/local/lib/python3.8/asyncio/tasks.py", line 349, in __wakeup
    future.result()
  File "/usr/local/lib/python3.8/asyncio/futures.py", line 178, in result
    raise self._exception
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/file/python-file/zibtie/zibtie001/Python/ec/ec_yz_api.py", line 175, in main
    get_data_main(para1, para2)
  File "/opt/file/python-file/zibtie/zibtie001/Python/ec/ec_yz_api.py", line 149, in get_data_main
    df = get_data(info)
  File "/opt/file/python-file/zibtie/zibtie001/Python/ec/ec_yz_api.py", line 93, in get_data
    raise Exception('请求取数接口失败,请稍后再试',resp)
Exception: ('请求取数接口失败,请稍后再试', {'trace_id': 'yz7-0ae85b16-1714031878694-972262', 'code': 50000, 'data': {'record_results': []}, 'success': False, 'message': '服务访问出错'})

====================
STDOUT:
2024-04-25 15:57:40.654 | 116775 | MainThread | INFO     | deepfos.options:__set__:263 - Set option: server.app=http://10.105.0.231:80
2024-04-25 15:57:40.655 | 116775 | MainThread | INFO     | deepfos.options:__set__:263 - Set option: server.space=http://10.105.1.169:80
2024-04-25 15:57:40.655 | 116775 | MainThread | INFO     | deepfos.options:__set__:263 - Set option: server.system=http://10.105.0.230:80
2024-04-25 15:57:40.655 | 116775 | MainThread | INFO     | deepfos.options:__set__:263 - Set option: discovery.enabled=True
2024-04-25 15:57:40.655 | 116775 | MainThread | INFO     | deepfos.options:__set__:263 - Set option: general.use_eureka=True
109380100 token 17ea16b6db4698e060d36de6e6470e7
2024-04-19 23:22:09
{'page_size': 100, 'date_type': 'SETTLE_TIME', 'start_date': '2024-04-19 23:22:09', 'end_date': '2024-04-24 23:59:59', 'page': 1}
79
109717875 token 21c3e37dfc3ecf2dde250a902da2e26
2024-04-06 22:00:02
{'page_size': 100, 'date_type': 'SETTLE_TIME', 'start_date': '2024-04-06 22:00:02', 'end_date': '2024-04-24 23:59:59', 'page': 1}
3
115797306 token 88c88112070b8ab0c3e02450b402941
2024-04-19 14:56:45
{'page_size': 100, 'date_type': 'SETTLE_TIME', 'start_date': '2024-04-19 14:56:45', 'end_date': '2024-04-24 23:59:59', 'page': 1}
54
116610206 token 30046a5c21ed6290bb51ea00bd6b822
2024-04-19 17:54:46
{'page_size': 100, 'date_type': 'SETTLE_TIME', 'start_date': '2024-04-19 17:54:46', 'end_date': '2024-04-24 23:59:59', 'page': 1}
25
117306613 token 25fc5f2765e60fc8356a81cfb8c417d
2024-04-19 16:03:47
{'page_size': 100, 'date_type': 'SETTLE_TIME', 'start_date': '2024-04-19 16:03:47', 'end_date': '2024-04-24 23:59:59', 'page': 1}
16
121284210 token 02ddb5f2a0b7980ad19757e598da589
2024-04-19 22:30:12
{'page_size': 100, 'date_type': 'SETTLE_TIME', 'start_date': '2024-04-19 22:30:12', 'end_date': '2024-04-24 23:59:59', 'page': 1}
36
123341315 token 153fbe395d098cad712e4819724f309
2024-04-19 17:18:13
{'page_size': 100, 'date_type': 'SETTLE_TIME', 'start_date': '2024-04-19 17:18:13', 'end_date': '2024-04-24 23:59:59', 'page': 1}
69
123341518 token f759961b4cb4e08ad8f19f0af7cb941
2024-04-19 22:12:06
{'page_size': 100, 'date_type': 'SETTLE_TIME', 'start_date': '2024-04-19 22:12:06', 'end_date': '2024-04-24 23:59:59', 'page': 1}
100
{'page_size': 100, 'date_type': 'SETTLE_TIME', 'start_date': '2024-04-19 22:12:06', 'end_date': '2024-04-24 23:59:59', 'page': 2}
123
125679104 token fccbebdc03e0da8c40e08c05b3aa218
2024-04-19 13:04:59
{'page_size': 100, 'date_type': 'SETTLE_TIME', 'start_date': '2024-04-19 13:04:59', 'end_date': '2024-04-24 23:59:59', 'page': 1}
28
127218230 token dbc8b810ea4b3d960cf01b48d1fade6
2024-04-14 13:32:04
{'page_size': 100, 'date_type': 'SETTLE_TIME', 'start_date': '2024-04-14 13:32:04', 'end_date': '2024-04-24 23:59:59', 'page': 1}
3
132123975 token 15404229d243037b07b684da68f401a
2024-04-19 14:20:40
{'page_size': 100, 'date_type': 'SETTLE_TIME', 'start_date': '2024-04-19 14:20:40', 'end_date': '2024-04-24 23:59:59', 'page': 1}
31
19064453 token 31b8e1552074da1a9d961305243d019
2024-04-19 21:52:20
{'page_size': 100, 'date_type': 'SETTLE_TIME', 'start_date': '2024-04-19 21:52:20', 'end_date': '2024-04-24 23:59:59', 'page': 1}
100
{'page_size': 100, 'date_type': 'SETTLE_TIME', 'start_date': '2024-04-19 21:52:20', 'end_date': '2024-04-24 23:59:59', 'page': 2}
200
{'page_size': 100, 'date_type': 'SETTLE_TIME', 'start_date': '2024-04-19 21:52:20', 'end_date': '2024-04-24 23:59:59', 'page': 3}
300
{'page_size': 100, 'date_type': 'SETTLE_TIME', 'start_date': '2024-04-19 21:52:20', 'end_date': '2024-04-24 23:59:59', 'page': 4}
354
40362709 token 13648d62ca8fa3b34a3ff3d3d362b55
2024-04-19 17:13:58
{'page_size': 100, 'date_type': 'SETTLE_TIME', 'start_date': '2024-04-19 17:13:58', 'end_date': '2024-04-24 23:59:59', 'page': 1}
97
40892712 token 97cd4c0d0b99dbf92c18ee632f41489
2024-03-13 11:31:04
{'page_size': 100, 'date_type': 'SETTLE_TIME', 'start_date': '2024-03-13 11:31:04', 'end_date': '2024-04-24 23:59:59', 'page': 1}
1
40979778 token e76c19fd80366ab0be9a7d8da68edb0
2024-04-19 21:39:45
{'page_size': 100, 'date_type': 'SETTLE_TIME', 'start_date': '2024-04-19 21:39:45', 'end_date': '2024-04-24 23:59:59', 'page': 1}
10
41909966 token ae75a1c2f6d25626c237a3922f137a5
2024-04-19 14:46:17
{'page_size': 100, 'date_type': 'SETTLE_TIME', 'start_date': '2024-04-19 14:46:17', 'end_date': '2024-04-24 23:59:59', 'page': 1}
18
41910751 token 43c887fd7ef445b0345f7b902f98c83
2024-04-19 08:56:04
{'page_size': 100, 'date_type': 'SETTLE_TIME', 'start_date': '2024-04-19 08:56:04', 'end_date': '2024-04-24 23:59:59', 'page': 1}




用手机打开
收藏 ··· 回复
    您好,1:该订单目前状态已完成,无退款情况
    获取订单信息使用        订单批量查询接口(youzan.trades.sold.get)或者查询单笔交易详情接口youzan.trade.get
    若是使用接口查询异常提供接口返回给你的traceID,这边核实下情况
    2:服务访问出错,重试下哈

      1跳至
      您需要登录后才可以回帖 登录 | 立即注册

      本版积分规则

      复制链接
      新浪微博
      QQ空间
      微信扫码
      • 回复

      • 评分

      客服工作时间是9:00-18:00,客服妹子当前不在线,若不能及时回复请谅解。试试右上角的搜索吧,论坛有丰富的经验贴、公告贴,相信一定能够帮到您~

      复制成功