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 "", line 139, in <module> main() File "", line 99, in main if ispwned.check_hackedEmails(email): File "/Cr3dOv3r/Core/", line 9, in check_hackedEmails res = req.json() File "/usr/local/lib/python3.6/site-packages/requests/", line 892, in json return complexjson.loads(self.text, **kwargs) File "/usr/local/lib/python3.6/json/", line 354, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.6/json/", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/local/lib/python3.6/json/", 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

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 😄

johnlockejrrcommented, Jan 17, 2018

Problem with Cloudflare on

import cfscrape

#Added cfscrape method to bypass Cloudflare on - johnlockejrr
def check_hackedEmails(email,return_what=""):
    #from hacked-emails API docs from
    url = ""+str(email)
    scraper = cfscrape.create_scraper()
    req = scraper.get(url).json()
    res = req
    if res["status"]=="found":
        if return_what=="":
            return True
            return res
        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 Post

No results found

github_iconTop Related Hashnode Post

No results found