This Week's Trending
This Month's Trending
Hey fellow devs,
This is my first post in this awesome community, and I’m excited to share my project with you all. As a newbie, I’d lov...
New
This Year's Trending
In case I need to build a JSON API is Phoenix overkill? I don’t quite like the way Phoenix is structured, it remembers me a lot Rails, an...
New
Hello,
I have a phoenix app that serves user requests by fetching data from a storage backend and stream them to the client, taking sele...
New
Hello, :slight_smile:
I’d be interested in various examples of basic monitoring in the context of a handler on a web server built with B...
New
Hello,
TL;DR: is it OK in elixir to pass large (MBytes) binary strings through function parameters ? If not, what would be a clean way t...
New
I found How can I add a custom header to my error pages?, which showed me Plug.ErrorHandler — Plug v1.20.2.
The general advice is to kee...
New
good day folks !
I’m writing a small custom plug with plain elixir and I’m with a small pickle I’m not sure how to tackle. Turns I have ...
New
Last Three Year's Trending
I have an Elixir application that uses Phoenix for the interface. This application has a contact form that needs to be embedded in other ...
New
Here is the setting:
Say we have a ressource User which has a Ecto.UUID as primary key.
@primary_key {:id, Ecto.UUID, autogenerate: ...
New
Hello, Im having issue, having multiple layouts.
Layouts for Admin (System Access / Portal / Data Management)
Layouts for Login / Regis...
New
Hi everyone. I’m trying to fetch the body of a post request and I keep getting Plug.Conn.Unfetched
This is what I have in my route handl...
New
UPDATE:
I originally forgot to mention that my MainPlug is a Plug.Router. I only realized it while responding to Overmind, below. I’ve n...
New
I am building a simple http server using Plug.Cowboy (no Phoenix pls!) to serve a json API for a customer. A microservice.
The problem ...
New
I am implementing Server Sent events in a phoenix project. This is easy enough to do by using plug directly. I am following this gist.
H...
New
I’m developing a Hex package that provides a set of LiveView routes mounted from the router via live '/path', LiveViewName, session: [:bl...
New
I can’t seem to pass an anonymous function as an option to a Plug. I am using plug_hmouse which from the documentation takes an option di...
New
TL;DR
I want to be able to do something like raise Plug.HTTPError, plug_status: 501, message: "Some optional message" so that I can easil...
New
Does anyone know any good example of web applications without Phoenix? I think Elixir is so damn simple, but every time I create a Phoeni...
New
Sup guys.
I’m running into a problem and doubt, I need to create a Plug that runs after the Router, basically, I have a controller that ...
New
:waving_hand:t3:
I want to understand the reason of constructing an improper list usage in the elixir-plug repository, Line 256
First ...
New
I know Phoenix has mix phx.routes and Phoenix.Router.routes(), but I’ve been researching for a bit and couldn’t find any information or p...
New
Hey,
is there a way to configure Plug.Static at runtime (right after boot)?
I have a usecase where the location of the files and the de...
New
Trending Over Three Years
Hi,
I’ve written a plug that checks if the user has privileges. If it doesn’t it returns:
defp allow_superusers(_, conn) do
conn
|&...
New
hello, I need to add some Map in phoenix conn’s params in Plug
for example :
def init(_params) do
end
def call(%Plug.Conn{params: %...
New
Hi, to begin with, I am new to elixir/phoenix (:slight_smile: disclaimer)
For what has already been discussed in this thread:
Benchmark...
New
Hey besically the title says it,
I am trying to send a file to my elixir api and, i just noticed that in the router it has this plug: ...
New
Say I have a controller like so.
def create_pass_reset(conn, %{"user" => %{"email" => email}}) do
case Accounts.reset_pass(e...
New
let say i have routes like follow
web routes:
http://localhost:4000/department/:id/show
http://localhost:4000/department/:dept_id/user...
New
I am trying to use the Router file to redirect all users to the login page if they are not logged in and I figured I could do that by usi...
New
Hi, I’m having a Phoenix issue. I am testing a plug I wrote that calls get_session/2 at one point in order to fetch a value stored in a s...
New
I’m writing a Plug which verifies a signature in the header of a request. The signature is the SHA256 HMAC hash of the request body signe...
New
Let’s say I want to put a flash message, a session item, and redirect the user. Here’s my code:
conn
|> put_flash(:info, "Login succe...
New
I have the following routes
get "/locations", LocationsController, :show
get "/locations/add", LocationsController, :add
pos...
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
I am getting closer to putting my Elixir backend API in production and have a question about logging. Currently when a 500 error occurs i...
New
I have a question about getting consistent access to the Request Body in Plug.
According to the documentation for Plug.Conn.read_body th...
New
Hello Everyone,
I am working on a small Phoenix/Ecto project. One of the features of this application is going to be that people can upl...
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
- #elixirconf
- #exunit
- #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
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








