Timeout with NotesHTTPRequest

Hi everyone,

I’ve got a problem with a NotesHTTPRequest under client version Notes 14.5. when connecting to an REST endpoint. The POST request returns a timeout.
The same request works fine under client version 12.0.2 FP3

Here is the snippet of code:

Dim sess As New NotesSession
Dim webRequest As NotesHTTPRequest
Dim strUrl As String, strJSON As String
Dim varHlp As Variant

Set webRequest = sess.Createhttprequest()
strUrl = "http://myserver/Authentication/Logon"
Set webRequest = sess.Createhttprequest()
Call webRequest.Setheaderfield("Content-Type", "application/json")
Call webRequest.Setheaderfield("accept", "*/*")
webRequest.Preferstrings = True
strJSON = |{
   "userName": "xxx",
   "passwordHashed": "yyy"
}|
varHlp = webrequest.Post(strURL, strJSON)

Any ideas?

Thanks in advance,
Thomas

Update: When running the agent directly on the server it works. Must be a client problem.

Hi,

Thank you for reaching out — and I believe this might be your first post. Welcome to our community!

To assist with troubleshooting, please try the following cURL command using the Windows Command Prompt to check the server response:

curl -X POST -H “Content-Type: application/json” -d ‘{ “userName”: “xxx”,“passwordHashed”: “yyy”}’ http://myserver/Authentication/Logon

Replace “xxx” and “yyy” with the appropriate credentials.

Additionally, to help us investigate further, we kindly request that you raise a case with the HCL Support team and provide the following diagnostic information:

Add the following Notes.ini variable:
Debug_NotesHTTPRequest=1

Restart the Notes client and reproduce the issue.

Collect and share the console.log file.

Please perform these steps on both Notes 12.0.2 FP3 and Notes 14.5 clients. This comparison will help us analyze differences in behavior between the versions.

If we require any additional information, we will contact you through the case.

Best regards,
Hemant Naik

Hi,

this problem is solved.
It was an internal problem with a webproxy.