Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

shopping list never loads #99

Open
1 task done
anytimesoon opened this issue Aug 1, 2024 · 10 comments
Open
1 task done

shopping list never loads #99

anytimesoon opened this issue Aug 1, 2024 · 10 comments

Comments

@anytimesoon
Copy link

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

  • I have searched the open issues for duplicates.
@anytimesoon
Copy link
Author

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

@phantomate
Copy link
Owner

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
Copy link
Author

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

@phantomate
Copy link
Owner

Do you have the same issue with the web version?

@anytimesoon
Copy link
Author

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
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

Apparently, this is a known issue that will ne resolved with the release of the vue3 project TandoorRecipes/recipes#3264 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants