Connection and SSL Certificate Issues
You want to register your Workflow proxy in SharePoint using "SharePoint 2019 Management Shell":
Microsoft.Workflow.Client.InvalidRequestException: Failed to query the OAuth S2S metadata endpoint at URI 'https://SHAREPOINT-SERVERNAME/_layouts/15/metadata/json/1'.
Error details: 'An error occurred while sending the request.'.
HTTP headers received from the server - ActivityId: 43b6895a-6cec-44f7-a6b7-89efaaebd15e.
NodeId: WORKFLOW-SERVERNAME. Scope: /SharePoint. Client ActivityId : ce7cf99e-d231-1031-22d6-80126e9a7bda. --->
System.Net.WebException: The remote server returned an error: (400) Bad Request.
One of the reasons can be connection issues:
Another reason can be a certificate error if you open your SharePoint site:
Please make sure you can access "https://workflow.domserver.com:12290/" from your SharePoint server you run the management shell on:
(Log in using an Workflow Manager Administrator account if required.)
Make sure you can access your Web Application you want to connect to Workflow Manager (e.g. https://www.domserver.com/) on the Workflow Manager server:
Also make sure:
- The certificate is issued for the URL you are using
- Any self-signed certificate in a test environment should be added temporarily to the "Trusted Root Certification Authority" on the SharePoint server where you run the management shell and on the Workflow Server. Restart Internet Explorer and open the SharePoint site again.
Back to top