Hey!
Plug Team has encountered issue with @dfinity/agent: 3.2.0
Most of the requests via Actor.createActor fail with Request timed out after 30000msec, however this is error thrown much faster than 30 seconds.
Interestingly enough, that if we pass
Actor.createActor(factory, {
pollingOptions: {
strategy: defaultStrategy(),
},
})
And when doing polling directly just passing DEFAULT_POLLING_OPTIONS also fails, we override strategy like this
const {
pollForResponse,
DEFAULT_POLLING_OPTIONS: { preSignReadStateRequest },
} = polling
await pollForResponse(agent, Principal.from(params.canisterId), requestId, {
preSignReadStateRequest,
strategy: defaultStrategy(),
})
It seems to resolve the issue in the most cases, however we still see some logs of timeout.
Maybe you could advise us, thank you!
ilbert
2
We fixed the issue in @icp-sdk/core@4.0.4 and by consequence also in @dfinity/agent@3.2.6.
Here’s the PR containing the fix:
Can you please try bumping the version of the @dfinity/agent package and let us know if the issue is fixed?