【发布时间】:2018-01-28 22:40:26
【问题描述】:
我正在使用ebay-sdk Python usage documentation。
我收到此错误
Exception: Unable to serialize node of type <class 'set'> ({'genuinefeatherbuys2011'})
这是我的代码(我用“x”替换了一些数据)
from ebaysdk.trading import Connection as Trading
from ebaysdk.exception import ConnectionError
key_id = 'x'
dev_id = 'x'
cert_id = 'x'
mytoken = 'x'
try:
api = Trading(appid=key_id, devid=dev_id, certid=cert_id, token=mytoken, config_file=None)
response = api.execute('GetUser', {'genuinefeatherbuys2011'})
print(response.dict())
print(response.reply)
except ConnectionError as e:
print(e)
print(e.response.dict())
【问题讨论】: