-
Notifications
You must be signed in to change notification settings - Fork 134
decoding int error. #72
Comments
The |
The upload file is the example used here: https://github.com/baidu/Curve.
|
@minorcong I appreciate if you can tell me how to invoke the code in pdb. |
The application entry point is |
@minorcong. I downgraded to python2.7 & the issue is fixed now.
Python > 3 does not seem to be supported as of now. Thank you for your help & an excellent code-base. I hope to submit a few more PR's in future. |
@navneeth I'm sorry for this. Curve is designed to be Python 2/3 compatible and developed in Python 2.7.3, Python 2.7.15 and python 3.1.2, but the compatibility testing of latest version seems not insufficient, eg. request lib, click lib ... |
[2019-05-13
14:55:29,204] ERROR in app: Exception on /v1/datas [GET]Traceback (most recent call last):
File "/Curve/venv/lib/python3.5/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/Curve/venv/lib/python3.5/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functionsrule.endpoint
File "/Curve/venv/lib/python3.5/site-packages/flask_restful/init.py", line 458, in wrapper
resp = resource(*args, **kwargs)
File "/Curve/venv/lib/python3.5/site-packages/flask/views.py", line 88, in view
return self.dispatch_request(*args, **kwargs)
File "/Curve/venv/lib/python3.5/site-packages/flask_restful/init.py", line 573, in dispatch_request
resp = meth(*args, **kwargs)
File "/Curve/api/curve/v1/validators.py", line 115, in wrapper
resp = view(*args, **kwargs)
File "/Curve/api/curve/v1/validators.py", line 106, in wrapper
return view(*args, **kwargs)
File "/Curve/api/curve/v1/api/datas.py", line 35, in get
return self.render(data=[data.view() for data in datas])
File "/Curve/api/curve/v1/api/datas.py", line 35, in
return self.render(data=[data.view() for data in datas])
File "/Curve/api/curve/v1/models/data_abstract.py", line 61, in view
'end': min(self.start_time + 86400, self.end_time) * 1000
TypeError: can't concat bytes to int`
After fixing many errors in the last PR. This is the error that has me stumped.
Looks like the start_time is not being decoded into an int properly. Please assist with pointers
The text was updated successfully, but these errors were encountered: