Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

500 error if backup code is incorrect #303

Closed
matthew-white opened this issue Oct 22, 2020 · 1 comment
Closed

500 error if backup code is incorrect #303

matthew-white opened this issue Oct 22, 2020 · 1 comment

Comments

@matthew-white
Copy link
Member

While setting up backups using Frontend, if the confirmation text you enter is incorrect, Backend returns a 500 with the message "Completely unhandled exception: Cannot read property 'data' of undefined".

From a first look, it seems that Google returns an object with a property named response, but Backend expects a property named res:

.then((actor) => (!isBlank(body.code)
? google.auth.getToken(body.code)
.catch((error) => reject(Problem.user.oauth({ reason: `Unexpected error received: ${printPairs(error.res.data)}` })))

I think this explains this Sentry issue: https://sentry.io/organizations/getodk/issues/1875192039/?project=1298632

@issa-tseng
Copy link
Member

sigh. they change this all the time and they don't document it.

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

No branches or pull requests

2 participants