phantomate / Untare

Flutter app for tandoor recipes
GNU General Public License v3.0
92 stars 10 forks source link

shopping list never loads #99

Open anytimesoon opened 1 month ago

anytimesoon commented 1 month ago

Bug Summary

I can never see my shopping list. Everything else loads fine, but the shopping list just shows the spinning circle for ever

Reproduction Steps

Log in to the app Go to shopping list Wait

Expected Results

Shopping list should load

Actual Results

Shopping list doesn't load

Checklist

anytimesoon commented 1 month ago

Just checked the tandoor logs. Looks like the operation times out due to a header from upstream.

phantomate commented 1 month ago

Hi, is this always the case? Also if you have entries on the list? On my phone it only loads for some seconds if I don't have anything on the list. But after some seconds it finishs

anytimesoon commented 1 month ago

This is in all cases, on all devices and even when connecting directly to the server on the lan

phantomate commented 1 month ago

Do you have the same issue with the web version?

anytimesoon commented 1 month ago

Yes it does. Has done for years.

My set up is using docker compose. Haven't deviated from the example file. And I have that running behind caddy.

Here's the relevant log line

tandoor-nginx_recipes-1  | 2024/08/03 11:22:55 [error] 21#21: *1 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 192.168.48.1, server: localhost, request: "GET /api/shopping-list-entry/?checked=recent HTTP/1.1", upstream: "http://192.168.48.3:8080/api/shopping-list-entry/?checked=recent", host: redacted

Looks like it's coming from nginx, so I tried removing that from the stack and trying again. That didn't fix the issue, nor did it provide any logs

anytimesoon commented 1 month ago

Is there a debug build/option of the app I could use to try to root out the issue? Something that prints logs somewhere?

Maybe a quick guide on how to build locally added to the readme, so I could try and replicate this on my laptop.

phantomate commented 1 month ago

Do you also have the issue with the web version? When you say it times out it looks like a backend issue or setup issue rather than something with the frontend/app

anytimesoon commented 1 month ago

I know what you mean about this sounding like a backend issue, but I'm not getting it with the web app. On there, the shopping list loads fine.

anytimesoon commented 3 weeks ago

Looks like there's a difference between the api call from the web app and this app. Web uses /api/shopping-list-entry/ but untare uses /api/shopping-list-entry/?checked=recent

If checked is set to anything other the null or false, the request times out. I'll raise a ticket over on the tandoor repo

anytimesoon commented 3 weeks ago

Apparently, this is a known issue that will ne resolved with the release of the vue3 project https://github.com/TandoorRecipes/recipes/issues/3264#issuecomment-2298443170