ycv005
Why getting get_session error when using put_session? See this screenshot. I am modifying the conn in my job_view.ex file. Also, could I change the conn variable anywhere like(view, controller, model or more).?
Trending in Questions
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
Hello,
I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
Hi everyone,
I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding.
I sta...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
I’m new to elixir and just tried to install the elixirLS extension for VScode(ium) and it is throwing some errors that I would like help ...
New
Other Trending Topics
Edit: 2026 May 15 - This post is archived.
Mob is alive!!
Main docs: mob v0.7.11 — Documentation
A bit of explanation for the slightly c...
New
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #ai
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #elixirconf-eu
- #metaprogramming
- #hex











Showing Posts 1 to 8- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
peerreynders
It makes more sense to copy the full error text into your topic - as it is most of the pertinent information is missing from the image you linked to.
The only useful bit of information is
I suspect that it fails here:
https://github.com/elixir-plug/plug/blob/v1.8.2/lib/plug/conn.ex#L1590-L1597
which suggests that the
connargument you pass isn’t actually a%Plug.Conn{}struct (though it would seem odd that it gets passedconn.private).Though additional error information may give some more insight.
From the limited information on the screenshot I’m not necessarily convinced that the error originates from the code you show (again the relevant error information is missing) - given how IO works, position of errors relative to
IO.putsoutput isn’t necessarily a reliable indicator of the actual location of where the error occurs.Unrelated -
put_session/3:So
"share_job_opening_description"as a key would be clearer than:share_job_opening_description(which is converted to the string anyway).ycv005
I think, actually, it is a socket (full screenshot). So, I may conclude that conn is my socket. Inspect conn before any modification, following things I get
So, How can I modify the “share_job_opening_description”?
benwilson512
@ycv005 In the future please copy and paste the actual text instead of using screenshots. If we want to highlight important text it forces us to type it by hand.
You can’t modify the session from a live view right now. It’s probably possible in theory, since javascript is allowed to change cookies, but phoenix would have to create hooks for it.
ycv005
Thanks will keep in mind about the code snippet.
But I can use the assign
Getting Error-
undefined function assign/2benwilson512
Two things:
conn |> assign(: share_job_opening_description, job_opening.name)ycv005
Used your code
conn = assign(conn, :share_job_opening_description, job_opening.name). Getting error-undefined function assign/3.peerreynders
My impression was that we are dealing with a liveview socket
assign/2,assign/3to workuse Phoenix.LiveViewis necessary@ycv005:
The bigger question is: to what end are you doing this? What greater objective are you trying to accomplish?
Because right now this feels like an XY Problem.
benwilson512
Please show the full module that this is in.