@kpeacock do you have an estimate of how soon a fix may be released? and in the meantime, is there a solution that I can implement so that I can carry on developing? the hack that @rem.codes mentioned only works for me when I deploy locally, but when attempting to deploy my user interface to the IC, the hack is no longer effective.
@Severin mentioned that the latest didc
version tooling works. I haven’t been able to confirm as I’m unaware of how I would go about installing the didc
CLI to my machine. Is there some package manager that I could use to do so? I’ve check the README
file for the didc
tool, but it makes no mention of how to go about installing the tool.
for more context. Below is the error, request and response thats being displayed in the browser console when a composite query method is called. None of it was very informative for me, but maybe you all can spot something I missed. This bug is particularly challenging to investigate because it only shows up when deployed to the IC. So I’m unable to use the dev tools that are present when testing locally.
sw.ts:64 Error
error @ sw.ts:64
(anonymous) @ sw.ts:64
UQ @ sw.ts:64
(anonymous) @ sw.ts:64
await in (anonymous) (async)
(anonymous) @ sw.ts:64
Request {method: 'POST', url: 'https://ic0.app/api/v2/canister/hxx6x-baaaa-aaaap-qaaxq-cai/read_state', headers: Headers, destination: '', referrer: 'https://fkkq7-siaaa-aaaap-qaaya-cai.icp0.io/', …}
body
:
(...)
bodyUsed
:
true
cache
:
"reload"
credentials
:
"same-origin"
destination
:
""
headers
:
Headers {}
integrity
:
""
isHistoryNavigation
:
false
keepalive
:
false
method
:
"POST"
mode
:
"cors"
redirect
:
"follow"
referrer
:
"https://fkkq7-siaaa-aaaap-qaaya-cai.icp0.io/"
referrerPolicy
:
"strict-origin-when-cross-origin"
signal
:
AbortSignal {aborted: false, reason: undefined, onabort: null}
url
:
"https://ic0.app/api/v2/canister/hxx6x-baaaa-aaaap-qaaxq-cai/read_state"
Response {type: 'default', url: '', redirected: false, status: 400, ok: false, …}
body
:
(...)
bodyUsed
:
false
headers
:
Headers {}
ok
:
false
redirected
:
false
status
:
400
statusText
:
""
type
:
"default"
url
:
""
when I perform a try
/ catch
and print the error, this is what prints up:
Error: Server returned an error:
Code: 502 ()
Body:
at G.readState (index.js:2:327583)
at async ie (index.js:2:405875)
at async o (index.js:2:410516)
at async index.js:205:1358226