Git Product home page Git Product logo

Comments (10)

helallao avatar helallao commented on May 12, 2024

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.

thanhtamns avatar thanhtamns commented on May 12, 2024

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.
image

This is my code for test:
image

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.

jxng avatar jxng commented on May 12, 2024

I can confirm that I am getting the same issue as the above

from perplexity-ai.

helallao avatar helallao commented on May 12, 2024

I'm using python 3.11.3 and everything is as default.

from perplexity-ai.

thanhtamns avatar thanhtamns commented on May 12, 2024

I have tried everything, i installed on anaconda but it seems impossible. Can you move it to docker?

from perplexity-ai.

helallao avatar helallao commented on May 12, 2024

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.

jxng avatar jxng commented on May 12, 2024

@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.

thedavidweng avatar thedavidweng commented on May 12, 2024

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.

thanhtamns avatar thanhtamns commented on May 12, 2024

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:
image
And after 0,5 second:
image

from perplexity-ai.

helallao avatar helallao commented on May 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.