Bubble Errors - Send yourself an email
In this Bubble tutorial we demonstrate how you can hide the ugly browser alert errors from your Bubble app users and send yourself an email with the error code instead.
Tired of ugly browser alerts? Learn how to send yourself error emails in Bubble for smoother debugging.
Want to enhance user experience? Discover how to replace browser alerts with custom notifications in your Bubble app.
Struggling with error handling? Master the art of using unhandled error workflows to improve your Bubble app's reliability.
Enhancing Error Handling in Bubble
Instead of getting an ugly browser alert like this, wouldn't you rather Bubble send you an email with the error code and error message so that you can debug it and you don't annoy your users with ugly messages that look like they're full of coding jargon? In this Bubble tutorial video, I'm going to show you how to do that. We're going to trigger an email to be sent to myself when my Bubble app has an error like this. In this case, it's an OpenAI error.
Setting Up the Workflow
And so I'm going to click OK on that, close it down. And I can do this by adding in an unhandled error occurs workflow action. This is something that I think a lot of people overlook, but it's really powerful because just simply by having this workflow in place, it's going to stop that browser alert from showing up. And so then I just add in an action so I can add in the send email action, put my own email address in here, subject and body and embody. I can put in the error code and I can put in the error message.
Considerations for Sending Emails
And just a quick word on sending emails, transactional emails in particular with Bubble. First of all, this is happening on the front end. So if I put an email address in here, it needs to be one that I'm happy that if one of my users really dug in with the browser developer tools, they would be able to access it. It's not going to be kept private. They can see it because this is happening in a front end workflow. Also make sure that this workflow action depends on you having the Sengrid API key set up in your settings tab in your Bubble account. If you've not set up the Sengrid API, then you'll need to set up an alternative transaction email provider. And we've got videos covering all of that.
Additional User Experience Considerations
Last thing, in a separate video, you're going to want to add something else in here because at the moment, this is just basically hiding the error from the user and then sending you an email. They're still going to encounter whatever issue is. So in the case that I demonstrated at the start of this video, my OpenAI key has been deleted. OpenAI API key has been deleted. And so my ChatGPT clone isn't going to work. So I suggest that you show them some sort of alerts and you can check out our videos about host notifications to find out how to do that.
Further Learning Resources
And if you're looking for more ways to learn Bubble, look no further than planetnocode.com because you'll find videos there that you cannot find on YouTube. We've got hundreds of Bubble tutorial videos just like this one, ready to accelerate your development journey.
Get the Complete Bundle for Just $99
Access 3 courses, 390+ tutorials, and a vibrant community to support every step of your app-building journey.
Start building with total confidence
No more delays. With 30+ hours of expert content, you’ll have the insights needed to build effectively.
Find every solution in one place
No more searching across platforms for tutorials. Our bundle has everything you need, with 390+ videos covering every feature and technique.
Dive deep into every detail
Get beyond the basics with comprehensive, in-depth courses & no code tutorials that empower you to create a feature-rich, professional app.
Save over 70%!
Valued at $80
Valued at $85
Valued at $30
Valued at $110
Valued at $45
Can't find what you're looking for?
Search our 300+ Bubble tutorial videos. Start learning no code today!
Have questions?
We have answers!
Find answers to common questions about our membership plans, programs, and more.
We're here to help you launch your no code SaaS. Reach out to the team and we'll double check our vast library for useful content. We'll advise you on how we'd tackle the same problem and there's a good chance we'll record the video to help the wider community.
As a Planet No Code member, you'll receive a discount on our Bubble coaching sessions. Monthly members receive a 10% discount, while Annual members receive a 17.5% discount. To redeem your discount, simply log into your account and book a coaching session through our platform.
Our 8-week intensive mentorship program is designed to provide personalized guidance and support to help you accelerate your startup journey. You'll be matched with a startup expert who will work with you one-on-one to set goals, overcome challenges, and make rapid progress.
To apply for the Mastery Program, simply click the "Request Invitation" button on our pricing page and fill out the application form. Our team will review your application and schedule a call with you to discuss your goals and determine if the program is a good fit for your needs.
We accept all major credit cards, including Visa, Mastercard, American Express, and Discover.
While we don't offer a free trial, we do provide a 14-day money-back guarantee. If you're not completely satisfied with your membership within the first 14 days, simply contact our support team, and we'll issue a full refund.