Issue with Deploying Frontend on Mainnet

I’m encountering a frustrating issue while deploying my frontend on mainnet.

When I deploy the application locally, everything works perfectly, and I’m able to interact with all features. However, when I deploy it on the mainnet, the following problems occur:

I tried to reinstall the canister but the frontend behaves unexpectedly. For example, when I press the “Connect to Wallet” button, it redirects to the local Internet Identity (II) instead of the mainnet version.

Has anyone faced a similar issue or knows how to resolve this?



2 Likes

Same bug is discussed here:

No updates on a fix so far…

2 Likes

i tried to execute the file but it gives me this error ./download.sh: line 13: jq: command not found
./download.sh: line 14: jq: command not found
curl: (3) URL using bad/illegal format or missing URL
Error: Failed to download
./download.sh: line 13: jq: command not found
./download.sh: line 14: jq: command not found
curl: (3) URL using bad/illegal format or missing URL
Error: Failed to download
./download.sh: line 13: jq: command not found
./download.sh: line 14: jq: command not found
curl: (3) URL using bad/illegal format or missing URL
Error: Failed to download

1 Like

brew install jq or apt install jq should help

1 Like


i have executed the file but this solution does not work with me , so untill the bug being fixed what should i do ? i there a solution or i have to create new canister or what !!

1 Like

Is it still complaining that dfx generate fails or is there a different error?

1 Like

yes still the same error

1 Like

do you know what is the reason of this bug?

1 Like

in the prebuild step, for remote canisters dfx should download the canister’s candid file and put it in the place where the error says it’s not found. For some reason this doesn’t happen for remote canisters. The script I linked you to didn’t do that right in this case. If you ask an LLM to fix it for you together with the error it may be able to fix it for you

3 Likes