Canister xyz-igaab-aacai-ad6ia-cai has no query method 'http_request'

When I deploy the greetings sample app (created by “dfx new sample_app”)to the IC network and try to browse it I get the error below. However, it works on the local replica and I get the UI on the browser. What could be the issue so that the local replica has no problem with it?

Failed to fetch response: Error: Call failed:
Canister: xyz-igaab-aacai-ad6ia-cai
Method: http_request (query)
“Status”: “rejected”
“Code”: “DestinationInvalid”
“Message”: “IC0302: Canister xyz-igaab-aacai-ad6ia-cai has no query method ‘http_request’”

1 Like
2 Likes

Thanks. Added the query func as in the sample. Now getting “Body does not pass verification”. What does this mean?

1 Like

<canister id>.raw.ic0.app

1 Like

With this I managed to display on the browser what is in the query func. What if I want to show what is in the index.html like I am getting on the local replica?

1 Like

I see, so seems like we have backend_canister_id.raw.ic0.app and frontend_canister_id.ic0.app

1 Like