Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSONDecodeError: Expecting value: line 1 column 1 (char 0) in my CSV file (converted from .xlsx) #7

Open
greasyf opened this issue Sep 22, 2023 · 0 comments

Comments

@greasyf
Copy link

greasyf commented Sep 22, 2023

JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback:
File "C:\Projects\langchain_csv_1\venv\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 552, in run_script
exec(code, module.dict)
File "C:\Projects\langchain_csv_1\interface.py", line 72, in
decoded_response = decode_response(response)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Projects\langchain_csv_1\interface.py", line 17, in decode_response
return json.loads(response)
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\json_init
.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\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\User\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant