Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

password error #13

Closed
zhaoxueye opened this issue Nov 29, 2024 · 1 comment
Closed

password error #13

zhaoxueye opened this issue Nov 29, 2024 · 1 comment

Comments

@zhaoxueye
Copy link

Describe the bug
password error

To Reproduce

  1. set Urocissa/gallery-backend/.env PASSWORD=123456
  2. error log
    2024-11-29T06:34:28Z WARN Urocissa::router::post::authenticate::_
    Data guard Json < String > failed: Parse("123456", Error("invalid type: integer 123456, expected a string", line: 1, column: 6)).
    2024-11-29T06:34:28Z WARN rocket::server::_
    No 422 catcher registered. Using Rocket default.
    ^C2024-11-29T06:37:06Z WARN rocket::server
  3. set PASSWORD=aabbcc
  4. error log
    024-11-29T06:39:37Z INFO Urocissa::public::config
    config.json not found. Using default configuration.
    2024-11-29T06:39:37Z WARN Urocissa::router::fairing
    Unauthorized access attempt via fetch.
    2024-11-29T06:39:37Z WARN rocket::server::_
    No 401 catcher registered. Using Rocket default.
@hsa00000 hsa00000 reopened this Nov 29, 2024
@hsa00000
Copy link
Owner

hsa00000 commented Nov 29, 2024

Dear @zhaoxueye,

I've implemented a fix in commit 2af1f7d that should resolve the issue you've encountered.

Please follow these steps to update to the latest version:

Update Instructions

  1. Pull the Latest Changes from the Repository

    Navigate to the project directory and pull the latest updates:

    git pull
  2. Rebuild the Frontend

    Navigate to the gallery-frontend directory:

    cd ./Urocissa/gallery-frontend

    Build the frontend:

    npm run build
  3. Rebuild the Backend

    Navigate to the gallery-backend directory:

    cd ./Urocissa/gallery-backend

    Build and run the backend using Cargo:

    cargo run --release

Please let me know if this resolves the issue or if you need any further assistance.

Remark: After updating the password, you must restart the backend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants