I had the same problem, for some reason the query gets executed upon start of the container when no user is authenticated. Surround the code with a try catch block and catch the exception. Return an empty list. The next time the query gets executed there will be an authenticated user, and it will (hopefully) work.