poe-api icon indicating copy to clipboard operation
poe-api copied to clipboard

No response when connecting with POE

Open wqw547243068 opened this issue 1 year ago • 13 comments

Failed when execute the following code, seems that some wrong with POE server

import poe

token = "oEIU***" # token
print('start')
client = poe.Client(token)
#client = poe.Client(token, proxy="socks5://178.62.100.151:59166")
print(client.bot_names)

Result

start nothing appears ... stuck in some where

wqw547243068 avatar Apr 18 '23 07:04 wqw547243068

Can you try enabling logging to see where it gets stuck?

import poe
import logging 
poe.logger.setLevel(logging.INFO)

#your code here

ading2210 avatar Apr 18 '23 07:04 ading2210

Can you try enabling logging to see where it gets stuck?

import poe
import logging 
poe.logger.setLevel(logging.INFO)

#your code here

logs as below

INFO:root:Downloading next_data...
INFO:root:Downloading channel data...
INFO:root:Downloading all bots...
INFO:root:Subscribing to mutations
(stuck all the way)

wqw547243068 avatar Apr 18 '23 08:04 wqw547243068

the same

bboysoulcn avatar Apr 18 '23 08:04 bboysoulcn

self.connect_ws()

this

bboysoulcn avatar Apr 18 '23 08:04 bboysoulcn

self.connect_ws()

this

I met the same problem.. It just stuck. I am sure the cookie is right. Have you found the solution?

KevinYamazaki avatar Apr 18 '23 08:04 KevinYamazaki

self.connect_ws()

this

I met the same problem.. It just stuck. I am sure the cookie is right. Have you found the solution?

no bro

bboysoulcn avatar Apr 18 '23 09:04 bboysoulcn

self.connect_ws()

this

I met the same problem.. It just stuck. I am sure the cookie is right. Have you found the solution?

no bro

bro I find that the test code(e.g temporary_message.py) import the module "poe",and a warning shows that it could not be resolved.(screen shot below) Would it matter or not? Many Thanks QQ截图20230418174755

KevinYamazaki avatar Apr 18 '23 09:04 KevinYamazaki

SAME PROBLEM

error

KevinYamazaki avatar Apr 18 '23 10:04 KevinYamazaki

What you can do to fix it (I am on MacOS I have not tested this on any other platform):

https://stackoverflow.com/questions/27835619/urllib-and-ssl-certificate-verify-failed-error

Run the file Applications/Python\ 3.10/Install\ Certificates.command

This worked for me let me know if it works for you

William-Banquier avatar Apr 19 '23 18:04 William-Banquier

What you can do to fix it (I am on MacOS I have not tested this on any other platform):

https://stackoverflow.com/questions/27835619/urllib-and-ssl-certificate-verify-failed-error

Run the file Applications/Python\ 3.10/Install\ Certificates.command

This worked for me let me know if it works for you

Windows PC here, I pip install certifi and found nothing named Certificates.command... Do I need to download OpenSSL or else? Thanks so much!

KevinYamazaki avatar Apr 20 '23 01:04 KevinYamazaki

Image of Search In CPython Library It looks like the certificate command is only on mac … However, I have two solutions for you

1) Try this command from the certifi library ```python import certifi certifi.where() ``` This command is supposed to print the path to the certificate, however I should note that this is different from the command I mentioned earlier…I have no way to test this as I can't put my computer in a way in which I can test this. Sorry. Screen Shot 2023-04-20 at 7 02 24 PM (Source: https://github.com/certifi/python-certifi)

Looked around on the original Stack Overflow page and found this, it says it pertains to Windows Users, however it is quite old—give it a shot (Note: I have not tested this)! [(Link to the answer)](https://stackoverflow.com/a/31915123)

I am sorry I can't help more—let me know if I was helpful

- William

William-Banquier avatar Apr 20 '23 23:04 William-Banquier

For Windows:

Go to the website https://letsencrypt.org/certificates Download ISRG Root X1 certificate file Save the file to your computer Open the Start menu and search for "Manage computer certificates". Open the "Trusted Root Certification Authorities" folder in the left-hand pane. Right-click in the right-hand pane and select "All Tasks" > "Import". Follow the Import Wizard to import the certificate file you downloaded in step 4. When prompted, choose "Place all certificates in the following store" and select "Trusted Root Certification Authorities". Click "Finish" to complete the import process.

twospade avatar May 11 '23 04:05 twospade

也遇到了同样的问题

Jxells avatar May 28 '23 05:05 Jxells