FIS2425 / authorization-svc

Authorization microservice for medical consultation application. Handles the authorization of users for the entire application
Apache License 2.0
0 stars 0 forks source link

[BUG] Error loading bcrypt shared library #67

Open alvarobernal2412 opened 2 hours ago

alvarobernal2412 commented 2 hours ago

Description

When attempting to use bcrypt in a Docker container on macOS, an error occurs while loading the bcrypt shared library. The error message indicates that there is an "Exec format error" when trying to load the bcrypt_lib.node file.

Steps to Reproduce

  1. Set up a Docker container running a Node.js application on macOS.
  2. Install bcrypt via npm (or yarn).
  3. Attempt to run the application that uses bcrypt.

Expected Behavior

The bcrypt library should load and function correctly without any errors.

Actual Behavior

An ERR_DLOPEN_FAILED error is thrown, indicating that the shared library for bcrypt could not be loaded due to an "Exec format error." This prevents the application from using bcrypt.

Context

AntonioRodriguezRuiz commented 2 hours ago

Sorry I can't reproduce but will believe you.

Will fix