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.

I’ve used the Windows, Kali, Ubuntu 16.04, and Docker setup methods and using Python 2 and 3. I always get the same error:

[+] Checking email in public leaks... Traceback (most recent call last): File "Cr3d0v3r.py", line 139, in <module> main() File "Cr3d0v3r.py", line 99, in main if ispwned.check_hackedEmails(email): File "/Cr3dOv3r/Core/ispwned.py", line 9, in check_hackedEmails res = req.json() File "/usr/local/lib/python3.6/site-packages/requests/models.py", line 892, in json return complexjson.loads(self.text, **kwargs) File "/usr/local/lib/python3.6/json/__init__.py", line 354, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.6/json/decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/local/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) Am I missing something?

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
D4Vincicommented, Jan 17, 2018

No need, they just fixed the problem and I tested it now and it’s working fine. reopen if there’s any problem remaining 😄

2reactions
johnlockejrrcommented, Jan 17, 2018

Problem with Cloudflare on hacked-emails.com

https://github.com/johnlockejrr/Cr3dOv3r/blob/master/Core/ispwned.py

import cfscrape

#Added cfscrape method to bypass Cloudflare on hacked-emails.com - johnlockejrr
def check_hackedEmails(email,return_what=""):
    #from hacked-emails API docs from https://hacked-emails.com/api_docs
    url = "https://hacked-emails.com/api?q="+str(email)
    scraper = cfscrape.create_scraper()
    req = scraper.get(url).json()
    res = req
    if res["status"]=="found":
        if return_what=="":
            return True
        else:
            return res
    else:
        return False

$ pip install cfscrape

Read more comments on GitHub >

github_iconTop Results From Across the Web

JSON error handling
In cases where a JavaScript Object Notation (JSON) transaction fails, the API Gateway can use a JSON error to convey error information to...
Read more >
I've received an "Invalid JSON string" error. What do I do?
An invalid JSON error can occur for many reasons. The most common issue is usually associated with a file upload attempt, and can...
Read more >
HTTP status and error codes for JSON | Cloud Storage
HTTP Status and Error Codes · 302—Found · 303—See Other · 304—Not Modified · 307—Temporary Redirect · 308—Resume Incomplete · 400—Bad Request ·...
Read more >
JSON Online Validator and Formatter - JSON Lint
The best way to find and correct errors while simultaneously saving time is to use an online tool such as JSONLint. JSONLint will...
Read more >
How to Fix the Invalid JSON Error in WordPress? - Rank Math
How To Fix 'Updating Failed. The Response is Not a Valid JSON Response' Error · Check the URL Settings of the WordPress Site...
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