Muhammad Nabeel
Muhammad Nabeel
NNuxt
Created by David on 1/12/2024 in #❓・help
Fetch error (fail) on reload button in Docker
Hi @David did you manage to find a fix for this issue?
3 replies
NNuxt
Created by grelle on 1/12/2025 in #❓・help
Nuxt Apollo useAsyncQuery not executing on render
@grelle Did you find a solution for this? I am having the same issue and I have been breaking my head over this for many days without any luck. I tried calling my api from nuxt's server side (/api/...), but that also doesn't work. I am basically calling the api from a route middleware where I check if the user's session is valid or not. If it's valid, he is allowed to go to a protected route, otherwise signin. In SSR mode, the session api fails with error: ERROR [Apollo] Error fetching session: fetch failed. Because of this, if user refreshes the page, they see login page for an instance and then see the actual page when session is retrieved successfully.
10 replies