question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

simplejson.errors.JSONDecodeError

See original GitHub issue

This didn’t happen with the same code, and I am using the fastai neptune callback

Traceback (most recent call last):
  File "finetune.py", line 116, in <module>
    neptune.init(project_qualified_name='natsume/electra-glue')
  File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/neptune/__init__.py", line 148, in init
    backend = HostedNeptuneBackend(api_token, proxies)
  File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/neptune/utils.py", line 210, in wrapper
    return func(*args, **kwargs)
  File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/neptune/internal/backends/hosted_neptune_backend.py", line 91, in __init__
    self._client_config = self._create_client_config(self.credentials.api_token, backend_client)
  File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/neptune/utils.py", line 210, in wrapper
    return func(*args, **kwargs)
  File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/neptune/internal/backends/hosted_neptune_backend.py", line 930, in _create_client_config
    config = backend_client.api.getClientConfig(X_Neptune_Api_Token=api_token).response().result
  File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/bravado/http_future.py", line 200, in response
    swagger_result = self._get_swagger_result(incoming_response)
  File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/bravado/http_future.py", line 124, in wrapper
    return func(self, *args, **kwargs)
  File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/bravado/http_future.py", line 303, in _get_swagger_result
    self.request_config.response_callbacks,
  File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/bravado/http_future.py", line 337, in unmarshal_response
    op=operation,
  File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/bravado/http_future.py", line 374, in unmarshal_response_inner
    content_value = response.json()
  File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/bravado/requests_client.py", line 160, in json
    return self._delegate.json(**kwargs)
  File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/requests/models.py", line 898, in json
    return complexjson.loads(self.text, **kwargs)
  File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/simplejson/__init__.py", line 525, in loads
    return _default_decoder.decode(s)
  File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/simplejson/decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/simplejson/decoder.py", line 400, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
PiotrJandercommented, Oct 2, 2020

Anyone who is seeing this as well, please upvote the issue.

0reactions
PiotrJandercommented, Jun 10, 2021

Great to hear that, closing the issue then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

simplejson.errors.JSONDecodeError - python - Stack Overflow
The error occurs at the beginning, so you are probably trying to decode something which is not in Json format. – Serge Ballesta....
Read more >
simplejson.errors.JSONDecodeError : Forums
simplejson.errors.JSONDecodeError ... JSONDecodeError: Expecting value: line 1 column 1 (char 0). This is the error when I run my code on ...
Read more >
pyDataverse API simplejson.errors.JSONDecodeError
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0). when using the Dataverse API using the pyDataverse package and ...
Read more >
simplejson — JSON encoder and decoder — simplejson 3.18 ...
read() -supporting file-like object containing a JSON document) to a Python object using this conversion table. JSONDecodeError will be raised if the given...
Read more >
Top 5 simplejson Code Examples - Snyk
Learn more about how to use simplejson, based on simplejson code examples created ... except JSONDecodeError: logger.error( "github.webhook.invalid-json", ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found