Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when downloading final package with ThridParty = True #6

Open
gallypette opened this issue Aug 21, 2020 · 0 comments
Open

Error when downloading final package with ThridParty = True #6

gallypette opened this issue Aug 21, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@gallypette
Copy link
Member

2020-08-21 08:11:46,447 - WARNING - New Sensor created, uuid:c135c5aa-b25f-43b2-aac1-132242c450b0, ip
:xx.xx.xx.xx, type:1, destination:default, client:go, os:linux, arch:amd64                          
2020-08-21 08:11:46,749 - ERROR - Exception on /download [GET]                                       
Traceback (most recent call last):                                                                   
  File "/home/d4/d4-sensor-generator/D4GENV/lib/python3.6/site-packages/flask/app.py", line 2446, in 
wsgi_app                                                                                             
    response = self.full_dispatch_request()                                                          
  File "/home/d4/d4-sensor-generator/D4GENV/lib/python3.6/site-packages/flask/app.py", line 1951, in 
full_dispatch_request                                                                                
    rv = self.handle_user_exception(e)                                                               
  File "/home/d4/d4-sensor-generator/D4GENV/lib/python3.6/site-packages/flask/app.py", line 1820, in 
handle_user_exception                                                                                
    reraise(exc_type, exc_value, tb)                                                                 
  File "/home/d4/d4-sensor-generator/D4GENV/lib/python3.6/site-packages/flask/_compat.py", line 39, i
n reraise                                                                                            
    raise value                                                                                      
  File "/home/d4/d4-sensor-generator/D4GENV/lib/python3.6/site-packages/flask/app.py", line 1949, in 
full_dispatch_request                                                                                
    rv = self.dispatch_request()                                                                     
  File "/home/d4/d4-sensor-generator/D4GENV/lib/python3.6/site-packages/flask/app.py", line 1935, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/d4/d4-sensor-generator/blueprints/root.py", line 438, in download
    registred = register_sensor_via_api(UUID, key, mail, third_party=third_party)
  File "/home/d4/d4-sensor-generator/blueprints/root.py", line 123, in register_sensor_via_api
    root_log.error(res.json())
  File "/home/d4/d4-sensor-generator/D4GENV/lib/python3.6/site-packages/requests/models.py", line 897, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/lib/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
2020-08-21 08:11:46,750 - INFO - xx.xx.xx.xx - - [21/Aug/2020 08:11:46] "GET /download?d4_client=go&
type=1&destination=default&os=linux&arch=amd64&third_party=True HTTP/1.1" 500 -
@gallypette gallypette added the bug Something isn't working label Aug 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant