Skip to content
This repository was archived by the owner on Jun 6, 2019. It is now read-only.

look for HTTP code 410 in response to PUT /v2/wallet/{paymentId} #75

Open
mrose17 opened this issue May 17, 2018 · 0 comments
Open

look for HTTP code 410 in response to PUT /v2/wallet/{paymentId} #75

mrose17 opened this issue May 17, 2018 · 0 comments

Comments

@mrose17
Copy link
Contributor

mrose17 commented May 17, 2018

if the PUT call to /v2/wallet/{paymentId} sees HTTP code 410 immediately prior to https://github.com/brave-intl/bat-client/blob/master/index.js#L936 this indicates that the earlier call at https://github.com/brave-intl/bat-client/blob/master/index.js#L936 to get the current surveyor information is no longer valid.

instead of invoking the callback with an error, the client should fetch the new current surveyor and try again. however, to avoid looping, it should do this at most once.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant