Introduction
We have come thus far. From a skeletal project to a feature-complete authentication system. Boldly, we can pat ourselves on...
For further actions, you may consider blocking this person and/or reporting abuse
Hi John,
Your code can't be compiled. Could you inform me how to run it?
The packages seem to be outdated.
Looking forward to your reply.
Thanks
Hi Jaer,
Can you explain more on this? I am very sure that some of the packages have latest revisions but I haven't had time to update them yet.
Hi John,
Thank you for replying.
Below is the snippet of the error output.
Appreciate if you could give me some hints on how to solve this issue. Thanks
error[E0433]: failed to resolve: unresolved importsqlx::types`--> src/routes/users/register.rs:64:24
|
64 | crate::types::ErrorResponse {
| ^^^^^
| |
| unresolved import
| help: a similar path exists:
error[E0433]: failed to resolve: unresolved import
--> src/routes/users/register.rs:68:24
|
68 | crate::types::ErrorResponse {
| ^^^^^
| |
| unresolved import
| help: a similar path exists:
sqlx::typeserror[E0433]: failed to resolve: unresolved import
--> src/routes/users/register.rs:81:72
|
81 | actix_web::HttpResponse::InternalServerError().json(crate::types::ErrorResponse {
| ^^^^^
| |
| unresolved import
| help: a similar path exists:
sqlx::typeserror[E0433]: failed to resolve: could not find
utilsin the crate root--> src/routes/users/register.rs:87:12
|
87 | crate::utils::send_multipart_email(
| ^^^^^ could not find
utilsin the crate rooterror[E0433]: failed to resolve: unresolved import
--> src/routes/users/register.rs:104:47
|
104 | actix_web::HttpResponse::Ok().json(crate::types::SuccessResponse {
| ^^^^^
| |
| unresolved import`
I just cloned the repo. Updated the packages using
cargo updateand my rust version usingrust update. Everything compiles without any error. I have even pushed a small update to github.Hi John,
Thanks for the highlight. But the issues during the compilation like this:
$ cargo runtarget/debug/backendFinished dev [unoptimized + debuginfo] target(s) in 0.75s
Running
RUST_BACKTRACE=1thread 'main' panicked at /Users/eric/workspace/Rust/github/rust-auth/backend/src/startup.rs:111:54:
Failed to get AWS key.: NotPresent
note: run with
environment variable to display a backtraceCould you show me how to solve this issue?
Thanks
Kindly read what the error says. You need to provide your AWS S3 credentials. I included
.env.test. It contains the required data. To run the app, create a.env.developmentfile and put in the following data:Modify them accordingly.