Skip to content

Recurring stacktrace in the statistics service #425

@robvanmieghem

Description

@robvanmieghem
Traceback (most recent call last):
  File "/root/.cache/pypoetry/virtualenvs/js-sdk-N5daMEp6-py3.8/lib/python3.8/site-packages/bottle.py", line 868, in _handle
    return route.call(**args)
  File "/root/.cache/pypoetry/virtualenvs/js-sdk-N5daMEp6-py3.8/lib/python3.8/site-packages/bottle.py", line 1748, in wrapper
    rv = callback(*a, **ka)
  File "/root/sandbox/var/downloaded_packages/threefoldfoundation_tft-stellar_tft_statistics_master/tft-stellar/ThreeBotPackages/tft_statistics/bottle/tft_statistics.py", line 76, in total_unlocked_tft
    cached_data = j.data.serializers.json.loads(redis.get(tokencode))
  File "/root/.cache/pypoetry/virtualenvs/js-sdk-N5daMEp6-py3.8/lib/python3.8/site-packages/jumpscale/data/serializers/json.py", line 38, in loads
    return json.loads(s)
  File "/usr/lib/python3.8/json/__init__.py", line 341, in loads
    raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not NoneType
127.0.0.1 - - [2022-02-25 10:21:05] "GET /tft_statistics/api/total_unlocked_tft HTTP/1.0" 500 948 0.012002

but when checking this endpoint with a browser, I do get a response

Metadata

Metadata

Assignees

Labels

type_bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions