botpress / v12

Botpress OSS – v12
https://v12.botpress.com
GNU Affero General Public License v3.0
68 stars 83 forks source link

Log keep pop /api/v1/chat/receive 404 error #1634

Open fancyoung opened 2 years ago

fancyoung commented 2 years ago

botpress version: 12.26.10 (clone from github)

I have only 1 bot, and have no webhook. It's ok when I run in my labtop, but when I deploy into server with a domain (Ubuntu + Nginx), I have the EXTERNAL_URL=http://xx.xx.xx/xx because botpress is in subpath the log keep pop 404.

It seems I set the EXTERNAL_URL, but I didn't use any channel.

Why call this api? How can I disable it?

[Messaging] Stream Unable to send webhook event after 10 attempts {  url: 'http://localhost:3001/api/v1/chat/receive',
  message: 'Request failed with status code 404',
  response: '<!DOCTYPE html>\n' +
    '<html lang="en">\n' +
    '<head>\n' +
    '<meta charset="utf-8">\n' +
    '<title>Error</title>\n' +
    '</head>\n' +
    '<body>\n' +
    '<pre>Cannot POST /api/v1/chat/receive</pre>\n' +
    '</body>\n' +
    '</html>\n',
  status: 404
}
tzhang-dev commented 1 year ago

I am facing the same problem here. I am using docker and mapping port 3000 to 5000 of local host. The application periodically breaks down and the last error messages are always this:

02/21/2023 08:26:20.743 [Messaging] Stream Unable to send webhook event after 10 attempts {
  url: 'http://localhost:3000/api/v1/chat/receive',
  message: 'connect ECONNREFUSED 127.0.0.1:3000',
  response: undefined,
  status: undefined
}
luisarmandom commented 1 year ago

did you ever find an answer?

tzhang-dev commented 1 year ago

sadly no

On Tue, 28 Feb 2023 at 23:24 Luis Armando @.***> wrote:

did you ever find an answer?

— Reply to this email directly, view it on GitHub https://github.com/botpress/v12/issues/1634, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGCE23G6EJN336ZHPYZVPRLWZZ3KBANCNFSM5TMPVK2Q . You are receiving this because you commented.Message ID: @.***>