Open joelee1992 opened 6 months ago
Currently running in exactly the same issue. @joelee1992 did you find a solution to this problem?
It depends how you're running it locally: if with nuxt
(like younpm run dev/preview
), then your Pages app is running in node.js and this could be a node compat issue with Cloudflare's runtime (workerd); if with wrangler pages dev
(like npm run pages:dev
), then there is some other discrepancy with our local and deployed environments which we'll look to fix.
Can you confirm how you ran it locally please?
Also experiencing with SES
Edit: checking out https://github.com/cloudflare/workers-sdk/issues/2081
Which Cloudflare product(s) does this pertain to?
Pages
What version(s) of the tool(s) are you using?
3.17.1 [wrangler], 3.8.2 [nuxt], 8.0.6 [mailgun.js]
What version of Node are you using?
21.2.0
What operating system are you using?
Windows
Describe the Bug
I have a issue related to mailgun.js. I tried to send an email locally, and it works perfectly. However, on Cloudflare Page, it returns a status code 500 and an error message: 'Cannot convert object to primitive value.' Could you help me identify which part is causing the issue?
here is my code:
and here is my package.json
Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
No response