I have a GET Request to ask an API
Problem is when I see the GET Results, I’m seeing a question mark in red color in the body column instead of seeing the result of the API
Status column is 200 (so no errors)
Content type is: application/json; charset=utf-8
The API works fine and it returns correct data in JSON format
What else can be wrong?
I managed to install Palladian and tried to use “HTTP Retriever”, however I’m having an Authentication problem now, status code 401
Using “GET Request” I was able to specify the credentials, but with “HTTP Retriever” there is no setting for credentials. Any workaround ?
If you hover over the red question mark a tooltip may appear with further information why the response could not be interpreted correctly. Also the log output may contain more information.
however I’m having an Authentication problem now, status code 401
Using “GET Request” I was able to specify the credentials, but with “HTTP Retriever” there is no setting for credentials. Any workaround ?
We do not currently have authentication options in the HTTP Retriever configuration. You could build the Authorization header manually though by using e.g. a Java Snippet node, depending on the authentication method (probably HTTP “Basic”?!?)
– Philipp
PS: Thought I had an example workflow somewhere. I’ll post it in case if I should find it again
Then there is likely a difference in the two requests. Without having access to that service I cannot tell you more. You can try to extract more response headers such as Content-Length.
WIthin the 4.0.1 version of KNIME AP, we added a new Authentication method NTLM (Labs) which uses a different method for supporting NTLM. Maybe worth a try to see if this helps.