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)

Most upvoted comments

Crash is occurring in /new on line 168 after attempting to save, because body is undefined if saving fails:

https://github.com/naturalcrit/homebrewery/blob/3cf5dc74bbb2d8ca010bb822bf67c762d52be6e3/client/homebrew/pages/newPage/newPage.jsx#L156-L168

We need to:

  1. 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 the edit page)

  2. 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” thing

Also, 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.