#26 Newly added recipes aren't recognized

Closed
opened 3 months ago by actuallynotjohndoe · 8 comments

I hope this issue isn't a duplicate, but it seems that newly added recipes aren't recognized by your app anymore, although I made sure that the needed files are on my device in the correct directory (I synced the recipe folder with the nextcloud app). It makes no difference if I manually create the recipe or if it's imported from a web page. Activating "Show hidden folder" in the settings makes also no difference.

I uploaded one of the newly added recipes that your app doesn't recognize.

The versions I use are:

  • android version: 11
  • nextcloud server: 20.0.5,
  • nextcloud cookbook app: 0.7.10
  • nextcloud android client: 3.14.1
  • your android app: 1.4.0 (installed via F-Droid).

Thanks in advance, besides this issue I really enjoy working with your app! :-)

I hope this issue isn't a duplicate, but it seems that newly added recipes aren't recognized by your app anymore, although I made sure that the needed files are on my device in the correct directory (I synced the recipe folder with the nextcloud app). It makes no difference if I manually create the recipe or if it's imported from a web page. Activating "Show hidden folder" in the settings makes also no difference. I uploaded one of the newly added recipes that your app doesn't recognize. The versions I use are: * android version: 11 * nextcloud server: 20.0.5, * nextcloud cookbook app: 0.7.10 * nextcloud android client: 3.14.1 * your android app: 1.4.0 (installed via F-Droid). Thanks in advance, besides this issue I really enjoy working with your app! :-)
MicMun commented 3 months ago
Owner

This type of problem is often and the most of the time it is an problem with parsing the json file.

In the attached file it is the "nutrition".
My app tries to cast this to a class, but it is an Array.
If you can edit the json file with a text editor, replace behind the key "nutrition" the [] with {}, then it works.

With version 2 of the app, I'll try a better parsing of the recipes to avoid this problems.

This type of problem is often and the most of the time it is an problem with parsing the json file. In the attached file it is the "**nutrition**". My app tries to cast this to a class, but it is an Array. If you can edit the json file with a text editor, replace behind the key *"nutrition"* the **[]** with **{}**, then it works. With version 2 of the app, I'll try a better parsing of the recipes to avoid this problems.
MicMun added the
bug
label 3 months ago
MicMun added this to the 2.0.0 milestone 3 months ago
MicMun self-assigned this 3 months ago
denwar commented 3 months ago

Confirm, I have the same issue.

android version: 10
nextcloud server: 20.0.5,
nextcloud cookbook app: 0.7.10
nextcloud android client: 3.14.1
**NC Cookbook android app: 1.4.0 (F-Droid)

Confirm, I have the same issue. android version: 10 nextcloud server: 20.0.5, nextcloud cookbook app: 0.7.10 nextcloud android client: 3.14.1 **NC Cookbook android app: 1.4.0 (F-Droid)
MicMun commented 3 months ago
Owner

@denwar it is the same problem in the recipe: behind "nutrition" is [], there the app wants {}.
See my first comment.

@denwar it is the same problem in the recipe: behind "nutrition" is **[]**, there the app wants **{}**. See my first comment.
Poster

Thank you for the quick help, I appreciate it! When can we expect the release of version 2?

Thank you for the quick help, I appreciate it! When can we expect the release of version 2?
MicMun commented 3 months ago
Owner

At the moment I think version 2 get ready end of february.
But I don't know if some problems take more time.
I work on it.

At the moment I think version 2 get ready end of february. But I don't know if some problems take more time. I work on it.
denwar commented 3 months ago

@denwar it is the same problem in the recipe: behind "nutrition" is [], there the app wants {}.
See my first comment.

I had already tested the modified json file as suggested, but the app still would not show the recipe in the android app?

Looking forward to the update, thank you for your work.

> @denwar it is the same problem in the recipe: behind "nutrition" is **[]**, there the app wants **{}**. > See my first comment. I had already tested the modified json file as suggested, but the app still would not show the recipe in the android app? Looking forward to the update, thank you for your work.
MicMun commented 3 months ago
Owner

@denwar I tested it, it show the recipe. Here is the modified json file, which worked for me.
Have you a green arrow at the json file in the nextcloud app (synced with sd card)?

@denwar I tested it, it show the recipe. Here is the modified json file, which worked for me. Have you a green arrow at the json file in the nextcloud app (synced with sd card)?
denwar commented 3 months ago

@denwar I tested it, it show the recipe. Here is the modified json file, which worked for me.
Have you a green arrow at the json file in the nextcloud app (synced with sd card)?

It's working now using your file, not sure why it wasn't when I edited the file myself, NC app was definately syncing changes.

I can't seem to get it to work myself, I've added a new recipe, edited the JSON "nutrition":{} but the android app doesn't see the recipe.

> @denwar I tested it, it show the recipe. Here is the modified json file, which worked for me. > Have you a green arrow at the json file in the nextcloud app (synced with sd card)? It's working now using your file, not sure why it wasn't when I edited the file myself, NC app was definately syncing changes. I can't seem to get it to work myself, I've added a new recipe, edited the JSON **"nutrition":{}** but the android app doesn't see the recipe.
MicMun closed this issue 1 week ago
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.