jamilabreu
Error in logs after job completion with vector embedding field
Claude seems to think this is an Oban issue, posting here to ask!
When inserting an embedding with a vector (pgvector) column, the job completes but I’m seeing this in the logs:
INSERT INTO "embeddings" ("type","text","node_id","vector","id","inserted_at","updated_at") VALUES ($1,$2,$3,$4,$5,$6,$7) [:identity, "[vector text here]", "01977d67-1d42-7673-b4f2-ef5037c61148", #Inspect.Error<
got FunctionClauseError with message:
"""
no function clause matching in Inspect.Algebra.concat/2
"""
while inspecting:
%{
data: <<6, 0, 0, 0, 61, 10, 101, 30, 61, 171, 249, 31, 185, 223, 79, 87, 61,
71, 135, 151, 188, 157, 18, 123, 188, 149, 159, 41, 188, 249, 7, 131, 59,
247, 101, 120, 60, 194, 83, 21, 189, 3, 220, 243, 60, 122, 221, 207, 60,
107, 90, 103, 188, 189, 239, 151, 188, 166, 39, 216, 61, 7, 33, 8, 60, 148,
49, 96, 188, 102, 220, 201, 189, 58, 119, 64, 60, 23, 143, 150, 188, 51,
239, 20, 61, 4, 200, 25, 59, 80, 26, 81, 188, 180, 192, ...>>,
...
}
Stacktrace:
(elixir 1.19.0-rc.0) lib/inspect/algebra.ex:697: Inspect.Algebra.concat({{:doc_group, [["[" | {:doc_nest, [["0.033787839114665985" | ","], {:doc_break, " ", :flex}, ["0.08397125452756882" | ","], {:doc_break, " ", :flex}, ["-4.259298730175942e-4" | ","], {:doc_break, " ", :flex}, ["0.04871329292654991" | ","], {:doc_break, " ", :flex}, ["-0.01917385123670101" | ","], {:doc_break, " ", :flex}, ["-0.018264370039105415" | ","], {:doc_break, " ", :flex}, ["-0.03039908967912197" | ","], {:doc_break, " ", :flex}, ["0.007549937814474106" | ","], {:doc_break, " ", :flex}, ["0.023721257224678993" | ","], {:doc_break, " ", :flex}, ["-0.0321931354701519" | ","], {:doc_break, " ", :flex}, ["0.01531167235225439" | ","], {:doc_break, " ", :flex}, ["0.014364815317094326" | ","], {:doc_break, " ", :flex}, ["-0.02318553440272808" | ","], {:doc_break, " ", :flex}, ["-0.020282670855522156" | ","], {:doc_break, " ", :flex}, ["0.032990485429763794" | ","], {:doc_break, " ", :flex}, ["0.01808995008468628" | ","], ...], ...}] | "]"], :normal}, %Inspect.Opts{base: :decimal, binaries: :infer, char_lists: :infer, charlists: false, custom_options: [], inspect_fun: &Inspect.inspect/2, limit: 0, pretty: false, printable_limit: 4096, safe: true, structs: true, syntax_colors: [], width: 80}}, ")")
(elixir 1.19.0-rc.0) lib/inspect/algebra.ex:1095: Inspect.Algebra.fold/2
(elixir 1.19.0-rc.0) lib/inspect/algebra.ex:376: Inspect.Algebra.to_doc_with_opts/2
(elixir 1.19.0-rc.0) lib/inspect/algebra.ex:561: Inspect.Algebra.call_container_fun/3
(elixir 1.19.0-rc.0) lib/inspect/algebra.ex:538: Inspect.Algebra.container_each/5
(elixir 1.19.0-rc.0) lib/inspect/algebra.ex:514: Inspect.Algebra.container_doc_with_opts/6
(elixir 1.19.0-rc.0) lib/inspect/algebra.ex:428: Inspect.Algebra.to_doc_with_opts/2
(elixir 1.19.0-rc.0) lib/inspect/algebra.ex:359: Inspect.Algebra.to_doc/2
(elixir 1.19.0-rc.0) lib/kernel.ex:2469: Kernel.inspect/2
(ecto_sql 3.12.1) lib/ecto/adapters/sql.ex:1326: Ecto.Adapters.SQL.log_iodata/7
(logger 1.19.0-rc.0) lib/logger.ex:1008: Logger.__do_log__/4
(ecto_sql 3.12.1) lib/ecto/adapters/sql.ex:1294: Ecto.Adapters.SQL.log/4
(db_connection 2.7.0) lib/db_connection.ex:1704: DBConnection.log/5
(postgrex 0.20.0) lib/postgrex.ex:296: Postgrex.query/4
(ecto_sql 3.12.1) lib/ecto/adapters/sql.ex:1150: Ecto.Adapters.SQL.struct/10
(ecto 3.12.6) lib/ecto/repo/schema.ex:837: Ecto.Repo.Schema.apply/4
(ecto 3.12.6) lib/ecto/repo/schema.ex:416: anonymous fn/15 in Ecto.Repo.Schema.do_insert/4
(oban_pro 1.6.0-rc.5) lib/oban/pro/worker.ex:1136: Oban.Pro.Worker.process/3
(oban 2.19.4) lib/oban/queue/executor.ex:145: Oban.Queue.Executor.perform/1
(oban 2.19.4) lib/oban/queue/executor.ex:77: Oban.Queue.Executor.call/1
type or paste code here
Most Liked
ruslandoga
![]()
To me it looks more like the new Elixir 1.19 Inspect.Algebra issue
It’s probably worth opening an issue on Issues · elixir-lang/elixir · GitHub
Also does the issue appear on Elixir 1.18? If not, then it supports it being about 1.19 changes
1
Popular in Questions
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
New
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
Could someone help me? I’m making my first elixir program, number guessing game. I can’t figure out how to convert the user’s guess from ...
New
Hi all,
I’ve just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage.
I’m trying to use Postgres...
New
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: )
Hello all, this is ...
New
How to bind a phoenix app to a specific ip address?
could not find anything about that, nowhere, unfortunately, but for me this is quite...
New
I’m trying to make a websocket server in Phoenix or raw Elixir. I heard about gun, I think I could use cowboy, but since I’m not that sma...
New
Hello everybody,
usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this
"1000"
What is the ...
New
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
Other popular topics
Hello!
tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability.
After spen...
New
Hi,
I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
Hi,
I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
Hey all,
I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
What learn first? Rust or Elixir
Hi Elixir community!
I’m here because i want learn a new language. I’m a junior developer and mainly i ...
New
Hello guys,
I have finally made it. I created an admin interface for a framework. It’s been on my todo list for years and with the curre...
New
Using vs code and installed ElixirLS: support and debugger.
And I got an error popped up on start up says
Failed to run ‘elixir’ comma...
New
Credo is smart enough to check for (something like) this:
assert length(the_list) == 0
with this response:
Checking if an enum is empt...
New
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
Categories:
Sub Categories:
Forums
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
- #code-sync
- #javascript
- #podcasts
- #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








