Coder Social home page Coder Social logo

Comments (7)

snowby666 avatar snowby666 commented on May 20, 2024

Is it working in the new release?

from poe-api-wrapper.

ngbruce avatar ngbruce commented on May 20, 2024

Is it working in the new release?

still no good.
I hard reset the project to latest but still get error:
Traceback (most recent call last):
File "D:\MY_DOCUMENTS\Python_Projs\My_Apps\poe-api-wrapper\myTest.py", line 3, in
PoeExample(token).chat_with_bot()
File "D:\MY_DOCUMENTS\Python_Projs\My_Apps\poe-api-wrapper\poe_api_wrapper\example.py", line 6, in init
self.client = PoeApi(cookie=self.cookie)
File "D:\MY_DOCUMENTS\Python_Projs\My_Apps\poe-api-wrapper\poe_api_wrapper\api.py", line 147, in init
self.connect_ws()
File "D:\MY_DOCUMENTS\Python_Projs\My_Apps\poe-api-wrapper\poe_api_wrapper\api.py", line 263, in connect_ws
raise RuntimeError("Timed out waiting for websocket to connect.")
RuntimeError: Timed out waiting for websocket to connect.

from poe-api-wrapper.

snowby666 avatar snowby666 commented on May 20, 2024

I see. I think the ws connection has some issues when you are behind a proxy. I will try to reproduce this and do further research

from poe-api-wrapper.

ngbruce avatar ngbruce commented on May 20, 2024

I see. I think the ws connection has some issues when you are behind a proxy. I will try to reproduce this and do further research

Yes, I think some where in the code doesnt work fine with proxy.
If I turn off the proxy, it will be error in get_formkey() of api.py.
When the proxy is on, the function can get the correct formkey.

from poe-api-wrapper.

snowby666 avatar snowby666 commented on May 20, 2024

I will change the get_form_key method

from poe-api-wrapper.

ngbruce avatar ngbruce commented on May 20, 2024

I will change the get_form_key method

What I mean is, the get_formkey() function is fine.
It was just a test shows that the peoject can go through the proxy and return the formkey. I think the problem is some where after getting the formkey, some thing wrong with ws with proxy.

from poe-api-wrapper.

asyu17 avatar asyu17 commented on May 20, 2024

same problem

from poe-api-wrapper.

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.