1. Rajkumar K S
  2. PowerBuilder
  3. Tuesday, 6 June 2023 16:41 PM UTC
Hi Team,
 
We are facing one issue with HttpClient Object. This service is not working Post Migration of Appeon PB2017 to 2022.
When we are calling the HTTP Post Method with HTTPS it is returning -1 which is -1 -- General error . Kindly let us know the reason for getting this error.. 
 
Regards
Rajkumar K S
Logan Liu @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 7 June 2023 03:17 AM UTC
  2. PowerBuilder
  3. # 1
Hi Rajkumar,
1) What return value can you see if call HttpClient.GetResponseStatusCode() after getting -1?
Please try to see whether you can workaround this by setting httpClient.anonymousAccess = true, refer to AnonymousAccess - - Objects and Controls (appeon.com)
2) If your OS is Win 10, you can also set httpClient.SecureProtocol to 5 (TLS 1.2) and try again.
If still not resolved, Kindly please report your case via our support ticketing system to ensure it is being properly received by our tech support and tracked at: https://www.appeon.com/standardsupport/
Regards, Logan
Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 6 June 2023 18:53 PM UTC
  2. PowerBuilder
  3. # 2

Hi Rajkumar ;

  I would first suggest using a utility like Postman to call the Restful API and decipher the strings that you need to have the HTTPClient object call with. Once you know that, then you can set-up the properties in the HTTPClitny object properly. If these calling conventions are not used properly, the Post method will constantly fail.

Regards ... Chris

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.