Deployment Error

When deploying locally getting the below error

The replica returned an HTTP Error: Http Error: status 404 Not Found, content type “”, content: Requested canister does not exist

What could be the problem ? Kindly let me know.

Hello!
Need more details. What command did you run?

This is the command
dfx deploy mycanister

Deploying: mycanister
All canisters have already been created.
Building canisters…
Building frontend…
Installing canisters…
Installing code for canister mycanister, with canister_id novnv-7iaaa-aaaaa-aacca-cai
The replica returned an HTTP Error: Http Error: status 404 Not Found, content type “”, content: Requested canister does not exist

Try to start replica with the --clean flag like this dfx start --clean
Also you can remove .dfx folder before replica starts.

1 Like

Thanks mate. It works

1 Like