(ArgumentError) cannot escape #Function<0.76296030/0 in Pleroma.Web.Plugs.FrontendStatic.init/1> #68
Labels
No labels
approved, awaiting change
bug
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma#68
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
Thank you! Will try the fix in a few minutes.
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 other git pull to get new updates and now it works! Thank you again!
yeah i had to double super fix it sorry about that :aaa:
no worries! thanks again
floatingghost referenced this issue2022-11-25 12:27:13 +00:00