Hello everyone. I am trying to deploy my simple golang telegram bot (with postgres DB connection (via connection string) hosted here on Render), but when I am having quite strange issues. Here is log:
May 10 04:01:18 PM ==> Build uploaded in 12s
May 10 04:01:18 PM ==> Build successful
May 10 04:01:18 PM ==> Deploying…
May 10 04:01:34 PM 2023/05/10 13:01:34 SERVER STARTED
May 10 04:01:34 PM 2023/05/10 13:01:34 DB CONNECTION ESTABLISHED
May 10 04:02:16 PM 2023/05/10 13:02:16 unexpected end of JSON input
So server successfully starts and working, but after some time I am getting this JSON errors. It runs absolutely fine on my PC. Furthermore, even after server started, render says “in progress…”.
After that it restarts server several times with the same error and then fails…
Edit: I am not using any side packages except pq, which, according to the logs, is always downloaded and works