#๐Ÿ”’ what should i do?

22 messages ยท Page 1 of 1 (latest)

frail ridge
#

My error:

Traceback (most recent call last):
File "C:\Users\Merlin\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\models.py", line 974, in json return complexjson.loads(self.text, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Merlin\AppData\Local\Programs\Python\Python311\Lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Merlin\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Merlin\AppData\Local\Programs\Python\Python311\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)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\Merlin\Downloads\Valorant-checker-V2-main\Valorant-checker-V2-main\main.py", line 613, in <module>
checker()
File "C:\Users\Merlin\Downloads\Valorant-checker-V2-main\Valorant-checker-V2-main\main.py", line 187, in checker
data = r2.json()
^^^^^^^^^
File "C:\Users\Merlin\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\models.py", line 978, in json raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

rose havenBOT
#

@frail ridge

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

spark parrot
#

don't try to json decode something that is not json, presumably

#

did you read your error message? it already says what I said, right, so ... what information are you after?

#

maybe you think you are reading valid json, but that would mean you're reading the wrong file or something along those lines, or if it isn't supposed to be an empty file

frail ridge
#

I have no idea about Python, I got this program from a friend and it worked for him, but for me it just spits out this.

tacit scroll
#

this file is empty

#

You need to add json data to it

frail ridge
#

okay

#

witch file

tacit scroll
#

you're decoding

#

Wait, he's trying to decode json data from web request

#

Seems like you got a fully empty response from the server which shouldn't happen

frail ridge
#

that means the servers are offline?

#

or what

tacit scroll
#

Idk, ask your friend

frail ridge
#

okay

spark parrot
#

yeah idk why you're asking us about code you didn't write

frail ridge
#

Anyway, thank you very much

rose havenBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.

#

๐Ÿ”’ what should i do?