Error: Could not find a canister id to forward to

When trying to follow the beginning examples from this youtube video:

I got as far as this time stamp in the video, and everything went as expected. But then when trying to run the web page I get "no such file or directory.

Admins-MacBook-Pro:hello admin$ http://localhost:8000/?canisterId=ic:ryjl3-tyaaa-aaaaa-aaaba-cai

-bash: http://localhost:8000/?canisterId=ic:ryjl3-tyaaa-aaaaa-aaaba-cai: No such file or directory

I started chrome manually and put in my address but from the browser I get the error:

Could not find a canister id to forward to.

I tried to sub in each canister ID that was generated. It seems there is not a UI canister that does not appear the the video’s code, but I still get the same error:

Please help.
Family Game Night Forever

BTW: I just tried to invoke the greet function from the terminal and it works.

Admins-MacBook-Pro:hello admin$ sudo dfx canister call hello greet Jimbo


(“Hello, Jimbo!”)

Hey there, welcome!

If you’d like to “run” the webpage from a terminal I’d assume you need to run the browser first.


As for your link, try deleting the characters “ic:”. My links look like this:


Also, make sure the ID of the canister is correct by running

dfx canister id hello
1 Like

In complement to the previous answer, I use the ./dfx/local/canister_ids.json file to know the IDs of my canisters.

1 Like