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

Slow response time when sending URL via SendMessage API #277

Open
Martin22 opened this issue Oct 8, 2024 · 2 comments
Open

Slow response time when sending URL via SendMessage API #277

Martin22 opened this issue Oct 8, 2024 · 2 comments

Comments

@Martin22
Copy link

Martin22 commented Oct 8, 2024

Hi. If I send a URL, for example, https://google.com/, as a string via the SendMessage API endpoint, I experience a 7-second delay before the curl command completes. The same issue occurs when using Swagger. It seems like it's trying to resolve the domain via DNS. However, DNS resolution works everywhere else, both in Docker and on the host machine, so it doesn’t appear to be a DNS problem. Has anyone else encountered this issue?

@Martin22 Martin22 changed the title Slow Response Time When Sending URL via SendMessage API Slow response time when sending URL via SendMessage API Oct 8, 2024
@aviamsuni
Copy link

I also sometimes have a slow response time of up to several hours late, and not only when sending an address

@Martin22
Copy link
Author

Martin22 commented Oct 9, 2024

I figured out why there is a delay. The application on the phone must be running, through which the page previews are likely being fetched. If it's not running, it seems to wait for some kind of timeout, and the preview of the sent page won't load. It looks like a feature of WhatsApp, which probably can't be changed, but maybe the timeout could be shortened somehow?

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

2 participants