Hi, @hpeebles. I got some error when deploying project on the internet computer.
Uncaught (in promise) Error: Call failed:
Canister: on724-jqaaa-aaaap-abjbq-cai
Method: get_posts_by_category (query)
"Status": "rejected"
"Code": "CanisterError"
"Message": "IC0504: Canister on724-jqaaa-aaaap-abjbq-cai violated contract: \"ic0_call_new\" cannot be executed in non replicated query mode"
at 3171-9e1554add3832ea9.js:16:4497
at async m (8566-436911c062079394.js:1:10817)
at async E (32-13d39f95f56180a6.js:1:5788)
I think this is because I use inter-canister call, but it works fine on local IC.
I set environment like this in dfx.json
"networks": {
"local": {
"bind": "127.0.0.1:8080",
"type": "ephemeral",
"replica": {
"subnet_type": "system"
}
},
"ic": {
"providers": ["https://ic0.app/"],
"type": "persistent"
},
"ic_test": {
"providers": ["https://ic0.app/"],
"type": "persistent"
},
"web_test": {
"providers": ["https://ic0.app/"],
"type": "persistent"
}
},
Need to configure anything else when deploying to mainnet?
Hope to your answer.