We just released a new useful free plugin that we’re using to track & log errors in our bubble apps. It’s been very helpful to us, so we decided to share it with you.
The plugin is essentially a bubble integration for sentry.io, so you’ll need to sign up there with a free account to start monitoring your bubble apps for errors.
Very cool! So this would pick up any and all Bubble errors? For example, if something from Postmark didn’t send because of an error, it would be shown on Sentry?
all errors that happen in the browser are picked up automatically. (anything that causes an error in your browser console)
for errors caused by backend workflows you have to send the error to sentry yourself, so it does mean that you need to know whether an error happened or not
the main way to do it with API calls is using the ‘include errors in response’ checkbox. then in the next step, you can check the result of the api call, and it will have a field has error
if that value is yes you should send the error to sentry using the Capture Server Error action, and pass in the error message.
for now, that’s how you can log errors in backend workflows.
in a future update we’re going to try and see if we can automatically report errors that happen in the backend workflows but that is a lot harder because we’ll have to do something weird like scraping the bubble logs.
Question on Capture Server Error for backend workflows:
This makes it seem like is this only used for external API calls that could potentially return an error, and not capable of capturing errors that happen within the backend workflows themselves, is that correct?
I’m trying to figure out how I can capture errors that occur in backend workflows.
we’re also looking into that but there is no built-in way to detect such errors unfortunately
one way we’re exploring is to see if it’s possible to scrape the server logs automatically and get errors via a regex there
this would require having to pass a username + password to the action that performs the scraping, so its not ideal but it might be the only way to do it
hey @johndurso i already added that in! should be in the latest release of the plugin
and yes there are so many missing things in the plugin ecosystem. since this one is free you can actually see the source code, but there is no way to do a PR (not in a way where you can test, there is a workaround tho)
I’m finally getting around to implementing the replay feature. I upgraded the plugin and there are no sessions being recorded, so I’m not sure what else to do. Is there some step I’m missing?
No, I haven’t figured this out yet. I’m not getting those same errors, Sentry just isn’t detecting that it’s set up, hence my question to @Kayami about whether I need to do anything else. He has said that’s ready to go and I have updated to the most recent version, but beyond that I’m not sure what else to do.
Our development team has investigated and removed the closing tag. They are currently working on updating the plugin demo page. We will notify you here as soon as the new update is released.
We appreciate your understanding and cooperation. If you have any other suggestions for improving our products, please feel free to reach out. We would be delighted to work closely with you.
Hi @nocodejordan, thanks for your question. In the following days, we will update you on the plugin functionality and any additional required information.
@ZeroqodeSupport Thank you for reporting the issue, the dev team will check if any fix is required.
In the meantime, if there are any plugin-related questions, please let us know