Code Monkey home page Code Monkey logo

haveibeenpwned's Introduction

Species

Vue NodeJS

  • 💬 Ask me about anything
  • 📫 How to reach me: @marinkopeso

haveibeenpwned's People

Contributors

dependabot[bot] avatar marinko-peso avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

adwoodworth

haveibeenpwned's Issues

library is throwing an error after calling pwned_full

I've tried to dumb it down to the most basic use case, and I am getting an error. The error is:

Traceback (most recent call last):
File "C:\Users\redacted\PycharmProjects\PyPiHaveIBeenPwned\main.py", line 3, in
pwneddic=pwned_full(email)
File "C:\Users\redacted\PycharmProjects\PyPiHaveIBeenPwned\venv\lib\site-packages\haveibeenpwned\status.py", line 38, in pwned_full
data = json.loads(response.data)
File "C:\Users\redacted\AppData\Local\Programs\Python\Python39\lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Users\redacted\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\redacted\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

The code is:

from haveibeenpwned import pwned_full
email = '[email protected]'
pwnedic=pwned_full(email)

Best I can tell, the pwned_full funtion is choking on the response from the haveibeenpwned API, finding something that isn't interpreted as JSON perhaps.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.