-
Notifications
You must be signed in to change notification settings - Fork 94
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
Error parsing recipe: Cannot parse recipe: Unknown object found during flattening of instructions.
#1297
Comments
Should we add a tag for these import/parse errors? |
There is already one 😉. The errors/warnings are mostly ignored and not of much importance. We might want to remove them from the NC logs altogether, once #1067 is implemented/merged. I will have a look at the page you mentioned. The message means, however, that the parsing algorithm of XML already succeeded and the JSON is going to be built. Something was offending, I do not yet know what it was. |
I don't see it. What is the name? Also, I saw a ruby tag in there. We don't have any ruby, do we?
Thanks. I had a poke around the code. I thought those logs meant something was failing already upon parsing the HTML. I'm still not very familiar with the backend. |
Ok, just to be sure we are talking is the same thing. There is a tag website support that i added already to this issue. It is intended for problems with inputting from various sites. Is this what you meant?
I am still on my way to make the backend code more documented. But this involves often a refactor cycle. The messages mainly mean that the pages are not strictly stick to the XML language standards. Nope that HTML is not 100% XML. It should be compatible but HTML is more forgiving. Thus, the XML parser complains about various issues in the imported sites. Many are not critical. Most of the sizes do not serve valid HTML (in the sense of the standard). This causes the errors and warnings. If you want, we can together have a look at the complete backend, of this is something you want to get a grasp on. Just an offer. |
Yes, that's what I meant. Sorry, I didn't expect it to be called "website support" and I didn't notice you added a tag.
That makes sense. I just didn't see anything else in the logs and assumed the XML parsing errors were the cause.
Sure! |
I just saw, I forgot to answer. Yes, we do have Ruby in use: Building the GitHub pages uses the static website generator Jekyll that ist using ruby. |
I just checked the reason why the recipe does not parse successfully. We are not capable of parsing The exception is thrown in this line. |
Description
I'm getting an error importing a recipe. The page seems to have invalid HTML but shouldn't it still be imported?
Reproduction
Expected behavior
Recipe imported successfully.
Actual behavior
There is a popup saying "Cannot parse recipe: Unknown object found during flattening of instructions."
The logs report:
Browser
Which browser are you using? Firefox 106.0.1
Versions
Nextcloud server version: ?? 24.0.6
Cookbook version: ?? 7e17b69
Database system: MariaDB
The text was updated successfully, but these errors were encountered: