You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm experiencing a persistent issue with the package that somehow only manifests when I deploy the app on Heroku.
The JSOn values returned by the API seem to be generating errors during decoding, and I tried with both versions of the packages (Github and pip package from here).
Both works fine when I run it locally though, and the issue with Heroku popped up only in the last few weeks. Anyone faced similar issues and know what could be the problem?
File "/app/unit_test11.py", line 4, in <module>
for a in Perplexity().generate_answer(prompt):
^^^^^^^^^^^^
File "/app/.heroku/python/lib/python3.11/site-packages/perplexityai/__init__.py", line 22, in __init__
self.sid = loads(
^^^^^^
File "/app/.heroku/python/lib/python3.11/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.heroku/python/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.heroku/python/lib/python3.11/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)
The text was updated successfully, but these errors were encountered:
I'm experiencing a persistent issue with the package that somehow only manifests when I deploy the app on Heroku.
The JSOn values returned by the API seem to be generating errors during decoding, and I tried with both versions of the packages (Github and pip package from here).
Both works fine when I run it locally though, and the issue with Heroku popped up only in the last few weeks. Anyone faced similar issues and know what could be the problem?
The text was updated successfully, but these errors were encountered: