0

The scenario is that want to send a simple JSON-message to a URI without any authentication. I want to achieve this without using code, so I am trying to use a combination of named credentials, external services and flow.

I am however receiving the following error:

"AuthorizationFailed\",\"message\":\"The authentication credentials are not valid.\"}}","responseCode":"401"}|HttpResponseStatus:401

This is fairly frustrating as there is no authentication to pass.

Am I missing some setting?

If you need additional info, let me know (everything but the endpoint can be found below)

Method=POST, External Credential Type=EXTERNAL, HTTP Header Authorization=Not Set, Content-Type=application/x-www-form-urlencoded; charset=UTF-8, Request Size bytes=62, Retry o
1
  • 3
    If you're getting a 401, that means that the endpoint you're using does indeed want authentication. Make sure you have the correct endpoint, and check the documentation.
    – sfdcfox
    Mar 17, 2022 at 14:27

1 Answer 1

1

In the Service Schema for the External Service the path was adding a / to my URL. This was causing the authentication error

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .