netgum / archanova

Archanova monorepo
https://archanova.io/
19 stars 11 forks source link

400 Error: SDK reset leads to relayer api errors #65

Closed RyRy79261 closed 4 years ago

RyRy79261 commented 4 years ago

Description

After resetting the SDK, attempts to submit queries to the relayer return 400 errors.

In the example image, I was submitting a friend recovery request, the estimation works however

image

RyRy79261 commented 4 years ago

image

RyRy79261 commented 4 years ago

image

RyRy79261 commented 4 years ago

The error still persists @jamesyoung

RyRy79261 commented 4 years ago

image

stanislaw-glogowski commented 4 years ago

@RyRy79261 Can you console.log sdk.state.accountFriendRecovery ... it would help us a lot.

RyRy79261 commented 4 years ago

@stanislaw-glogowski

I logged in, then I logged out which triggers the sdk reset, these are the results: image

It seems I cant replicated the error now though

RyRy79261 commented 4 years ago

@stanislaw-glogowski it only works when I have the console logs between the steps for some reason

RyRy79261 commented 4 years ago

This is the state when I receive the error: image

RyRy79261 commented 4 years ago

So it sets the state to have the account request then reverts it to null image

stanislaw-glogowski commented 4 years ago

@RyRy79261 can you check full recovery flow - I can not reproduce error. Previous one was probably connected with backend update (changing guardian signature signer)

stanislaw-glogowski commented 4 years ago

+ before submit please console.log sdk.state.accountFriendRecovery object

RyRy79261 commented 4 years ago

image

RyRy79261 commented 4 years ago

This is the function calling it image