Here is the console.error(err) I get server-side:
Continued:
"cookie": "REDACTED",
"dnt": "1",
"host": "example.com",
"origin": "https://example.com",
"priority": "u=1, i",
"referer": "https://example.com/",
"sec-ch-ua": "\"Google Chrome\";v=\"137\", \"Chromium\";v=\"137\", \"Not/A)Brand\";v=\"24\"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "\"Windows\"",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "same-origin",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36",
"x-forwarded-for": "----:----:----:----:----:----:----:----",
"x-forwarded-proto": "https",
"x-real-ip": "unix:"
},
"cf": {
"requestHeaderNames": {},
"httpProtocol": "HTTP/2",
"tlsCipher": "",
"verifiedBotCategory": "",
"continent": "--",
"asn": 7922,
"clientAcceptEncoding": "gzip, br",
"tlsClientExtensionsSha1": "",
"isEUCountry": false,
"longitude": "-----",
"tlsClientCiphersSha1": "",
"tlsClientHelloLength": "",
"tlsClientAuth": {
"certIssuerDNLegacy": "",
"certIssuerSKI": "",
"certSubjectDNRFC2253": "",
"certSubjectDNLegacy": "",
"certFingerprintSHA256": "",
"certNotBefore": "",
"certSKI": "",
"certSerial": "",
"certIssuerDN": "",
"certVerified": "NONE",
"certNotAfter": "",
"certSubjectDN": "",
"certPresented": "0",
"certRevoked": "0",
"certIssuerSerial": "",
"certIssuerDNRFC2253": "",
"certFingerprintSHA1": ""
},
"cookie": "REDACTED",
"dnt": "1",
"host": "example.com",
"origin": "https://example.com",
"priority": "u=1, i",
"referer": "https://example.com/",
"sec-ch-ua": "\"Google Chrome\";v=\"137\", \"Chromium\";v=\"137\", \"Not/A)Brand\";v=\"24\"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "\"Windows\"",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "same-origin",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36",
"x-forwarded-for": "----:----:----:----:----:----:----:----",
"x-forwarded-proto": "https",
"x-real-ip": "unix:"
},
"cf": {
"requestHeaderNames": {},
"httpProtocol": "HTTP/2",
"tlsCipher": "",
"verifiedBotCategory": "",
"continent": "--",
"asn": 7922,
"clientAcceptEncoding": "gzip, br",
"tlsClientExtensionsSha1": "",
"isEUCountry": false,
"longitude": "-----",
"tlsClientCiphersSha1": "",
"tlsClientHelloLength": "",
"tlsClientAuth": {
"certIssuerDNLegacy": "",
"certIssuerSKI": "",
"certSubjectDNRFC2253": "",
"certSubjectDNLegacy": "",
"certFingerprintSHA256": "",
"certNotBefore": "",
"certSKI": "",
"certSerial": "",
"certIssuerDN": "",
"certVerified": "NONE",
"certNotAfter": "",
"certSubjectDN": "",
"certPresented": "0",
"certRevoked": "0",
"certIssuerSerial": "",
"certIssuerDNRFC2253": "",
"certFingerprintSHA1": ""
},
Continued:
UPDATE: I have identified the issue as the fact that Cloudflare Workers don't run in a full node environment, and thus they don't support certain dependencies in the "form-data" library. After refactoring my formHandler to make a fetch call to Mailgun's api directly rather than using the mailgun.js and form-data libraries, the issue was resolved on my deployed website.