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
{{ message }}
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
Unable to pass the handshake with the following response on the UI:
Upon further inspection it appears that the server is responding with the wrong Content-Type: text/html rather than the text/plain, application/x-www-form-urlencoded or application/json which are the three response types suggested by the slack documentation . I initially thought that ngrok was perhaps suspect, modifying the response somehow:
But a curl request shows that this is an issue even when the request is sent locally:
curl http://localhost:3000/api/messages -H 'Content-Type: application/json' -H 'Accept: application/json' --data '{"token":"foobar","challenge":"hi its me","type":"url_verification"}' -v
* Trying ::1:3000...
* Connected to localhost (::1) port 3000 (#0)
> POST /api/messages HTTP/1.1
> Host: localhost:3000
> User-Agent: curl/7.77.0
> Accept: */*
> Content-type: application/json
> Content-Length: 68
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< X-Powered-By: Express
< Content-Type: text/html; charset=utf-8 < ---- this should be text/plain
< Content-Length: 9
< ETag: W/"9-6860Vqr68AiYT0YZ1EVysp65QG4"
< Date: Tue, 01 Feb 2022 21:10:20 GMT
< Connection: keep-alive
< Keep-Alive: timeout=5
<
* Connection #0 to host localhost left intact
hi its me
I believe that this issue can be resolved by responding to this specific request in the proper format.
What did you expect?
To be able to pass the url_verification handshake for events subscription
Screenshots and animated GIFs
Context:
Botkit version: 4.10.0
Messaging Platform: slack
Node version: v10.16.3
Os: macos-montorey
Any other relevant information:
The text was updated successfully, but these errors were encountered:
Thank you for this bug report. I just published 4.15.0 of this adapter which should resolve this issue. Please let me know if you have continued problems.
Are you sure this is an issue with the Botkit core module?
It could be resolved by slack or botkit however it may be able to be more easily resolved in botkit.
What are you trying to achieve or the steps to reproduce?
I am trying to subscribe a botkit bot to events from slack
npm install -g yo generator-botkit && yo botkit
npm start
BOT_TOKEN
,SIGNING_SECRET
andVERIFICATION_TOKEN
npx ngrok http 3000
What was the result you received?
Unable to pass the handshake with the following response on the UI:
Upon further inspection it appears that the server is responding with the wrong Content-Type:
text/html
rather than thetext/plain
,application/x-www-form-urlencoded
orapplication/json
which are the three response types suggested by the slack documentation . I initially thought that ngrok was perhaps suspect, modifying the response somehow:But a curl request shows that this is an issue even when the request is sent locally:
I believe that this issue can be resolved by responding to this specific request in the proper format.
What did you expect?
To be able to pass the
url_verification
handshake for events subscriptionScreenshots and animated GIFs
Context:
4.10.0
slack
v10.16.3
macos-montorey
The text was updated successfully, but these errors were encountered: