This Week's Trending
This Month's Trending
This Year's Trending
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
In Ecto programming, could this be described as an anti-pattern?
# Database operation
Repo.some_operation(...)
rescue
error ->
...
New
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
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
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
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
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
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
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
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
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
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
I am using AshAuthentication and exposing some of its derived functions to my GraphQL API in a similar fashion to the discussions here.
...
New
I’ve been using generic actions lately but when they need to return {:error, whatever} things go a bit haywire. Remembering something abo...
New
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
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
I’m experimenting with handling custom errors in Phoenix.
I’ve defined a custom error, MyApp.NotFoundError which implements Plug.Excepti...
New
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
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
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
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
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
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
Hi everyone,
I am trying to use Ecto.insert, and i have the following error :
[error] #PID<0.416.0> running GORprojectWeb.Endpoin...
New
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
In a with case, with many operations, how can i individually handle errors?
New
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
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
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
What happens: User opens LiveView page and clicks a button. LiveView handle_event calls a function that crashes. LiveView restarts. User ...
New
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
Function:
def delete_single_record(table_name, key, identifier) do
Repo.transaction(fn ->
selected_record =
from(record in tabl...
New
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
I’m wondering if anyone has any educational (i.e. simplified) examples that demonstrate best practices when it comes to handling bad requ...
New
Today I found myself writing the following piece of code source in context:
def from_list(other_users_json_list) do
other_user...
New
Latest on Elixir Forum
Get money off!
The Pragmatic Bookshelf
35% off any eBook
Manning Publications
45% off any item
ElixirCasts
10% off for life
The Pragmatic Studio
20% off any course
AppSignal
10% off for 12 months
Honeybadger
10% off for 12 months
Simply use coupon code "devtalk.com" or "elixirforum" at checkout!
Filter by Type:
Sub Categories:
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #exunit
- #elixirconf
- #discussion
- #javascript
- #podcasts
- #code-sync
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #api
- #processes
- #forms
- #metaprogramming
- #security
- #performance
- #hex







