我继续从python请求中获得一个非常通用的、毫无帮助的错误消息,当我发出一个在Postman中工作良好的POST请求时。
无论我尝试什么,我都会继续收到两条错误消息中的一条。请注意,调用python脚本没有第155行,有效载荷也不包含字母"u":
{"error":{"detail":"SyntaxError: Unexpected token: u (sys_script_include.d2426c9ec0a8016501958bf2ac79c775.script; line 155)","message":
当我们试图根据UberEats文档Ubereats 请求Ubereats API收集有关我们餐厅的报告时,我们将面临一个错误。
错误:
'{"error":"Could not parse json: readObjectStart: expect { or n, but found \x00, error found in #0 byte of ...||..., bigger context ...||..."}'
我们试图在python和postman中运行查询,但仍然面临相同的错误。
需要帮助才能了解我们失败的地方。
在这里,python
我对Python非常陌生。我遇到了这个问题,希望你能帮助我。让我解释一下我想做什么,如果我把你搞糊涂了,请让我知道。
我有这个Python脚本,它可以很好地创建事件。
# Set the request parameters
url = 'https://outlook.office365.com/api/v1.0/me/events?$Select=Start,End'
user = 'user1@domain.com'
pwd = getpass.getpass('Please enter your AD password: ')
# C