Error when loading front-end of my application

Hi

I have just deployed the canister on ic network using the below command:

dfx deploy --network ic

backend is working fine, and both backend and front work fine on the local network, however, on the ic network I get the following error. Anyone knows how I can troubleshoot?

Internal Server Error

https://uaim5-2aaaa-aaaai-qaesq-cai.raw.ic0.app

I’ve been trying to get the root of this with no luck! Any help is appreciated. Should I do anything else after deploy?

Can you share more details? Like your deploy logs and, maybe even the code repo of your app?

Not sure I can help though but, can compare with mine that works out.

1 Like

Thank you. Here is the log:

Also the code is a modified version of CanCan available here:
functionland/cancan: A scalable video sharing service. (github.com)

It works fine when deployed locally (both FO and BO tested on Ubuntu)
But when deploy to ic and loading FO, it gives that error message.
Here is a screenshot of it runing locally:

I think you issue is that you do not have a canister deployed for your frontend.

If I check your dfx.json, there is only a reference to one canister, the backend one, the one you deployed.

If I check CanCan dfx.json there are two. A backend one as you did and, another one of type assets that serve the frontend app.

You should also deploy that canister and it is then the one you will access through your browser.

1 Like

Thank you! I totally missed it and was defenitely a problem there. However, I am still getting the same eeor after changing the dfx and now I see assets are uploaded too. Unless it takes some time due to propagation stuff:


It actually works out, just tested :wink:.

Now that you have deployed the assets / your frontend app, you should use the new canister ID to access it through your browser.

https://bv7wf-6qaaa-aaaai-qahbq-cai.raw.ic0.app/ instead of previously / your backend cannister https://uaim5-2aaaa

1 Like

Thanks for the help :smiley:

1 Like

My pleasure, glad it worked out!

1 Like