# GET Request problem

**URL:** <https://forum.knime.com/t/get-request-problem/17316>\
**Category:** KNIME Analytics Platform\
**Created:** [August 2, 2019, 7:42am UTC](https://forum.knime.com/t/get-request-problem/17316 "2019-08-02T07:42:12Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![VILANOR](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/v/838e76/32.png) [@VILANOR](https://forum.knime.com/u/VILANOR)\
**Post date:** [August 2, 2019, 7:42am UTC](https://forum.knime.com/t/get-request-problem/17316/1 "2019-08-02T07:42:12Z")

</div>

Hi

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?

Thanks

---

<div class="post-metadata">

**Author:** ![qqilihq](https://forum-cdn.knime.com/user_avatar/forum.knime.com/qqilihq/32/50_2.png) [@qqilihq](https://forum.knime.com/u/qqilihq)\
**Post date:** [August 2, 2019, 8:32am UTC](https://forum.knime.com/t/get-request-problem/17316/2 "2019-08-02T08:32:18Z")

</div>

@armingrudd Recently posted a solution how such a request could be done with the [Palladian](https://nodepit.com/product/palladian) nodes. I’d suggest to give it a try. See here:

> [@GET fails if the response does not have Content-Type set](https://forum.knime.com/t/get-fails-if-the-response-does-not-have-content-type-set/17295/2):
>
> Hi @bedo2991 and welcome to the KNIME forum, This alternative approach will work for you: Pass the URLs to [HTTP Retriever](https://nodepit.com/node/ws.palladian.nodes.retrieval.HttpRetrieverNodeFactory2) and extract the result using [HTTP Result Data Extractor](https://nodepit.com/node/ws.palladian.nodes.retrieval.HttpResultDataExtractorNodeFactory) and finally the [String to JSON](https://nodepit.com/node/org.knime.json.node.fromstring.StringToJSONNodeFactory) node will give you the JSON you are looking for. Here is an example workflow for you: [Palladian\_Nodes\_JSON.knwf](https://forum-cdn.knime.com/uploads/default/original/2X/1/113974f5abeb09f02e495f238bcd997aebb410ac.knwf) (294.8 KB) blush

Best,  
Philipp

---

<div class="post-metadata">

**Author:** ![VILANOR](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/v/838e76/32.png) [@VILANOR](https://forum.knime.com/u/VILANOR)\
**Post date:** [August 26, 2019, 12:32pm UTC](https://forum.knime.com/t/get-request-problem/17316/3 "2019-08-26T12:32:08Z")

</div>

Hi

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 ?

Thanks,  
Ricard.

---

<div class="post-metadata">

**Author:** ![thor](https://forum-cdn.knime.com/user_avatar/forum.knime.com/thor/32/4_2.png) [@thor](https://forum.knime.com/u/thor)\
**Post date:** [August 27, 2019, 7:11am UTC](https://forum.knime.com/t/get-request-problem/17316/4 "2019-08-27T07:11:46Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![VILANOR](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/v/838e76/32.png) [@VILANOR](https://forum.knime.com/u/VILANOR)\
**Post date:** [August 27, 2019, 9:25am UTC](https://forum.knime.com/t/get-request-problem/17316/5 "2019-08-27T09:25:55Z")

</div>

This is what KNIME says

 ![KNIME](https://forum-cdn.knime.com/uploads/default/original/2X/e/eda73c2e4554f8b764a59ce42796bc534883ea3d.png)

---

<div class="post-metadata">

**Author:** ![thor](https://forum-cdn.knime.com/user_avatar/forum.knime.com/thor/32/4_2.png) [@thor](https://forum.knime.com/u/thor)\
**Post date:** [August 27, 2019, 9:37am UTC](https://forum.knime.com/t/get-request-problem/17316/6 "2019-08-27T09:37:53Z")

</div>

This looks like the service is sending an empty response.

---

<div class="post-metadata">

**Author:** ![VILANOR](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/v/838e76/32.png) [@VILANOR](https://forum.knime.com/u/VILANOR)\
**Post date:** [August 27, 2019, 9:50am UTC](https://forum.knime.com/t/get-request-problem/17316/7 "2019-08-27T09:50:48Z")

</div>

Really? It doesn’t make sense, this is the response I’m getting from the browser:

[response.json](https://forum-cdn.knime.com/uploads/default/original/2X/d/df601cbfb0bf6af8a9c5646b39b00b1a345ba9e6.json) (92.4 KB)

Is it something wrong in the way I’m making the request?

 ![request](https://forum-cdn.knime.com/uploads/default/original/2X/1/1ac8962a2a0687f0ad44dca9cd6464e2b8d31a89.png)

Thanks

---

<div class="post-metadata">

**Author:** ![qqilihq](https://forum-cdn.knime.com/user_avatar/forum.knime.com/qqilihq/32/50_2.png) [@qqilihq](https://forum.knime.com/u/qqilihq)\
**Post date:** [August 27, 2019, 1:12pm UTC](https://forum.knime.com/t/get-request-problem/17316/8 "2019-08-27T13:12:53Z")

</div>

> 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](https://nodepit.com/node/ws.palladian.nodes.retrieval.HttpRetrieverNodeFactory2) 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 🙂

PSS: I uploaded the example to my NodePit Space:

> **[HttpRetriever\_HttpBasicAuth — NodePit](https://nodepit.com/workflow/com.nodepit.space%2Fqqilihq%2Fpublic%2FPalladian%2FHttpRetriever_HttpBasicAuth.knwf)**
>
> NodePit is the world’s first search engine that allows you to easily search, find and install KNIME nodes and workflows. Explore the KNIME community’s variety. Start mining!

---

<div class="post-metadata">

**Author:** ![thor](https://forum-cdn.knime.com/user_avatar/forum.knime.com/thor/32/4_2.png) [@thor](https://forum.knime.com/u/thor)\
**Post date:** [August 29, 2019, 6:49am UTC](https://forum.knime.com/t/get-request-problem/17316/9 "2019-08-29T06:49:14Z")

</div>

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`.

---

<div class="post-metadata">

**Author:** ![VILANOR](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/v/838e76/32.png) [@VILANOR](https://forum.knime.com/u/VILANOR)\
**Post date:** [August 29, 2019, 7:37am UTC](https://forum.knime.com/t/get-request-problem/17316/10 "2019-08-29T07:37:08Z")

</div>

Authentication method must be NTLM, I don’t know how to adapt the Java Snippet node in order to do that.

---

<div class="post-metadata">

**Author:** ![VILANOR](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/v/838e76/32.png) [@VILANOR](https://forum.knime.com/u/VILANOR)\
**Post date:** [August 29, 2019, 7:46am UTC](https://forum.knime.com/t/get-request-problem/17316/11 "2019-08-29T07:46:55Z")

</div>

@thor following your suggestion I added “Content-Length” in the response headers but another red question mark appear:  
 ![knime_contentLenght](https://forum-cdn.knime.com/uploads/default/original/2X/a/a8b7c73edb4cf780e2b7cac4059e590e56a4ad24.png)

I ticked the checkbox to extract all the headers and this is the result, in case it helps:

 ![knime_headers](https://forum-cdn.knime.com/uploads/default/original/2X/7/73cae5773c83c922ba6674db9122dc85f9a27f33.png)

---

<div class="post-metadata">

**Author:** ![qqilihq](https://forum-cdn.knime.com/user_avatar/forum.knime.com/qqilihq/32/50_2.png) [@qqilihq](https://forum.knime.com/u/qqilihq)\
**Post date:** [August 29, 2019, 8:11am UTC](https://forum.knime.com/t/get-request-problem/17316/12 "2019-08-29T08:11:21Z")

</div>

> Authentication method must be NTLM, I don’t know how to adapt the Java Snippet node in order to do that.

Me neither, never used that.

---

<div class="post-metadata">

**Author:** ![thor](https://forum-cdn.knime.com/user_avatar/forum.knime.com/thor/32/4_2.png) [@thor](https://forum.knime.com/u/thor)\
**Post date:** [August 29, 2019, 11:47am UTC](https://forum.knime.com/t/get-request-problem/17316/13 "2019-08-29T11:47:59Z")

</div>

It could be that the chunked `Transfer-Encoding` is the problem. Is this a public web service that we can use for testing somehow?

---

<div class="post-metadata">

**Author:** ![jeffgullick-knime](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/j/e36b37/32.png) [@jeffgullick-knime](https://forum.knime.com/u/jeffgullick-knime)\
**Post date:** [September 17, 2019, 3:18pm UTC](https://forum.knime.com/t/get-request-problem/17316/14 "2019-09-17T15:18:44Z")

</div>

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.

 ![image](https://forum-cdn.knime.com/uploads/default/original/2X/3/33197274e796f547f11171af4b873682e8e26534.png)

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [March 18, 2020, 3:18am UTC](https://forum.knime.com/t/get-request-problem/17316/15 "2020-03-18T03:18:46Z")

</div>

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
