Email worker never sends my mail out

I did some stuff with AI workers and email workers fixed but i have a problem: My email is never sent my mail our. This is my wrangler.toml
name = "email-classification"
main = "src/index.ts"
compatibility_date = "2024-03-04"

node_compat = true

send_email = [
{name = "MAILS"},
]

d1_databases = [
{ binding = "STATISTICS", database_name = "mail_classification_stats", database_id = "a0165a55-ffa1-4b39-96bf-9118979c0f77" }
]

[vars]
MAXIMAL_NEGATIVE_SCORE = "60"

[ai]
binding = "AI"

[[kv_namespaces]]
binding = "EMAIL_ALLOCATIONS"
id = "bec1eaf6acf14936b088e68a6a3feb76"
name = "email-classification"
main = "src/index.ts"
compatibility_date = "2024-03-04"

node_compat = true

send_email = [
{name = "MAILS"},
]

d1_databases = [
{ binding = "STATISTICS", database_name = "mail_classification_stats", database_id = "a0165a55-ffa1-4b39-96bf-9118979c0f77" }
]

[vars]
MAXIMAL_NEGATIVE_SCORE = "60"

[ai]
binding = "AI"

[[kv_namespaces]]
binding = "EMAIL_ALLOCATIONS"
id = "bec1eaf6acf14936b088e68a6a3feb76"
2 Replies
SageSphinx63920
SageSphinx63920OP10mo ago
This is my corrent code: https://pastebin.com/ZDEFVmzi
Pastebin
import { Ai } from '@cloudflare/ai'import PostalMime from 'postal-m...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
SageSphinx63920
SageSphinx63920OP10mo ago
And this my debug log output:
⛅️ wrangler 3.32.0
-------------------
Successfully created tail, expires at 2024-03-09T03:03:04Z
Connected to email-classification, waiting for logs...
Email from:[email protected] to:[email protected] size:6327 @ 8.3.2024, 22:48:42 - Ok
(log) 0.00013044152001384646
(log) 0.9998695850372314
(log) [ '[email protected]' ]
(log) Sending message to [email protected]
(log) Try to send message to [email protected]
POST http://workers-binding.ai/run?version=2 - Ok @ 8.3.2024, 22:48:42
⛅️ wrangler 3.32.0
-------------------
Successfully created tail, expires at 2024-03-09T03:03:04Z
Connected to email-classification, waiting for logs...
Email from:[email protected] to:[email protected] size:6327 @ 8.3.2024, 22:48:42 - Ok
(log) 0.00013044152001384646
(log) 0.9998695850372314
(log) [ '[email protected]' ]
(log) Sending message to [email protected]
(log) Try to send message to [email protected]
POST http://workers-binding.ai/run?version=2 - Ok @ 8.3.2024, 22:48:42
The worker is stuck on the last await block in line 76 May not be the best code quality as i do not have much experience in js but it works i guess (expect the last part) Anyone? :( Still not working Please It’s not working Thanks for nothing Did it my own Really helpful here
Want results from more Discord servers?
Add your server