Error with crypto.mac/4 : undefined or private
Description
When I try to access the my groups, I get an error and can't see the groups even if I am the admin of said groups.
Steps to Reproduce
- Go to on of your group.
Expected behaviour:
I can access to the group.
Actual behaviour:
I can't see the group (see image above) and it is like I am not part of the group.
Reproduces how often:
Every time I try to access a group.
Versions
Mobilizon: V1.1.4 (fresh install)
OS: FreeBSD 12.2-RELEASE-p6
Elixir: 1.11.4
Erlang: 21.3.8
Additional Information
Falling back to Mobilizon V1.1.3 solves the problem.
Here is the error message seen on the server (redacted to suppress the url and the secret):
[error] #PID<0.1697.0> running Mobilizon.Web.Endpoint (connection #PID<0.1696.0>, stream id 1) terminated
Server: example.com:80 (http)
Request: POST /api
** (exit) an exception was raised:
** (UndefinedFunctionError) function :crypto.mac/4 is undefined or private
(crypto 4.4.2.3) :crypto.mac(:hmac, :sha, "some secret I presume")
(mobilizon 1.1.4) lib/web/media_proxy.ex:39: Mobilizon.Web.MediaProxy.base64_sig64/1
(mobilizon 1.1.4) lib/web/media_proxy.ex:46: Mobilizon.Web.MediaProxy.encode_url/1
(mobilizon 1.1.4) lib/graphql/resolvers/resource.ex:226: Mobilizon.GraphQL.Resolvers.Resource.proxyify_pictures/3
(absinthe 1.6.4) lib/absinthe/resolution.ex:209: Absinthe.Resolution.call/2
(absinthe 1.6.4) lib/absinthe/phase/document/execution/resolution.ex:230: Absinthe.Phase.Document.Execution.Resolution.reduce_resolution/1
(absinthe 1.6.4) lib/absinthe/phase/document/execution/resolution.ex:185: Absinthe.Phase.Document.Execution.Resolution.do_resolve_field/3
(absinthe 1.6.4) lib/absinthe/phase/document/execution/resolution.ex:170: Absinthe.Phase.Document.Execution.Resolution.do_resolve_fields/6
Edited by Hukadan