ERROR 500 nested

Hello, first of all, sorry for my English, but I have a problem. I suspect it may be due to using the free service.

The fact is that I have a project in Spring that after a few minutes of inactivity I get the following error:

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is org.hibernate.TransactionException: JDBC begin transaction failed: org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1014) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898) javax.servlet.http.HttpServlet.service(HttpServlet.java:655) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) javax.servlet.http.HttpServlet.service(HttpServlet.java:764) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) )

When I do the tests locally it doesn’t do it, I have also tried changing the DB server.
Basically I get a 500 error like it doesn’t connect to the database, but if the error is due to using the free service I am willing to pay if it is solved

Hey,

Are you still encountering the same issue today?

Jérémy.
Render Support, UTC+3