Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:einval error #3

Open
axelson opened this issue Mar 16, 2023 · 2 comments
Open

:einval error #3

axelson opened this issue Mar 16, 2023 · 2 comments

Comments

@axelson
Copy link
Contributor

axelson commented Mar 16, 2023

Thanks for making this library! It's already been quite useful to me.

However, I'm getting an exception for one of the queries that I'm interested in:

[error] GenServer :exec terminating
** (stop) :einval
Last message: {:EXIT, #Port<0.37>, :einval}
State: {:state, #Port<0.37>, 0, {[], []}, [], :exec_mon, false, false}
** (exit) exited in: :gen_server.call(:exec, {:port, {:send, #PID<0.1087.0>, :eof}})
    ** (EXIT) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
    (stdlib 4.1.1) gen_server.erl:370: :gen_server.call/2
    (ecto_dbg 0.2.0) lib/ecto_dbg.ex:280: EctoDbg.format_sql/1
    (ecto_dbg 0.2.0) lib/ecto_dbg.ex:140: EctoDbg.log_query/4
    (ecto_dbg 0.2.0) lib/ecto_dbg.ex:153: EctoDbg.run_and_log_query/5
    (my_app 0.1.0) lib/my_app/repo.ex:19: MyApp.Repo.offset_paginate/2
    iex:10: (file)
    iex:10: (file)

My guess is that this is happening because the query includes prepared arguments that are very long lists of ids (in the thousands).

@akoutmos
Copy link
Owner

Hrmmm. I will try and write a test with thousands of IDs to see how long it takes. Perhaps it is timing out while trying to format.

@akoutmos
Copy link
Owner

I was able to recreate the issue in a test. Working on the fix as time allows :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants