Worker with async Promises throws “This script will never generate a response.”

Hi, I have the following script hosted on a worker. When I send a HTTP POST request to /api/log with entries to log, I get an error from Cloudflare that the script will never generate a response.

I am using a KV namespace for the worker code. The idea is to be able to write logs that I can use to communicate between platforms.
Was this page helpful?