Email Workers Playground error and dropped emails
When deploying to Email Workers with the wrangler CLI i get this error when simulating an email with the Email Trigger Simulator. There is just an message in the console with "Email Trigger not available to this worker" as seen in the Picture.
Also now when I send an email to the worker it get's dropped. I'm, using the message.reply() function so according to the documentation it should reply (which it does not) OR fail with an error thrown (which it also does not). Does anyone have experience with that? My code:
Also now when I send an email to the worker it get's dropped. I'm, using the message.reply() function so according to the documentation it should reply (which it does not) OR fail with an error thrown (which it also does not). Does anyone have experience with that? My code:
![No description](https://cdn.answeroverflow.com/1179144838650798140/image.png)
5 Replies
When using message.reply() it should work or throw an error: https://developers.cloudflare.com/email-routing/email-workers/reply-email-workers/
Reply to emails from Workers · Cloudflare Email Routing docs
You can reply to incoming emails with another new message and implement smart auto-responders programmatically, adding any content and context in the …
There are a few requirements but I pass them all
Yeah it's very new and is kinde buggy ig?
I'm using vanilla javascript with the wrangler CLI (as just in the dashboard the NPM dependencies do not work). According to documentation it's GA but very new
The Log also looks fine
![No description](https://cdn.answeroverflow.com/1179151132111667341/zO86WeK.png)
reply
should be awaited
When the promise resolves, the message is confirmed to be replied.
Jup this did the trick, I feel kinde stupid rn. (Cloudflare should probably change it in their documentation tho) Thank you so much