[Question] NOWEB+Mongodb It takes a long time to download chat history attachments
/api/default/chats/xxx/messages?downloadMedia=true&limit=5&offset=0 The request was canceled due to the configured HttpClient.Timeout of 600 seconds elapsing. There are only 5 records, and they cannot be retrieved normally after 600 seconds. Is there any other way to solve this problem?
What causes such a long response time? Is it MongoDB or my server that has insufficient resources?
Hi! Could you try fetch with downloadMedia=false first and the iterate one by one using https://waha.devlike.pro/docs/how-to/chats/#get-message-by-id ?
Probalby there's an issue with 1 message that causes timeout.
Also logs would help 🙏
Mongodb doesn't save the file, it just saves messages, so shouldn't be a problem https://waha.devlike.pro/docs/how-to/storages/
Hi! Could you try fetch with
downloadMedia=falsefirst and the iterate one by one using https://waha.devlike.pro/docs/how-to/chats/#get-message-by-id ? Probalby there's an issue with 1 message that causes timeout.Also logs would help 🙏
Mongodb doesn't save the file, it just saves messages, so shouldn't be a problem https://waha.devlike.pro/docs/how-to/storages/
This is the method we're currently using, but we're still experiencing request timeouts, possibly because the file is too large. Would switching to PostgreSQL help?
the file is too large.
In 60seconds you can download pretty big files 🤔
unlikely postgresql will help, need to check in the logs for the message what's happening, ideally
the file is too large.
In 60seconds you can download pretty big files 🤔
unlikely postgresql will help, need to check in the logs for the message what's happening, ideally
Perhaps it's due to frequent synchronization? Because there are over 100 conversations, and within each conversation are chat logs from numerous contacts. Furthermore, I will continuously synchronize the data because occasionally webhooks may be missed.