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

JsonDecode error #7

Open
dmoham1476 opened this issue Jan 15, 2021 · 7 comments
Open

JsonDecode error #7

dmoham1476 opened this issue Jan 15, 2021 · 7 comments

Comments

@dmoham1476
Copy link

Has anyone seen this

File "/datadrive2/d0m028p/Paraphrase-Generator/Streamlit/paraphrase.py", line 132, in forward
data = r.json()
File "/home/azurerootadmin/.local/lib/python3.6/site-packages/requests/models.py", line 900, in json
return complexjson.loads(self.text, **kwargs)
File "/datadrive1/miniconda3/envs/t5/lib/python3.6/json/init.py", line 354, in loads
return _default_decoder.decode(s)
File "/datadrive1/miniconda3/envs/t5/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/datadrive1/miniconda3/envs/t5/lib/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None

@luxerin1
Copy link

Also a JsonDecode error assistance would be appreciated

JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback:
File "/Users/csherida/opt/anaconda3/envs/Python_3_7/lib/python3.7/site-packages/streamlit/script_runner.py", line 324, in _run_script
exec(code, module.dict)
File "/Users/csherida/Documents/AI_Class/Paraphrase-Generator-master/Streamlit/paraphrase.py", line 148, in
main()
File "/Users/csherida/Documents/AI_Class/Paraphrase-Generator-master/Streamlit/paraphrase.py", line 60, in main
output = forward(user_input, decoding_params)
File "/Users/csherida/Documents/AI_Class/Paraphrase-Generator-master/Streamlit/paraphrase.py", line 132, in forward
data = r.json()
File "/Users/csherida/opt/anaconda3/envs/Python_3_7/lib/python3.7/site-packages/requests/models.py", line 898, in json
return complexjson.loads(self.text, **kwargs)
File "/Users/csherida/opt/anaconda3/envs/Python_3_7/lib/python3.7/json/init.py", line 348, in loads
return _default_decoder.decode(s)
File "/Users/csherida/opt/anaconda3/envs/Python_3_7/lib/python3.7/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Users/csherida/opt/anaconda3/envs/Python_3_7/lib/python3.7/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None

@Vamsi995
Copy link
Owner

Could you give me more details as to how the error occurred?

@luxerin1
Copy link

luxerin1 commented Mar 27, 2021 via email

@luxerin1
Copy link

luxerin1 commented Mar 27, 2021 via email

@Vamsi995
Copy link
Owner

Please check it now, and do let me know if the error still persists.

@luxerin1
Copy link

luxerin1 commented Apr 14, 2021 via email

@JonOnEarth
Copy link

Hi, I get the same error, any new?

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

4 participants