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 error (running in Colab) #38

Open
climate-tech opened this issue Dec 21, 2023 · 4 comments
Open

JSONDecodeError error (running in Colab) #38

climate-tech opened this issue Dec 21, 2023 · 4 comments

Comments

@climate-tech
Copy link

JSONDecodeError Traceback (most recent call last)
in <cell line: 3>()
1 from perplexity import Perplexity
2
----> 3 perplexity = Perplexity()
4 answer = perplexity.search("how does solar energy work?")
5 for a in answer:

4 frames
/usr/lib/python3.10/json/decoder.py in raw_decode(self, s, idx)
353 obj, end = self.scan_once(s, idx)
354 except StopIteration as err:
--> 355 raise JSONDecodeError("Expecting value", s, err.value) from None
356 return obj, end

JSONDecodeError: Expecting value: line 1 column 1 (char 0)

@LexiestLeszek
Copy link

LexiestLeszek commented Dec 21, 2023

same here

@14790897
Copy link

14790897 commented Jan 8, 2024

same

1 similar comment
@climate-tech
Copy link
Author

same

@sarthak501
Copy link

did anyone got the solution?
if yes then please post the solution

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