-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panic crash on import JSON or backup generated by Mealie #471
Comments
It seems Mealie updated the fields of its API spec from camel case to snake case. For example, |
You should now be able to import JSON recipes from Mealie and import all of them from the settings. |
I confirm that import works. Few fields are missing like prep time, cook time and total time. I will try to have a look why (i have never used Go before) |
Perfect! Could you please send me JSON recipes where the import didn't fully work? Or if you want to have a look, the logic is found here: https://github.com/reaper47/recipya/blob/main/internal/integrations/mealie.go I had a look at importing a Mealie backup zip, but it's too difficult to implement because the data lies in a sqlite3 database. However, it might actually be possible to connect to the database and fetch the information from it. That should be a fun challenge! Meanwhile, you can import all your Mealie recipes at once from the settings. You provide the base URL and password of your Mealie instance and Recipya will then call the Mealie API to import all recipes, including images. Import other data such as cooking books and shopping lists is something that would be sweet to implement eventually. |
In my case the database access will be complex due to a reverse proxy in front of my instance. It's easier to use your solution to provide URL and credentials. I will try that today About the JSON it's the one in this issue. prep_time and cook_time are not used and set to 0 after import |
The times have been fixed. It will be available in the next nightly build. I wonder why importing Mealie from Docker isn't working. |
Import works thank you It's my configuration i guess. I have reverse proxy combine to different networks so requests are lost somewhere |
Confirmation that once my both containers Mealie and Recipya are in the same docker-compose and network they can access each other and then import Mealie's recipies perfectly |
Describe the bug
I try to upload a Mealie JSON file or a full backup (ZIP)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
There should be no panic and at least an error handling with a message
Screenshots
Desktop (please complete the following information):
Additional context
I'm using the default docker-compose file with nightly build. I've tried with the v1.2.2 release, result is the same
JSON File is
The text was updated successfully, but these errors were encountered: