(ArgumentError) cannot escape #Function<0.76296030/0 in Pleroma.Web.Plugs.FrontendStatic.init/1> #68

Closed
opened 2022-07-14 09:00:40 +00:00 by spla · 6 comments

Running Akkoma develop on my Raspberry Pi 4B. It was working great after last git pull where it throws this compile error:

== Compilation error in file lib/pleroma/web/endpoint.ex ==
** (ArgumentError) cannot escape #Function<0.76296030/0 in Pleroma.Web.Plugs.FrontendStatic.init/1>. The supported values are: lists, tuples, maps, atoms, numbers, bitstrings, PIDs and remote functions in the format &Mod.fun/arity
(elixir) src/elixir_quote.erl:122: :elixir_quote.argument_error/1
(elixir) src/elixir_quote.erl:259: :elixir_quote.do_quote/3
(elixir) src/elixir_quote.erl:421: :elixir_quote.do_quote_splice/5
(elixir) src/elixir_quote.erl:304: :elixir_quote.do_escape/3
(plug) lib/plug/builder.ex:307: Plug.Builder.init_module_plug/4
(plug) lib/plug/builder.ex:288: anonymous fn/5 in Plug.Builder.compile/3
(elixir) lib/enum.ex:1948: Enum."-reduce/3-lists^foldl/2-0-"/3
(plug) lib/plug/builder.ex:286: Plug.Builder.compile/3

Hope this help you to debug the issue. Thanks in advance for your great work!

Running Akkoma develop on my Raspberry Pi 4B. It was working great after last git pull where it throws this compile error: == Compilation error in file lib/pleroma/web/endpoint.ex == ** (ArgumentError) cannot escape #Function<0.76296030/0 in Pleroma.Web.Plugs.FrontendStatic.init/1>. The supported values are: lists, tuples, maps, atoms, numbers, bitstrings, PIDs and remote functions in the format &Mod.fun/arity (elixir) src/elixir_quote.erl:122: :elixir_quote.argument_error/1 (elixir) src/elixir_quote.erl:259: :elixir_quote.do_quote/3 (elixir) src/elixir_quote.erl:421: :elixir_quote.do_quote_splice/5 (elixir) src/elixir_quote.erl:304: :elixir_quote.do_escape/3 (plug) lib/plug/builder.ex:307: Plug.Builder.init_module_plug/4 (plug) lib/plug/builder.ex:288: anonymous fn/5 in Plug.Builder.compile/3 (elixir) lib/enum.ex:1948: Enum."-reduce/3-lists^foldl/2-0-"/3 (plug) lib/plug/builder.ex:286: Plug.Builder.compile/3 Hope this help you to debug the issue. Thanks in advance for your great work!

ah yeah, i know this one, it's just due to me using a weird module name, i had it fixed in a branch but i'll merge a fix quickly to get this to work

ah yeah, i know this one, it's just due to me using a weird module name, i had it fixed in a branch but i'll merge a fix quickly to get this to work
Author

Thank you! Will try the fix in a few minutes.

Thank you! Will try the fix in a few minutes.
Author

Just did a git pull but sorry, same error:

== Compilation error in file lib/pleroma/web/endpoint.ex ==
** (ArgumentError) cannot escape #Function<0.76296030/0 in Pleroma.Web.Plugs.FrontendStatic.init/1>. The supported values are: lists, tuples, maps, atoms, numbers, bitstrings, PIDs and remote functions in the format &Mod.fun/arity
(elixir) src/elixir_quote.erl:122: :elixir_quote.argument_error/1
(elixir) src/elixir_quote.erl:259: :elixir_quote.do_quote/3
(elixir) src/elixir_quote.erl:421: :elixir_quote.do_quote_splice/5
(elixir) src/elixir_quote.erl:304: :elixir_quote.do_escape/3
(plug) lib/plug/builder.ex:307: Plug.Builder.init_module_plug/4
(plug) lib/plug/builder.ex:288: anonymous fn/5 in Plug.Builder.compile/3
(elixir) lib/enum.ex:1948: Enum."-reduce/3-lists^foldl/2-0-"/3
(plug) lib/plug/builder.ex:286: Plug.Builder.compile/3

Just did a git pull but sorry, same error: == Compilation error in file lib/pleroma/web/endpoint.ex == ** (ArgumentError) cannot escape #Function<0.76296030/0 in Pleroma.Web.Plugs.FrontendStatic.init/1>. The supported values are: lists, tuples, maps, atoms, numbers, bitstrings, PIDs and remote functions in the format &Mod.fun/arity (elixir) src/elixir_quote.erl:122: :elixir_quote.argument_error/1 (elixir) src/elixir_quote.erl:259: :elixir_quote.do_quote/3 (elixir) src/elixir_quote.erl:421: :elixir_quote.do_quote_splice/5 (elixir) src/elixir_quote.erl:304: :elixir_quote.do_escape/3 (plug) lib/plug/builder.ex:307: Plug.Builder.init_module_plug/4 (plug) lib/plug/builder.ex:288: anonymous fn/5 in Plug.Builder.compile/3 (elixir) lib/enum.ex:1948: Enum."-reduce/3-lists^foldl/2-0-"/3 (plug) lib/plug/builder.ex:286: Plug.Builder.compile/3
spla reopened this issue 2022-07-14 10:06:38 +00:00
Author

Just did other git pull to get new updates and now it works! Thank you again!

Just did other git pull to get new updates and now it works! Thank you again!
spla closed this issue 2022-07-14 10:28:02 +00:00

yeah i had to double super fix it sorry about that :aaa:

yeah i had to double super fix it sorry about that :aaa:
Author

yeah i had to double super fix it sorry about that :aaa:

no worries! thanks again

> yeah i had to double super fix it sorry about that :aaa: no worries! thanks again
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: AkkomaGang/akkoma#68
No description provided.