Question
Swift
Swift
BE
Swift
Posted: Oct 23, 2018
Last activity: Oct 25, 2018
Last activity: 25 Oct 2018 9:42 EDT
Closed
Solved
HTTP 403 Error in REST and SOAP connectors
When trying to create and test any connector rule, say Connect-SOAP or Connect-REST, a HTTP 403 error comes up.
Show More
When trying to create and test any connector rule, say Connect-SOAP or Connect-REST, a HTTP 403 error comes up.
pyStatusVal - Fail: Unexpected HTTP 403 Response code
pyStatusMsg - the HTTP response code of 403 indicated a client error. The response data may contain a reason.
We get the same error when we try to run OOTB Pega API REST services using connect-REST.
Strangely these services run and work standalone as well as when invoked from SOAP UI.
Even using the Connect-SOAP wizard, in the very first step of configuring the WSDL source, this fails with same HTTP 403 error.
Same is the case for Connect-REST wizard when testing connectivity.
On further investigation, we could see the following information on the error :
Code:
403
The response data was not recognized as JSON or XML and cannot be saved.
Response Data : 
Seeing a similar response no matter what the type of Connector it is.
Kindly help in resolving this issue.
Pega Platform 7.3.1
Server : JBoss
Show Less
Issue Resolved.
Below is the resolution:
The response hash we were getting is Base64 encoded.
We decoded it found it that Jboss was configured with a proxy setting.
<system-properties>
<property name="http.proxyHost" value="XX.XXX.XXX.XXX"/>
<property name="http.proxyPort" value="XXXX"/>
<property name="jboss.as.management.blocking.timeout" value="3000"/>
</system-properties>
So we added a new non proxy setting with the url of our environment.
<property name="http.nonProxyHosts" value="localhost, XX.XXX.X.XXX"/>
Now the connectivity works fine.