lneugebauer / nextcloud-cookbook

Android client for Nextcloud Cookbook app.
https://lneugebauer.github.io/nextcloud-cookbook/
MIT License
54 stars 9 forks source link

Timeout on initial recipe sync for large number of recipes (more than 100) #76

Closed jessebot closed 5 months ago

jessebot commented 5 months ago

Describe the bug

I believe this may be because I have a large number of recipes? I have somewhere around 111 recipes and counting (I cook a lot 😅 ), and many of them use an image URL instead of a direct image from my Nextcloud server. Is there a way we can increase the timeout to maybe a few minutes? It seems to timeout after only 15 or 20 seconds.

To Reproduce

Steps to reproduce the behavior:

  1. Sign into app using app password
  2. Select Categories, or Recipes
  3. Wait 15-20 or so seconds.
  4. "⚠️ timeout" is displayed
  5. Select Home
  6. wait 15-20 or so seconds
  7. "No recipes found" is displayed.

Expected behavior

I expected it to eventually load. It would also be cool if it just used the recipes directly from the Nextcloud files app in the Recipes directory.

Screenshots

Smartphone Info

Additional context

The only other app that is able to eventually load all my recipes is the "Nextcloud Cookbook" app, however it hasn't been updated in over a year and it's still quite slow. There used to be another app called "Nook" that did the same thing, but it's no longer available on either f-droid or aurora. Your app is the only recently updated Nextcloud cookbook app these days.

I'm running Nextcloud 29.0.0 if that helps. My recipes app in Nextcloud works fine btw, so the recipes themselves are all functional.

If there's any other info I can provide, just let me know.

Regardless, thanks for creating something for the open source community. It means a lot 💙

lneugebauer commented 5 months ago

Hi @jessebot, thank you for reporting the bug.

I have about 80 recipes stored in my Nextcloud. They take about 4 seconds to load. So I'm quite sure that you can store some more recipes ;)

Can you tell me how you are hosting your Nextcloud? On a NAS, Pi, at home, on a VPS? Do you use the Snap package, Docker, ...?

jessebot commented 5 months ago

This can be closed, as it turns out it was an issue with some stale ARP table entries after playing with NAT reflection and port forwarding accross a couple of different networks on my OPNSense router. Everything is going really well. Thanks for trying to help out regardless :)

Quick update

I'm actually now at about 240 recipes and the app is still snappy 💙