I have mee stubbornly fighting this error on a Cloudflare Workers Slack app for over 5 hours :(

I could use some help. I'm experiencing a very frustrating error at the moment that I can't seem to find any documentation or a source for. All I'm getting in the Cloudflare Logs for my Slack app is:
Failed to authorize (error: SlackAPIError: Failed to call auth.test due to not_authed: {"ok":false,"error":"not_authed","headers":{}}, query: {"isEnterpriseInstall":false,"teamId":"T07TRN2EE85","userId":"U07TUHW4NPL"})",
Failed to authorize (error: SlackAPIError: Failed to call auth.test due to not_authed: {"ok":false,"error":"not_authed","headers":{}}, query: {"isEnterpriseInstall":false,"teamId":"T07TRN2EE85","userId":"U07TUHW4NPL"})",
Which doesn't tell me anything, because essentially copying the example from the slack-edge documentation exactly. The only thing I've been thinking that could be an issue is that apparently Slack doesn't respect JSON? This might be an old issue but apparently in 2017, the WebAPI doesn't support application/json. And I'm finding issues about this error up until 2024 that essentially just say the token isn't being passed. The problem is that the docs for the slack-cloudflare-workers docs don't say anything about special issues you may run into passing the token, and just give a barebones example. The error I also get on the webpage is this:
Please try again from here or contact the app owner (reason: The state parameter is missing or invalid)
Please try again from here or contact the app owner (reason: The state parameter is missing or invalid)
So something isn't getting passed, I just can't figure out what, and if it's a quirk of being an edge SDK or if it's something I messed up. Currently I only have set this URL set up as my redirect URL in the dashboard: - https://[redacted].workers.dev/slack/oauth_redirect And the events are getting the challenge param fine, so that's ok, but something is not letting me auth and install. References: https://github.com/slack-edge/slack-cloudflare-workers/blob/main/docs/oauth_app.md https://stackoverflow.com/questions/42009076/slack-webapi-fails-with-not-authed https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX00000KhkXH0AZ
GitHub
slack-cloudflare-workers/docs/oauth_app.md at main · slack-edge/sla...
Slack app development framework for Cloudflare Workers - slack-edge/slack-cloudflare-workers
Stack Overflow
Slack WebAPI fails with not_authed
I'm attempting to post interactive messages to slack as a Bot User (using chat.postMessage, etc). Although I am passing in the Bot Access Token (as received from the initial OAuth) I keep getting an
Trailhead
Trailhead, the fun way to learn Salesforce
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?