You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[2018-06-20 10:15:45,471] ERROR in app: Exception on /api/get-token [POST]
Traceback (most recent call last):
File "c:\python27\lib\site-packages\flask\app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "c:\python27\lib\site-packages\flask\app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "c:\python27\lib\site-packages\flask\app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "c:\python27\lib\site-packages\flask\app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "c:\python27\lib\site-packages\flask\app.py", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "D:\Git\HttpRunner\tests\api_server.py", line 75, in get_token
sign = data.get('sign', "")
AttributeError: 'NoneType' object has no attribute 'get'
平台:windows
步骤:
结果:返回500错误
后台返回抛出异常如下:
疑问:
同样情况下,post方法请求http://127.0.0.1:5000/api/users/1可正常返回,只是由于get-token无法正常返回而权限不足无法添加。求指点。
The text was updated successfully, but these errors were encountered: