Comments (10)
It's working on my pc. I don't know what is the problem but it doesn't look like because of "t token". You can change codes to fix the problem but it's working on my pc so i don't think this is the problem.
from perplexity-ai.
Can you tell me your python version?
I always have my problems when using multiple workflows.
and even if I use the sample code and continuously change cookies/header but the value of self._last_answer is always None.
I discovered that the websocket thread always shuts down after 0.5 seconds
Can you give me any information about python and your coding environment?
from perplexity-ai.
I can confirm that I am getting the same issue as the above
from perplexity-ai.
I'm using python 3.11.3 and everything is as default.
from perplexity-ai.
I have tried everything, i installed on anaconda but it seems impossible. Can you move it to docker?
from perplexity-ai.
There will be no difference, it's not about codes. There must be something else. Add a print(message)
to beginning of function on line 176 like this:
def on_message(self, ws, message):
print(message)
Run the script and upload all output here. Maybe i can find the problem.
from perplexity-ai.
@helallao I should also mentioned that I noticed the web browser requests to perplexity are now v2.2, while our code only uses v2.1, so it could be another point of red flag to cloudflare
from perplexity-ai.
I have tried everything, i installed on anaconda but it seems impossible. Can you move it to docker?
^^ A docker container would solve all the environment problems
from perplexity-ai.
There will be no difference, it's not about codes. There must be something else. Add a
print(message)
to beginning of function on line 176 like this:def on_message(self, ws, message): print(message)Run the script and upload all output here. Maybe i can find the problem.
The problem lies in the websocket, the thread to start the websocket disconnects and stops itself right after it runs, so the message cannot be received. I think cloudfle's problem:
And after 0,5 second:
from perplexity-ai.
Actually i don't have much experience with docker, so can't somebody else make a docker image with codes?
from perplexity-ai.
Related Issues (20)
- Handshake status 403 Forbidden HOT 2
- Wasn't able to run both versions 'File upload error' & asyncio.run() cannot be called from a running event loop (Solved) New issue : Expecting value: line 1 column 1 (char 0) HOT 4
- Error: Handshake status 400 Bad Request HOT 2
- JSONDecodeError: Expecting value: line 1 column 1 (char 0) HOT 2
- Unable to initialize Client class HOT 6
- Exception has occurred: WebSocketConnectionClosedException socket is already closed. HOT 3
- Follow-up query HOT 1
- File upload in concise mode HOT 2
- Followup after file upload losing context HOT 2
- Not terminating? HOT 1
- Invalid cookie HOT 1
- Cookies not working HOT 11
- issue with public url in s3
- Can't seems to contact with Perplexity HOT 2
- ModuleNotFoundError: No module named 'perplexity' HOT 3
- AssertionError at line 99 in file perplexity.py HOT 2
- Perplexity account creating error: <Response [400]> HOT 5
- "json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)" when running labs_cli.ask HOT 10
- How to use claude2/gpt4 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from perplexity-ai.