mike4
April 24, 2024, 2:02pm
1
Good morning!
I am hoping someone can help me access this API to generate a bearer token: fileField (follettcommunity.com)
I am able to access it via Postman with a key and secret via a Post call and I get a Bearer Token returned. However, I am having trouble with this in Knime and am getting a 415 error in return.
I have set up a Post with this Header.
Here is the Bosy of the Post.
Here is the Connection Tab.
I will be grateful for any help that can be provided.
Thank you,
Michael
Hi @mike4 ,
checking the response code 415:
It hints towards a wrong response type being requested but I see you added the correct request header “Accept”. Eventually you must explicitly request “Accept: application/json; charset=utf-8”.
The POST Request node might also issue an HTTP 1.0 but not 1.1 request (just speculation) but that might result in a different error.
Best
Mike
1 Like
mike4
April 25, 2024, 12:54pm
3
Thank you so much for your response.
I added this to the request header.
However, I am still getting a 415 error. I’d love to try any other ideas that you might have.
Best,
Michael
@mike4
are you sure you using the right Content-Type and it shouldn’t be
Content-Type: application/json'
instead?
br
mike4
April 25, 2024, 4:49pm
5
Thank you, Daniel.
Unfortunately, that is still yielding me a 415 error.
If it helps, I am posting an image of the headers and body from Postman that do work.
I’d appreciate any more ideas that this amazing community has!
Best,
Michael
mike4
April 25, 2024, 4:51pm
6
I will add I also tried changing my Header in Knime for Accept to / and added a header for Accept-Encoding, but each time received a 415 error.
Thank you, all!
takbb
April 27, 2024, 7:47am
7
Hi @mike4 , are you able to make use of this at all, to handle the request?
Hi,
you’ll need to encode the request body as “form encoded”. In Palladian , there’s a node which allows you to conveniently create the necessary structure which you can then use with the HTTP Retriever :
HTH,
Philipp
system
Closed
July 26, 2024, 7:48am
8
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.