eBay API 返回错误 ID 2000,服务操作 GetItem 未知
eBay API returning errorID 2000, Service operation GetItem is unknown
我正在尝试使用 GetItem 调用向 eBay API 发送请求,但我一直收到错误 ID 2000,
ebaysdk.exception.ConnectionError: 'GetItem: Internal Server Error, Domain: CoreRuntime, Severity: Error, errorId: 2000, Service operation GetItem is unknown'
在 API 页面上查看时不存在 API 可能的列表 errors by number
我正在尝试使用 GetItem call, but it seems that the eBay API can not recognise it. After some reasearch I found that there is another call I could try, which is the GetSingleItem,但 API 似乎也无法识别。
这是我正在使用的代码:
api_requests = {"ItemID": item_id}
response_get_item = api.execute("GetItem", api_requests)
其中变量 item_id 是一个普通的 12 位数字字符串,实际上对应于 eBay 上的商品。
结果是我忘记从 ebaysdk.shopping 导入“Connection”,而我在前面的代码中使用了 ebaysdk.finding 的“Connection”。
旧导入语句:
from ebaysdk.finding import Connection as finding
新导入语句:
from ebaysdk.finding import Connection as finding
from ebaysdk.shopping import Connection as shopping
我正在尝试使用 GetItem 调用向 eBay API 发送请求,但我一直收到错误 ID 2000,
ebaysdk.exception.ConnectionError: 'GetItem: Internal Server Error, Domain: CoreRuntime, Severity: Error, errorId: 2000, Service operation GetItem is unknown'
在 API 页面上查看时不存在 API 可能的列表 errors by number
我正在尝试使用 GetItem call, but it seems that the eBay API can not recognise it. After some reasearch I found that there is another call I could try, which is the GetSingleItem,但 API 似乎也无法识别。
这是我正在使用的代码:
api_requests = {"ItemID": item_id}
response_get_item = api.execute("GetItem", api_requests)
其中变量 item_id 是一个普通的 12 位数字字符串,实际上对应于 eBay 上的商品。
结果是我忘记从 ebaysdk.shopping 导入“Connection”,而我在前面的代码中使用了 ebaysdk.finding 的“Connection”。
旧导入语句:
from ebaysdk.finding import Connection as finding
新导入语句:
from ebaysdk.finding import Connection as finding
from ebaysdk.shopping import Connection as shopping