[GH-ISSUE #62] [Bug] Unable to build backend #32

Closed
opened 2026-03-23 20:30:43 +00:00 by mirror · 4 comments
Owner

Originally created by @vnepogodin on GitHub (Nov 21, 2021).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/62

Describe the bug
The backend Cargo.toml doesn't build.

To Reproduce
Steps to reproduce the behavior:

  1. git clone https://github.com/AppFlowy-IO/appflowy.git
  2. cd backend
  3. cargo build --release
  4. See error

Expected behavior
The backend should be built.

Additional context

  • Environment [e.g. flutter doctor -v or rustup show]
❯ rustup show
Default host: x86_64-unknown-linux-gnu
rustup home:  /home/vl/.rustup

installed toolchains
--------------------

nightly-2021-04-24-x86_64-unknown-linux-gnu
nightly-x86_64-unknown-linux-gnu (default)

active toolchain
----------------

nightly-x86_64-unknown-linux-gnu (default)
rustc 1.58.0-nightly (2885c4748 2021-11-20)
Originally created by @vnepogodin on GitHub (Nov 21, 2021). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/62 **Describe the bug** The backend Cargo.toml doesn't build. **To Reproduce** Steps to reproduce the behavior: 1. ``git clone https://github.com/AppFlowy-IO/appflowy.git`` 2. ``cd backend`` 3. ``cargo build --release`` 4. See error **Expected behavior** The backend should be built. **Additional context** - Environment [e.g. flutter doctor -v or rustup show] ``` bash ❯ rustup show Default host: x86_64-unknown-linux-gnu rustup home: /home/vl/.rustup installed toolchains -------------------- nightly-2021-04-24-x86_64-unknown-linux-gnu nightly-x86_64-unknown-linux-gnu (default) active toolchain ---------------- nightly-x86_64-unknown-linux-gnu (default) rustc 1.58.0-nightly (2885c4748 2021-11-20) ```
Author
Owner

@ghost commented on GitHub (Nov 21, 2021):

Can you post the error output?

<!-- gh-comment-id:974817054 --> @ghost commented on GitHub (Nov 21, 2021): Can you post the error output?
Author
Owner

@vnepogodin commented on GitHub (Nov 21, 2021):

Yeah sure

<!-- gh-comment-id:974817224 --> @vnepogodin commented on GitHub (Nov 21, 2021): Yeah sure
Author
Owner

@vnepogodin commented on GitHub (Nov 21, 2021):

warning: `lib-sqlite` (lib) generated 1 warning
   Compiling backend v0.1.0 (/home/vl/appflowy/backend)
error[E0437]: type `Config` is not a member of trait `FromRequest`
  --> src/entities/token.rs:83:5
   |
83 |     type Config = ();
   |     ^^^^^^^^^^^^^^^^^ not a member of trait `FromRequest`

error[E0437]: type `Config` is not a member of trait `FromRequest`
  --> src/service/user/logged_user.rs:44:5
   |
44 |     type Config = ();
   |     ^^^^^^^^^^^^^^^^^ not a member of trait `FromRequest`

For more information about this error, try `rustc --explain E0437`.
error: could not compile `backend` due to 2 previous errors
<!-- gh-comment-id:974819392 --> @vnepogodin commented on GitHub (Nov 21, 2021): ``` warning: `lib-sqlite` (lib) generated 1 warning Compiling backend v0.1.0 (/home/vl/appflowy/backend) error[E0437]: type `Config` is not a member of trait `FromRequest` --> src/entities/token.rs:83:5 | 83 | type Config = (); | ^^^^^^^^^^^^^^^^^ not a member of trait `FromRequest` error[E0437]: type `Config` is not a member of trait `FromRequest` --> src/service/user/logged_user.rs:44:5 | 44 | type Config = (); | ^^^^^^^^^^^^^^^^^ not a member of trait `FromRequest` For more information about this error, try `rustc --explain E0437`. error: could not compile `backend` due to 2 previous errors ```
Author
Owner

@appflowy commented on GitHub (Nov 22, 2021):

These errors are caused by the beta version of actix-web has been updated. I will update the cargo.toml file to fix this.

<!-- gh-comment-id:974972245 --> @appflowy commented on GitHub (Nov 22, 2021): These errors are caused by the beta version of actix-web has been updated. I will update the cargo.toml file to fix this.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#32
No description provided.