Worker with Slash-Up Discord Slash Commands Failing

I am currently using slash-create with Cloudflare Workers to integrate Discord Slash commands. I'm getting the below error when I attempt to add the integration on Discord's side.

A hanging Promise was canceled. This happens when the worker runtime is waiting for a Promise from JavaScript to resolve, but has detected that the Promise cannot possibly ever resolve because all code and events related to the Promise's I/O context have already finished.
✘ [ERROR] Uncaught (in response) Error: The script will never generate a response.


This all works in local mode, but not on the worker itself (or outside of local mode). I've made some modifications to the boilerplate to get it to run properly. But I never thought to check outside of local mode when I was originally setting up. Happy to share my project if anyone wants to take a look šŸ™‚

Source is here: https://github.com/TristanWiley/procity-slash-commands

Relevant code is most likely in src/shim/servers/cfworker.ts and src/shim/creator.ts. This is where I've been looking. Unfortunately this is code I did not write and are a part of the library itself, however probably outdated a bit.
GitHub
Contribute to TristanWiley/procity-slash-commands development by creating an account on GitHub.
Was this page helpful?