You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running botpress on path (e.g. EXTERNAL_URL=http://localhost:3000/some_path), messaging endpoint for teams fails with 404 (e.g. POST http://localhost:3000/some_path/api/v1/messaging/webhooks/<bot-id>/teams)
To reproduce
Run botpress with a not empty root path:
docker run --rm --name botpress --publish 3000:3000 --env "EXTERNAL_URL=http://localhost:3000/botpress" botpress/server:v12_31_0
Try to post to http://localhost:3000/botpress/api/v1/messaging/webhooks/empty_bot/teams
curl -vvv --request POST http://localhost:3000/botpress/api/v1/messaging/webhooks/empty_bot/teams
* Trying 127.0.0.1:3000...
* Connected to localhost (127.0.0.1) port 3000 (#0)
> POST /botpress/api/v1/messaging/webhooks/empty_bot/teams HTTP/1.1
> Host: localhost:3000
> User-Agent: curl/7.88.1
> Accept: */*
>
< HTTP/1.1 404 Not Found
< X-Powered-By: Express
< content-security-policy: default-src 'none'
< x-content-type-options: nosniff
< content-type: text/html; charset=utf-8
< content-length: 173
< date: Fri, 06 Oct 2023 01:20:59 GMT
< connection: close
< Vary: Accept-Encoding
<
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /botpress/webhooks/empty_bot/teams</pre>
</body>
</html>
* Closing connection 0
Expected behavior
Botpress should be able to resolve the given URL (in this case, should return 400 BAD REQUEST). To ilustrate, repeat the example but with EXTERNAL_URL=http://localhost:3000 and executing a POST to http://localhost:3000/api/v1/messaging/webhooks/empty_bot/teams
Screenshots
n/a
Environment (please complete the following information):
OS: Linux (docker)
Browser: n/a
Browser Version: n/a
Botpress Version: 12.30.9 to 12.31.0
NodeJS: n/a
Additional context
n/a
The text was updated successfully, but these errors were encountered:
Description
When running botpress on path (e.g.
EXTERNAL_URL=http://localhost:3000/some_path
), messaging endpoint for teams fails with 404 (e.g.POST http://localhost:3000/some_path/api/v1/messaging/webhooks/<bot-id>/teams
)To reproduce
Run botpress with a not empty root path:
Navigate to http://localhost:3000/botpress and create an admin
Create an empty bot named
empty_bot
, and configure teams channel:Try to post to
http://localhost:3000/botpress/api/v1/messaging/webhooks/empty_bot/teams
Expected behavior
Botpress should be able to resolve the given URL (in this case, should return 400 BAD REQUEST). To ilustrate, repeat the example but with
EXTERNAL_URL=http://localhost:3000
and executing a POST tohttp://localhost:3000/api/v1/messaging/webhooks/empty_bot/teams
Screenshots
n/a
Environment (please complete the following information):
Additional context
n/a
The text was updated successfully, but these errors were encountered: