rakeshtripathy
(UndefinedFunctionError) function :crypto.hmac/3 is undefined or private in OTP 24
Hello,
I have upgraded to OTP 24 and the application gives me below error.
2023-05-08T09:39:40.016516261Z ** (UndefinedFunctionError) function :crypto.hmac/3 is undefined or private
2023-05-08T09:39:40.016521861Z (crypto 5.0.6.3) :crypto.hmac(:sha256, <<215, 151, 119, 26, 127, 8, 146, 85, 15, 210, 233, 150, 234, 49, 71, 114, 253, 119, 149, 8, 92, 166, 200, 71, 173, 68, 192, 10, 124, 239, 15, 252, 84, 185, 202, 48, 189, 229, 78, 102, 229, 58, 112, 117, 209, 144, 87, 238, 33, 56, ...>>, 'PUT\n\n\n40976\n\napplication/octet-stream\n\n\n\n\n\n\nx-ms-blob-type:BlockBlob\nx-ms-date:Mon, 08 May 2023 09:39:40 GMT\nx-ms-version:2014-02-14\n/test001/uploads/test/docs/test_create/6318/lfp.4d2bffda-5cd1-4d9a-b71a-8d7cd293c197.19f2a673-1f3a-4e06-9257-749b3c09a2b9.original.pdf')
2023-05-08T09:39:40.016528661Z (erlazure 0.2) /app/deps/erlazure/src/erlazure.erl:756: :erlazure.get_shared_key/7
2023-05-08T09:39:40.016532861Z (erlazure 0.2) /app/deps/erlazure/src/erlazure.erl:717: :erlazure.execute_request/2
2023-05-08T09:39:40.016537061Z (erlazure 0.2) /app/deps/erlazure/src/erlazure.erl:530: :erlazure.handle_call/3
2023-05-08T09:39:40.016541161Z (stdlib 3.17.2.2) gen_server.erl:721: :gen_server.try_handle_call/4
2023-05-08T09:39:40.016544962Z (stdlib 3.17.2.2) gen_server.erl:750: :gen_server.handle_msg/6
2023-05-08T09:39:40.016548962Z (stdlib 3.17.2.2) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
2023-05-08T09:39:40.016567662Z Last message (from #PID<0.5946.0>): {:put_blob, 'uploads', 'test/docs/test_create/6318/lfp.4d2bffda-5cd1-4d9a-b71a-8d7cd293c197.19f2a673-1f3a-4e06-9257-749b3c09a2b9.original.pdf', :block_blob, <<37, 80, 68, 70, 45, 49, 46, 52, 10, 49, 32, 48, 32, 111, 98, 106, 10, 60, 60, 10, 47, 84, 105, 116, 108, 101, 32, 40, 254, 255, 0, 76, 0, 101, 0, 116, 0, 116, 0, 101, 0, 114, 0, 32, 0, ...>>, []}
Please help to resolve this issue.
Most Liked
al2o3cr
A fix for this was merged a while back, but I’m not sure if it was packaged into a release:
2
LostKobrakai
1
rakeshtripathy
currently I am using :plug_crypto, “1.2.5”, but I feel the issue is with erlazure and the errors comes while uploading files into azure storage.
1
Popular in Questions
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 have an umbrella app.
Some of the apps inside depend on other apps in the umbrella, unsurprisingly.
I'm writing a test for one of t...
New
Hi there, I'm working through my first release with elixir/phoenix. I've built a release with distillery and found that it crashes when I...
New
As a follow up to my earlier question:
I have the code compiling and running but not getting a successful login from the rest server. ...
New
I would like to know what is the best IDE for elixir development?
New
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
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
Hi all,
I've just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage.
I'm trying to use Postg...
New
I have a super simple question about elixir - how would I take a file like this
foo bar baz
and output a new file that enumerates th...
New
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
Other popular topics
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!)
This post collects co...
New
I have an umbrella app.
Some of the apps inside depend on other apps in the umbrella, unsurprisingly.
I'm writing a test for one of t...
New
The Elixir Typespec docs show the following syntax for keyword lists in typespecs:
# ...
| [key: type] # keyword lis...
New
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch.
This project took far...
New
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? https://hexdocs.pm/ecto/Ecto.Repo.h...
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
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
We’ve put together this wiki for Phoenix LiveView - please feel free to add any info you feel is worth including.
What is Phoenix LiveV...
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
Hey :wave:t3: Elixir community,
I’ve been learning Elixir, and working on some side projects. My editor of choice is VSCode, and althoug...
New







