Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

500 error, need some help #80

Open
tony6012 opened this issue May 23, 2023 · 6 comments
Open

500 error, need some help #80

tony6012 opened this issue May 23, 2023 · 6 comments

Comments

@tony6012
Copy link

tony6012 commented May 23, 2023

https://imgur.com/a/nngakIm

having a seems common issue.
please check link [https://imgur.com/a/nngakIm]
error

@ItZTheNicasio
Copy link

i have the same problem in this day

@Huskynarr
Copy link

The Whatsapp Client get a connection refused, about postman the api is available.

Error making request: Get "http://localhost:5001/chat?q=AwesomeQuestion dial tcp [::1]:5001: connect: connection refused

@Youssof68
Copy link

same

@MeinDeutschkurs
Copy link

#79 ?

@Huskynarr
Copy link

Huskynarr commented Jun 1, 2023

Got solved this problem with relogin in whatsapp. Am currently unsure if it really is. Maybe the token expires after 30 days and the error handling is not correct. But that's just a guess.

@MeinDeutschkurs
Copy link

@Huskynarr That's interesting. Do you mean that you simply "renew" the qr-code-thing, or did you change anything in server.py for this?

As mentioned before, I do a reload of the browser window before submitting new requests to it. To avoid overwriting the content by new requests, I copied the part which checks the streaming-class before the reload, so other requests have to wait until the class vanishes. (First serve first come?)

def send_message(message):
    # Send the message
    # Refresh the page before sending the message
    while PAGE.query_selector(".result-streaming") is not None:
        time.sleep(0.1)
    PAGE.reload()
    # Wait for 6 seconds
    time.sleep(6)
    # Send the message
    box = get_input_box()
    box.click()
    box.fill(message)
    time.sleep(2)
    box.press("Enter")
    while PAGE.query_selector(".result-streaming") is not None:
        time.sleep(0.1)

However, I added Apple "say" to have voice output and whisper AI to detect voice messages. It's funny. Next I want to try to OCR my student's homework from PDF-files and/or images. I also want to add scraped google results to get a bit of web context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants