This Week's Trending Top

This Month's Trending Top

beltrewilton
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 Top

pmjoe
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
jschaeff
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
achenet
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
jschaeff
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
rhcarvalho
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
unaware8150
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 Top

BillBryson
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
mbaeuerle
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
jstone
Hello, Im having issue, having multiple layouts. Layouts for Admin (System Access / Portal / Data Management) Layouts for Login / Regis...
New
sijibomi
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
tompave
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
quda
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
Crowdhailer
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
SophieDeBenedetto
I’m developing a Hex package that provides a set of LiveView routes mounted from the router via live '/path', LiveViewName, session: [:bl...
New
notexactlyawe
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
arcanemachine
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
pmjoe
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
whoiswentz
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
iamacube
:waving_hand:t3: I want to understand the reason of constructing an improper list usage in the elixir-plug repository, Line 256 First ...
New
hawkyre
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
Phillipp
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 Top

adrian
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
shahryarjb
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
JuanjoA
Hi, to begin with, I am new to elixir/phoenix (:slight_smile: disclaimer) For what has already been discussed in this thread: Benchmark...
New
benonymus
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
polypush135
Say I have a controller like so. def create_pass_reset(conn, %{"user" => %{"email" => email}}) do case Accounts.reset_pass(e...
New
hariharasudhan94
let say i have routes like follow web routes: http://localhost:4000/department/:id/show http://localhost:4000/department/:dept_id/user...
New
ZastrixArundell
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
KikisBomb
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
wfgilman
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
nahiyan
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
david234
I have the following routes get "/locations", LocationsController, :show get "/locations/add", LocationsController, :add pos...
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
wfgilman
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
LeakyBucket
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
Qqwy
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
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement