-
-
Notifications
You must be signed in to change notification settings - Fork 566
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 400 on recipe import #3205
Comments
please share the tandoor logs |
These are the last lines of /var/lib/docker/containers//-json.log - is this the log you need? {"log":"::ffff:172.18.0.4 - - [03/Jul/2024:21:45:18 +0200] "GET /api/space/1/ HTTP/1.0" 200 538 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"\n","stream":"stdout","time":"2024-07-03T19:45:18.19075536Z"} {"log":"::ffff:172.18.0.4 - - [03/Jul/2024:21:45:18 +0200] "GET /static/assets/logo_color_svg.svg HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"\n","stream":"stdout","time":"2024-07-03T19:45:18.284680782Z"} {"log":"::ffff:172.18.0.4 - - [03/Jul/2024:21:45:18 +0200] "GET /static/assets/logo_color_192.png HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"\n","stream":"stdout","time":"2024-07-03T19:45:18.285415414Z"} {"log":"::ffff:172.18.0.4 - - [03/Jul/2024:21:45:19 +0200] "GET /static/assets/spinner.svg HTTP/1.0" 304 0 "http://[some-ipv6-address]/static/css/app.min.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"\n","stream":"stdout","time":"2024-07-03T19:45:19.263794912Z"} {"log":"::ffff:172.18.0.4 - - [03/Jul/2024:21:45:24 +0200] "POST /api/recipe-from-source/ HTTP/1.0" 400 49 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"\n","stream":"stdout","time":"2024-07-03T19:45:24.258337848Z"} {"log":"Bad Request: /api/recipe-from-source/\n","stream":"stderr","time":"2024-07-03T19:45:24.258432742Z"} |
please share the full log in text format, not json |
where is it located? the only log I found is that one in json format. |
it's standard out on the container |
Ok, thank you for the clarification! The output of the container is: root@26bb4c90:/srv# docker compose up |
is debug enabled? |
that's the output with debug=1 set in .env file (I hope this is what you asked for - please let me know if not) root@26bb4c90:/srv# docker compose up |
Could the reason be the brackets of the ipv6 address like in http://[::1] ? |
Subscribed as I have the same issue. I am running Docker Compose automatically updating with Watchtower. Currently on 1.5.18. I'm quite the Docker noob might need some help if you need further info from me. |
I think what's going on in my case at least, is that the recipe site isn't publishing recipes in the ld+json format that the recipe-scrapers library needs. This isn't clear in the doco/inline help (e.g. https://docs.tandoor.dev/features/import_export/), and I was muddling around trying to get it working for a long time. Eventually I came across this discussion which cleared things up for me - #3243 So Tandoor can't import from any URL, only those sites supported by recipes-scraper which are listed here - https://github.com/hhursev/recipe-scrapers |
To clarify - the import/export is importing from other apps. |
Thank you for the hint with recipe_scrapers library. This works on the import url mentioned in the first post. The import worked really well when Tandoor was running on a local Raspberry Pi. Then I moved Tandoor to a hosted IPv6 Server and since then it is not working anymore. |
Yes, I think that kind of illustrates the point. If I want to import a recipe from a website, I click the 'plus' in the top right and choose 'Import Recipe' and end up here http://tandoor/data/import/url. There are 4 options of recipe source, with 'Website' selected by default (Website|App|Source|Bookmarklet) With the 400 errors I have been getting, I wanted to make sure I am importing correctly, so I click on the 'Help' icon at top right which takes me here: https://docs.tandoor.dev/features/import_export/ If this help doesn't related to website import, then it should. |
Tandoor Version
1.5.17
Import URL
https://www.chefkoch.de/rezepte/2812481433250378/Die-ultimative-vegane-Lasagne.html
When did the issue happen?
after pressing the search button
This happens on different sites, not only chefkoch.
Response / message shown
The text was updated successfully, but these errors were encountered: