Help accessing API

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

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

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

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

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!

Hi @mike4, are you able to make use of this at all, to handle the request?