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 #11

Open
agnelvishal opened this issue Oct 16, 2018 · 3 comments
Open

Error #11

agnelvishal opened this issue Oct 16, 2018 · 3 comments

Comments

@agnelvishal
Copy link

I get the error

Traceback (most recent call last):
  File "cdx-index-client.py", line 382, in <module>
    main()
  File "cdx-index-client.py", line 379, in main
    read_index(r, info['cdx-api'], info['id'])
  File "cdx-index-client.py", line 292, in read_index
    num_pages = get_num_pages(api_url, r.url, r.page_size)
  File "cdx-index-client.py", line 33, in get_num_pages
    pages_info = r.json()
  File "/root/commoncrawl-env-py3/lib/python3.6/site-packages/requests/models.py", line 896, 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)

when using the command ./cdx-index-client.py -c all http://skcript.com/* --fl url -d crawled

@agnelvishal
Copy link
Author

Could @ikreymer help?

@Chaitanya-Jadhav
Copy link

I got the same error.

@y0m
Copy link

y0m commented Apr 2, 2021

Hello folks!

I had the same error (Ubuntu 20.4). Switching from python3 (which is the default Python version on Ubuntu) to python2.7 solved it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants