there have been several threads about bad gateway, server not available errors on the gamesDB.
So it could be that you experience those similar issues.
However, if those 2 errors are causing the issues u have, if try again syncing, maybe it will work.
Cause when I get the gamesDB error, after a couple refreshes, it shows again.
Not sure how it works with the sync api? But worth a try.