at checkExecSyncError (node:child_process:890:11)
at execSync (node:child_process:962:15)
at compileRustCode (/home/alidante/code/project_name/node_modules/azle/src/compiler/compile_rust_code.ts:14:13)
at /home/alidante/code/project_name/node_modules/azle/src/compiler/index.ts:135:28
at time (/home/alidante/code/project_name/node_modules/azle/src/compiler/utils/time.ts:10:26)
at azle (/home/alidante/code/project_name/node_modules/azle/src/compiler/index.ts:55:15)
at Object.<anonymous> (/home/alidante/code/project_name/node_modules/azle/src/compiler/index.ts:35:1)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module.m._compile (/home/alidante/code/project_name/node_modules/azle/node_modules/ts-node/src/index.ts:1365:23) {
Error: Failed while trying to deploy canisters.
Caused by: Failed while trying to deploy canisters.
Failed to build all canisters.
Failed while trying to build all canisters.
The build step failed for canister 'bd3sg-teaaa-aaaaa-qaaba-cai' (project_name_backend) with an embedded error: Failed to build custom canister project_name_backend.: Failed to run npx azle project_name_backend.: The custom tool failed.
alidante@HP-DESKTOP:~/code/project_name$ dfx deploy Deploying all canisters. Creating canisters... Creating canister project_name_backend... project_name_backend canister created with canister id: bd3sg-teaaa-aaaaa-qaaba-cai Creating canister project_name_frontend... project_name_frontend canister created with canister id: be2us-64aaa-aaaaa-qaabq-cai Building canisters... Executing 'npx azle project_name_backend'
Building canister project_name_backend
[1/4] π¬ Performing initial research... [2/4] π οΈ Commencing development... [3/4] π₯οΈ Deploying... [4/4] π Launching... Error: Command failed: cd .azle/project_name_backend && /home/alidante/.config/azle/rust/1.73.0/bin/cargo build --target wasm32-wasi --manifest-path canister/Cargo.toml --release Updating crates.io index Updating git repository
https://github.com/demergent-labs/ic-wasi-polyfill
Updating git repositoryhttps://github.com/ulan/javy.git
Updating git submodulehttps://github.com/web-platform-tests/wpt
error: failed to getquickjs-wasm-rs
as a dependency of packagecanister v0.0.0 (/home/alidante/code/project_name/.azle/project_name_backend/canister)
Caused by: failed to load source for dependency
quickjs-wasm-rs
Caused by: Unable to update https://github.com/ulan/javy.git?rev=fdf12ce4fd5636417cd63e1f6296aa79196434a7
Caused by: failed to update submodule
wpt/upstream
Caused by: failed to fetch submodule
wpt/upstream
from https://github.com/web-platform-tests/wptCaused by: network failure seems to have happened if a proxy or similar is necessary
net.git-fetch-with-cli
may help here https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cliCaused by: SSL error: unknown error; class=Ssl (16)
status: 101, signal: null, output: [ null, Buffer(0) [Uint8Array] [], Buffer(997) [Uint8Array] [ 32, 32, 32, 32, 85, 112, 100, 97, 116, 105, 110, 103, 32, 99, 114, 97, 116, 101, 115, 46, 105, 111, 32, 105, 110, 100, 101, 120, 10, 32, 32, 32, 32, 85, 112, 100, 97, 116, 105, 110, 103, 32, 103, 105, 116, 32, 114, 101, 112, 111, 115, 105, 116, 111, 114, 121, 32, 96, 104, 116, 116, 112, 115, 58, 47, 47, 103, 105, 116, 104, 117, 98, 46, 99, 111, 109, 47, 100, 101, 109, 101, 114, 103, 101, 110, 116, 45, 108, 97, 98, 115, 47, 105, 99, 45, 119, 97, 115, 105, 45, ... 897 more items ] ], pid: 2905, stdout: Buffer(0) [Uint8Array] [], stderr: Buffer(997) [Uint8Array] [ 32, 32, 32, 32, 85, 112, 100, 97, 116, 105, 110, 103, 32, 99, 114, 97, 116, 101, 115, 46, 105, 111, 32, 105, 110, 100, 101, 120, 10, 32, 32, 32, 32, 85, 112, 100, 97, 116, 105, 110, 103, 32, 103, 105, 116, 32, 114, 101, 112, 111, 115, 105, 116, 111, 114, 121, 32, 96, 104, 116, 116, 112, 115, 58, 47, 47, 103, 105, 116, 104, 117, 98, 46, 99, 111, 109, 47, 100, 101, 109, 101, 114, 103, 101, 110, 116, 45, 108, 97, 98, 115, 47, 105, 99, 45, 119, 97, 115, 105, 45, ... 897 more items ] } Building frontend... WARN: Generating type declarations for canister project_name_frontend: /home/alidante/code/project_name/src/declarations/project_name_frontend/project_name_frontend.did.d.ts /home/alidante/code/project_name/src/declarations/project_name_frontend/project_name_frontend.did.js src/declarations/project_name_frontend/project_name_frontend.did Generating type declarations for canister project_name_backend: /home/alidante/code/project_name/src/declarations/project_name_backend/project_name_backend.did.d.ts /home/alidante/code/project_name/src/declarations/project_name_backend/project_name_backend.did.js src/declarations/project_name_backend/project_name_backend.did ../../node_modules/js-sha256/src/sha256.js (83:17) Use of eval in "../../node_modules/js-sha256/src/sha256.js" is strongly discouraged as it poses security risks and may cause issues with minification. ../../node_modules/js-sha256/src/sha256.js (84:17) Use of eval in "../../node_modules/js-sha256/src/sha256.js" is strongly discouraged as it poses security risks and may cause issues with minification.
Error: Failed while trying to deploy canisters. Caused by: Failed while trying to deploy canisters. Failed to build all canisters. Failed while trying to build all canisters. The build step failed for canister 'bd3sg-teaaa-aaaaa-qaaba-cai' (project_name_backend) with an embedded error: Failed to build custom canister project_name_backend.: Failed to run npx azle project_name_backend.: The custom tool failed.