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
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
Last Post!
D4no0
I don’t think this has something to do with openssl 3, it is just a deprecated interface that was removed from OTP-24. Actually if you compile OTP-24 or OTP-25 with openssl 3 you get a warning that it is not fully supported yet.
0
Popular in Questions
Hi there,
I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set?
Thanks.
New
I have VueJS GUIs with the project generated using Webpack.
I have Elixir modules that will need to be used by the VueJS GUIs.
I forese...
New
In templates/appointment/index.html.eex:
<%= for appointment <- @appointments do %>
<tr>
<td><%= appoi...
New
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
Using vs code and installed ElixirLS: support and debugger.
And I got an error popped up on start up says
Failed to run ‘elixir’ comma...
New
I am trying to run a deploy with docker and I successfully runned with this command:
docker build -t romenigld/blog-prod .
but when I t...
New
Other popular topics
Hi!
In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir?
Searched the docs for ip address and the web, no good results.
Thanks!
New
Hi there,
I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
New
Hi everyone!
I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New
Latest Phoenix Threads
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #hex
- #security










