Skip to main content
Solved

HTTP Connector -4 - Unsuccessful (invalid headers).

  • November 1, 2021
  • 4 replies
  • 150 views

Which headers for an API request are implicitly filled by the SF?

I want to call an API and the error message is -4 - Unsuccessful (invalid headers).

I also use a header [{ "Key": "x-api-key", "Value": "123"}].
 

I have successfully called the API with the following headers in Postman.

 

Again there is too little information in the documentation and this costs me a lot of time to figure out by trial-and-error.

 

Best answer by Rolf Goossen

Resolved:

Using only the x-api key in the header including [{ combined with changing my response domain to nvarchar(max) instead of varchar(max)

This topic has been closed for replies.

4 replies

Forum|alt.badge.img+17
  • Moderator
  • November 2, 2021

Can you check the indicium log and post the contents here for the http call? 

 


  • Author
  • Sidekick
  • November 2, 2021

 

@Erwin Ekkel  thanks for replying, I don't see any targeted error in our basic indicium.
I can send the log by e-mail if necessary. I am not aware of whether this is sensitive information.


  • Author
  • Sidekick
  • November 2, 2021

 


  • Author
  • Sidekick
  • Answer
  • November 3, 2021

Resolved:

Using only the x-api key in the header including [{ combined with changing my response domain to nvarchar(max) instead of varchar(max)