Skip to content
This repository has been archived by the owner on May 8, 2023. It is now read-only.

Weird DB connection error #156

Open
tabeckers opened this issue Jul 16, 2020 · 0 comments
Open

Weird DB connection error #156

tabeckers opened this issue Jul 16, 2020 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@tabeckers
Copy link
Contributor

Situation
Upon migrating to a new database with EXACTLY the same data and schema (pg_dump => pg_restore), some weird bugs appeared. The connection strings were replaced and the login was valid, as the logs of our new database showed. The errors that were shown in the logs dictated parsing errors:

Error parsing column 4 (push_notification_platform=9107273536666885396-4160809626774872611-1 - String)

This column consists of either 'fcm' or 'apns', so clearly something went wrong with the column parsing process.

Fix checks

  • When the API was run on a localhost, none of these problems appeared.
  • When the API connection string was changed back to point to the old database, none of these problems appeared.
  • When the API connection string once again pointed to the new database (after pointing to the old database), none of these problems appeared.

Conclusion
This behaviour is really weird and has no explanation as of now. The service works as it should right now, but the cause of the mentioned problems remains a mystery.

@tabeckers tabeckers added the bug Something isn't working label Nov 23, 2020
@tabeckers tabeckers added this to the Backlog milestone Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant