I’m getting a 404 error and unfortunately the node is not very verbose on what I did wrong. I tried to work backwards and modify the string in my curl script and I get a 404 error when I run the curl script in verbose mode. So I suspect that there is something wrong with my JSON that I’m sending. Here is what the JSON I’m trying to send over the HTTP Request node looks like:
Hi @j_ochoada , when pasting code, please use the Preformatted Text option:
That way, the quotes in your JSON code will not be transformed as Opening quotes and Closing quotes, cause that’s how your quotes look like, and we can’t tell if that’s how they are in your JSON code or if it’s the Forum platform that converted them - and that’s probably why @Daniel_Weikert asked that question to make sure you are NOT using the opening and closing quotes as we can’t tell how they really are in your code.
The error that you are getting is what the api is returning. Your JSON is a valid JSON in that it’s the correct syntax and format, so that is not the issue. The parameter here refers to the parameter you are sending via JSON. You are not sending some parameter as the api instructed to, so this is something that we can’t help without knowing what the api accepts and does not.
From your curl command, you are passing the data as ‘json=…’, but I don’t see this in any of the examples you showed.
EDIT: Just to add, the reason why apis are not very verbose is to protect against hacking. As an api, you don’t want to be telling an intruder why it’s failing. That is why, for example, when you fail at a login, it does not tell you whether specifically it’s your login or if it’s specifically your password that’s wrong. It simply says “invalid login or password”. They never say what specifically is the issue, and that’s on purpose
@bruno29a Apologies for not knowing about the formatting options. Here is a current version of the JSON after clicking preformatted text and pasting it in. This JSON works and there was actually an issue with the data I was passing which @qqilihq helped me sort out
Thanks for explaining why the failures are so obtuse, that makes sense!
@duristef Thanks for the link! Yes I have been through all that documentation and believe it or not I have exhausted CDD’s support current expertise in KNIME. Everything I learn here though I am posting to the HUB so others can have an easier time than I have