This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

jberling
First, sorry if this has already been asked in other topics. I couldn’t find it, but I would guess it’s a common thing to handle. Let’s ...
New
dogweather
In Ecto programming, could this be described as an anti-pattern? # Database operation Repo.some_operation(...) rescue error -> ...
New
rhcarvalho
I found How can I add a custom header to my error pages?, which showed me Plug.ErrorHandler — Plug v1.18.1. The general advice is to kee...
New
marcuslankenau
Hi, I’m currently in the process of rewriting our React app to LiveView. So far, everything is working well, but I’ve run into an issue....
New
NobbZ
We recently had an authentification problem with an external service, and it went unnoticed, because we returned the clients return value...
New

Last Three Year's Trending Top

binarypaladin
In my total experience with LiveView, something that’s either a matter or personal ignorance or just problematic with how it works is gen...
New
sharkmyster
I’m using an adjacency list to store a hierarchy of categories. There can be many root categories each with many children/descendants. d...
New
willc0de4food
Hello! I have a hidden input and I’m using buttons to set it’s value. The default value for this field is nil. If a user doesn’t select o...
New
marschro
Hi everyone, I have implemented a file upload with live view. I follow pretty much the basics, except of having a custom upload-writer....
New
axelson
Does a local error tracking/notification library exist? I’m looking for one that will handle local errors (preferably via sasl as well as...
New
imhimansu28
I have been using Django before this. Out-of-box, Django emails the admins in case of any errors. The email contain the full traceback al...
New
japhib
We’re in the process of adding additional error logging for unhandled exceptions in a Phoenix application. One of the issues we’re experi...
New
zorn
I am using AshAuthentication and exposing some of its derived functions to my GraphQL API in a similar fashion to the discussions here. ...
New
spacebat
I’ve been using generic actions lately but when they need to return {:error, whatever} things go a bit haywire. Remembering something abo...
New
rbino
Some context to avoid the XY Problem: I’m trying to expose some state which lives in an external API as a resource field. Let’s say I ha...
New
pmjoe
The {:error, _} is quite common and used everywhere, but what this is telling me is that an error happened, and nothing more. Errors usua...
New
adamu
I’m experimenting with handling custom errors in Phoenix. I’ve defined a custom error, MyApp.NotFoundError which implements Plug.Excepti...
New
krishna_vaguelyright
How to handle errors centrally? In my local instance, it throws the error with proper error codes. On prod deployed to fly, it just thro...
New
franzin
Hello everyone! I hope you’re all doing well. I’m new to the world of Elixir, and recently I decided to create an SDK (I’ll share more d...
New
Cabfee
I’m learning Phoenix and developing a small app that serves both HTML and JSON content. I’m able to render the controller response based ...
New

Trending Over Three Years Top

verkhovin
Hi guys! Want to open here another discussion about error handling concepts in Elixir because it looks like I really stuck here by mysel...
New
thousandsofthem
ErrorView which is used to handle errors doesn’t provide conn or stuff like that. Is there a way to attach layout anyway? Showing 404 err...
New
dimitarvp
I’m looking into returning JSON errors from an API app. I know the specs dictate you must always return HTML on certain error codes but I...
New
Shenrak
Hi everyone, I am trying to use Ecto.insert, and i have the following error : [error] #PID<0.416.0> running GORprojectWeb.Endpoin...
New
kif
I’m struggling with the fact that I don’t see stack trace in my production app log. I’m getting 500 Internal Server Error response. I t...
New
pmjoe
In a with case, with many operations, how can i individually handle errors?
New
pavancse17
Hey Devs, I have been using Oban — Oban v2.5.0 (hexdocs.pm) in one of my phoenix application. My requirement is like when job fails afte...
New
hubertlepicki
So I kind of knew of this behavior and I stumbled upon it before but actually I am not sure what is the best way to solve / debug the iss...
New
venkatd
I have some code that allows me to run a series of functions. I currently surround the execution itself by a try-catch because I don’t wa...
New
Athunnea
What happens: User opens LiveView page and clicks a button. LiveView handle_event calls a function that crashes. LiveView restarts. User ...
New
Papillon6814
Hello. I’m a beginner programmer from Japan. I’m in trouble of handling error… auth_controller.ex def signup(conn, params) do url...
New
Maxximiliann
Function: def delete_single_record(table_name, key, identifier) do Repo.transaction(fn -> selected_record = from(record in tabl...
New
marcin
I’m implementing a controller that schedules a background job and returns. The job itself is implemented as a GenServer Foo. I wanted t...
New
fireproofsocks
I’m wondering if anyone has any educational (i.e. simplified) examples that demonstrate best practices when it comes to handling bad requ...
New
Qqwy
Today I found myself writing the following piece of code source in context: def from_list(other_users_json_list) do other_user...
New
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement