[New-bugs-announce] [issue43775] JSON Parsing Alarm: Requests + Json = JSONDecodeError

Maria Kazakova report at bugs.python.org
Thu Apr 8 13:56:34 EDT 2021


New submission from Maria Kazakova <marikasakowa at gmail.com>:

I tried to use the usual code:
response = requests.get (url)
response.json () OR json.loads (response.text)
BUT
it returns JSONDecodeError Expecting value: line 1 column 1 (char 0) — no matter, which website I am trying to parse, with headers or without them. 
However, response.status_code = 200 and response.text returns the whole html-content. Two days ago everything worked completely fine, and now this disaster happens. I asked a couple of friends to try the same — and everyone failed to succeed, everyone gets this error — using Jupyter Notebook (+Anaconda, Python 3.7), PyCharm (+Python 3.9) and Google Colab.
Please help :(

----------
components: Windows
messages: 390539
nosy: marikasakowa, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: JSON Parsing Alarm: Requests + Json = JSONDecodeError
type: crash
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43775>
_______________________________________


More information about the New-bugs-announce mailing list