Open apttx opened 6 months ago
restarting my browser fixed the issue. it's working again now
with hashpack 10.1.1, this error isn't caught and the transaction promise never resolves
Error: No matching key. history: 1717496949451525
at Vt.getRecord (index.js:148:1)
at Vt.get (index.js:148:1)
at ds2.onRelayEventResponse (index.js:148:1)
at EventEmitter.<anonymous> (index.js:148:1)
LOG @ browser.js:202
(anonymous) @ browser.js:266
(anonymous) @ index.js:148
await in (anonymous) (async)
emit @ events.js:158
onMessageEvent @ index.js:148
await in onMessageEvent (async)
onProviderPayload @ index.js:148
await in onProviderPayload (async)
onPayloadHandler @ index.js:148
emit @ events.js:153
onPayload @ provider.ts:102
(anonymous) @ provider.ts:149
emit @ events.js:153
onPayload @ index.js:148
e.onmessage @ index.js:148
browser.js:202 {context: 'client'} Error: No matching key. history: 1717496949451525
at Vt.getRecord (index.js:148:1)
at Vt.get (index.js:148:1)
at ds2.onRelayEventResponse (index.js:148:1)
at EventEmitter.<anonymous> (index.js:148:1)
LOG @ browser.js:202
(anonymous) @ browser.js:266
(anonymous) @ index.js:148
await in (anonymous) (async)
emit @ events.js:158
onMessageEvent @ index.js:148
await in onMessageEvent (async)
onProviderPayload @ index.js:148
await in onProviderPayload (async)
onPayloadHandler @ index.js:148
emit @ events.js:153
onPayload @ provider.ts:102
(anonymous) @ provider.ts:149
emit @ events.js:153
onPayload @ index.js:148
e.onmessage @ index.js:148
2index.js:148 Uncaught (in promise) Error: No matching key. history: 1717496949451525
at Vt.getRecord (index.js:148:1)
at Vt.get (index.js:148:1)
at Br2.onRelayEventResponse (index.js:148:1)
at EventEmitter.<anonymous> (index.js:148:1)
actually, the error is caught, but what i get is an empty error. it's also broken until i restart my browser agai. still hashpack 10.1.1
try {
// ...
} catch (throwable) {
console.debug({ throwable })
}
i guess there might be some stringification going on somewhere
Any updates ?
hashconnect randomly just startet throwing errors for a transaction that was working fine before. the history key the error references changes on every attempt, but the error message is repeated 5+ times.
the transaction execution at https://github.com/blokk-studio/HLiquity/blob/b0a9a711d65c3d162366159f48b2ec063de8be08/packages/lib-hashgraph/src/HashgraphLiquity.ts#L2545 errors out immediately, even though hashpack shows me the approval dialog. the same for https://github.com/blokk-studio/HLiquity/blob/b0a9a711d65c3d162366159f48b2ec063de8be08/packages/lib-hashgraph/src/HashgraphLiquity.ts#L2564. using HashConnect.sendTransaction() results in the same. tried disconnect+reconnect, but the issue persists.
i don't have any repro steps, this started happening without any changes to my code.