Article

Httpclient: fmtoday: system date conversion error.

Information

 
Article Number000091517
EnvironmentProduct: OpenEdge
Version: 11.6
OS: Windows 10
Other: Httpclient
Question/Problem Description
When executing an HTTP request using PUT method, OpenEdge returns the error below for only one user.

I.e

USING OpenEdge.Core.*.
USING OpenEdge.Net.*.
USING OpenEdge.Net.HTTP.*.
USING Progress.Json.ObjectModel.*.
USING Progress.Lang.*.
USING OpenEdge.Net.HTTP.lib.ClientLibraryBuilder.
              

DEFINE VARIABLE oLib           AS OpenEdge.Net.HTTP.IHttpClientLibrary NO-UNDO.
DEFINE VARIABLE oHttpClient    AS OpenEdge.Net.HTTP.IHttpClient        NO-UNDO.
DEFINE VARIABLE oRequest       AS IHttpRequest                         NO-UNDO.
DEFINE VARIABLE oResponse      AS IHttpResponse                        NO-UNDO.
DEFINE VARIABLE oURI           AS URI                                  NO-UNDO.
 
 
     ASSIGN oURI      = NEW URI("localhost").
            oURI:port = 8080.
            oURI:PATH = "/test".

      ASSIGN oRequest = RequestBuilder:PUT(oURI, NEW String(""))
             :AddHeader('Authorization', 'Bearer ' + "<base64-token>" )
             :AddHeader('Content-Type', 'application/json')             
             :AcceptJson()
             :Request.

      ASSIGN oLib        = ClientLibraryBuilder:Build():sslVerifyHost(NO):library
             oHttpClient = ClientBuilder:Build():UsingLibrary(oLib):Client.

      oResponse = ResponseBuilder:Build():Response.      
      oHttpClient:Execute(oRequest, oResponse).
 
    
MESSAGE oResponse:StatusCode   SKIP 
        oResponse:StatusReason SKIP
        oResponse:ContentType  SKIP
        oResponse:Entity:ToString() VIEW-AS ALERT-BOX.
Steps to Reproduce
Clarifying Information
The same request works when executed from the server hosting the application.
Error MessageSYSTEM ERROR: fmtoday: system date conversion error. (45)
Error reading socket, ret=10054, erro=2. (778)
** Incomplete write when writing to the server. (735)
Defect/Enhancement Number
Cause
The exact cause is not known at this time.
Resolution
None at this time.
Workaround
Add HttpVersion method to the request call.

I.e
      ASSIGN oRequest = RequestBuilder:PUT(oURI, NEW String(""))
             :AddHeader('Authorization', 'Bearer ' + "<base64-token>" )
             :AddHeader('Content-Type', 'application/json')
             :HttpVersion('HTTP/2')
             :AcceptJson()
             :Request.
Notes
Attachment 
Last Modified Date9/12/2018 7:39 PM


Feedback
 
Did this article resolve your question/issue?

   

Your feedback is appreciated.

Please tell us how we can make this article more useful. Please provide us a way to contact you, should we need clarification on the feedback provided or if you need further assistance.

Characters Remaining: 1025