Janus
Janus
WWasp-lang
Created by 7Nic on 7/24/2024 in #🙋questions
Network error on Sign up after deploy on Fly.io
Quite easy! The links you shared were really helpful 👍 Thanks again!
21 replies
WWasp-lang
Created by 7Nic on 7/24/2024 in #🙋questions
Network error on Sign up after deploy on Fly.io
Thanks @sodic! It worked for me 😉
21 replies
WWasp-lang
Created by 7Nic on 7/24/2024 in #🙋questions
Network error on Sign up after deploy on Fly.io
Thanks, @sodic for the clear explanation! I have a follow-up question: how can I apply this to a subdomain, such as https://www.voxgen.net ? Is it possible to add an additional WASP_WEB_CLIENT_URL environment variable for this purpose?
21 replies
WWasp-lang
Created by CamBlackwood on 6/5/2024 in #🙋questions
Issues with MailGun
Thank you very much for the explanation! It finally worked perfectly for me 🙂
30 replies
WWasp-lang
Created by CamBlackwood on 6/5/2024 in #🙋questions
Issues with MailGun
Thanks for your support and help @miho 🙂 But I’m still having the same issue. I adapted your setup for my contact form where I want to use emailSender, but I'm still getting the same error that @CamBlackwood mentioned.

const handleSubmit = async (event: React.FormEvent) => {
event.preventDefault();

try {
const result = await emailSender.send({
from: {
name: "App Test",
},
subject: "Test email",
text: "Hello, this is a test email.",
html: "<h1>Hello, this is a test email.</h1>",
});
console.log("Email sent, result:", result);
setFormStatus('Email sent successfully');
} catch (error) {
console.error("Failed to send email:", error);
setFormStatus('Failed to send email');
}
};

const handleSubmit = async (event: React.FormEvent) => {
event.preventDefault();

try {
const result = await emailSender.send({
from: {
name: "App Test",
},
subject: "Test email",
text: "Hello, this is a test email.",
html: "<h1>Hello, this is a test email.</h1>",
});
console.log("Email sent, result:", result);
setFormStatus('Email sent successfully');
} catch (error) {
console.error("Failed to send email:", error);
setFormStatus('Failed to send email');
}
};

TypeError: Cannot read properties of undefined (reading '__agent_base_https_request_patched__')
at ../../../node_modules/proxy-agent/node_modules/agent-base/patch-core.js (ts-mailgun.js?v=83a55432:819:23)
at __require2 (chunk-PLDDJCW6.js?v=83a55432:17:50)
at ../../../node_modules/proxy-agent/node_modules/agent-base/index.js (ts-mailgun.js?v=83a55432:3853:5)
at __require2 (chunk-PLDDJCW6.js?v=83a55432:17:50)
at ../../../node_modules/proxy-agent/index.js (ts-mailgun.js?v=83a55432:36813:17)
at __require2 (chunk-PLDDJCW6.js?v=83a55432:17:50)
at ../../../node_modules/mailgun-js/lib/request.js (ts-mailgun.js?v=83a55432:38920:22)
at __require2 (chunk-PLDDJCW6.js?v=83a55432:17:50)
at ../../../node_modules/mailgun-js/lib/mailgun.js (ts-mailgun.js?v=83a55432:41613:19)
at __require2 (chunk-PLDDJCW6.js?v=83a55432:17:50)

TypeError: Cannot read properties of undefined (reading '__agent_base_https_request_patched__')
at ../../../node_modules/proxy-agent/node_modules/agent-base/patch-core.js (ts-mailgun.js?v=83a55432:819:23)
at __require2 (chunk-PLDDJCW6.js?v=83a55432:17:50)
at ../../../node_modules/proxy-agent/node_modules/agent-base/index.js (ts-mailgun.js?v=83a55432:3853:5)
at __require2 (chunk-PLDDJCW6.js?v=83a55432:17:50)
at ../../../node_modules/proxy-agent/index.js (ts-mailgun.js?v=83a55432:36813:17)
at __require2 (chunk-PLDDJCW6.js?v=83a55432:17:50)
at ../../../node_modules/mailgun-js/lib/request.js (ts-mailgun.js?v=83a55432:38920:22)
at __require2 (chunk-PLDDJCW6.js?v=83a55432:17:50)
at ../../../node_modules/mailgun-js/lib/mailgun.js (ts-mailgun.js?v=83a55432:41613:19)
at __require2 (chunk-PLDDJCW6.js?v=83a55432:17:50)
It's weird because Mailgun integration works perfectly for user registration verification 🤔 Any ideas on what might be wrong? Thanks again! 🙏
30 replies
WWasp-lang
Created by CamBlackwood on 6/5/2024 in #🙋questions
Issues with MailGun
Hi! I'm facing the same issue as @CamBlackwood Any updates in this regard? Thanks in advance! @kapa.ai
30 replies