Skip to content

ERROR: (ErlangError) Erlang error: {:badarg, {'aead.c', 90}, 'Unknown cipher'} #118

@nelsonic

Description

@nelsonic

All tests pass on the latest PR #117 and main: GitHub Workflow Status

But when we try to use this in auth we get the following error:

https://github.com/dwyl/auth/actions/runs/3272492583/jobs/5383565807
image

** (ErlangError) Erlang error: {:badarg, {'aead.c', 90}, 'Unknown cipher'}
    (crypto 5.0.2) :crypto.aead_cipher_nif(:aes_256_gcm, "", 
    <<56, 213, 219, 54, 35, 244, 145, 76, 175, 240, 168, 207, 97, 17, 17, 22>>, 
    "admin@dwylauth.com", "AES256GCM", 16, true)
    (fields 2.10.1) lib/aes.ex:36: Fields.AES.encrypt/1
    (fields 2.10.1) lib/encrypted.ex:21: Fields.Encrypted.dump/1
    (ecto 3.7.2) lib/ecto/type.ex:915: Ecto.Type.process_dumpers/3
    (ecto 3.7.2) lib/ecto/repo/schema.ex:996: Ecto.Repo.Schema.dump_field!/6
    (ecto 3.7.2) lib/ecto/repo/schema.ex:1009: anonymous fn/6 in Ecto.Repo.Schema.dump_fields!/5
    (stdlib 3.15.1) maps.erl:410: :maps.fold_1/3
    (ecto 3.7.2) lib/ecto/repo/schema.ex:1007: Ecto.Repo.Schema.dump_fields!/5
Error: Process completed with exit code 1.

Need to fix this ASAP as it's preventing the auth -> groups PR dwyl/auth#231 from progressing. 🤦‍♂️

Todo

  • Fix this!!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions