homebrewery: Unable to save to gdrive
Error: Service Unavailable
{
"status": 503,
"method": "POST",
"url": "/api/newGoogle/"
}
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 18 (9 by maintainers)
Error: Service Unavailable
{
"status": 503,
"method": "POST",
"url": "/api/newGoogle/"
}
Crash is occurring in
/new
on line 168 after attempting to save, becausebody
is undefined if saving fails:https://github.com/naturalcrit/homebrewery/blob/3cf5dc74bbb2d8ca010bb822bf67c762d52be6e3/client/homebrew/pages/newPage/newPage.jsx#L156-L168
We need to:
Gracefully handle that error. Exit the function if
body
is empty and post up a better message to the user without crashing (similar to what we already have in theedit
page)Investigate why the Google brew fails to save in the first place. Doesn’t look like a “login” issue otherwise we would get an error 401 and we would see
Not signed in!
Seems to be a 403 “insufficient credentials” thingAlso, apparently I already ran into this error (or a similar error) earlier this year (stackoverflow) but I can’t find a relevant issue opened on Github.