second-state / microservice-rust-mysql

A template project for building a database-driven microservice in Rust and run it in the WasmEdge sandbox.
Apache License 2.0
345 stars 53 forks source link

ERROR [server build 3/5] RUN cargo build --target wasm32-wasi --release #20

Closed t00350320 closed 9 months ago

t00350320 commented 10 months ago

1、docker desktop +wasm follows https://docs.docker.com/desktop/wasm/#troubleshooting 2、docker compose up error logs

 => ERROR [server build 3/5] RUN cargo build --target wasm32-wasi --release                                                            1.9s 
------                                                                                                                                      
 > [server build 3/5] RUN cargo build --target wasm32-wasi --release:                                                                       
1.100     Updating crates.io index
1.828 error: failed to get `anyhow` as a dependency of package `order_demo_service v0.1.0 (/src)`
1.829 
1.829 Caused by:
1.829   failed to load source for dependency `anyhow`
1.829 
1.829 Caused by:
1.829   Unable to update registry `crates-io`
1.829 
1.829 Caused by:
1.829   failed to fetch `https://github.com/rust-lang/crates.io-index`
1.829 
1.829 Caused by:
1.829   network failure seems to have happened
1.829   if a proxy or similar is necessary `net.git-fetch-with-cli` may help here
1.829   https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli
1.829 
1.829 Caused by:
1.829   the SSL certificate is invalid; class=Ssl (16); code=Certificate (-17)
------
failed to solve: process "/bin/sh -c cargo build --target wasm32-wasi --release" did not complete successfully: exit code: 101

env: windows 10, vmware ubuntu22.04 , desktop v4.24.2

how to fix this error? thanks a lot!!!

hydai commented 10 months ago

According to the error messages, this is caused by a network error when it downloads the dependencies from the crates.io. If you are in GFW, try again using a proxy or VPN.

t00350320 commented 10 months ago

According to the error messages, this is caused by a network error when it downloads the dependencies from the crates.io. If you are in GFW, try again using a proxy or VPN.

this env can browser chrome and github . So this makes me very confused