issue with TXDataWebConnection.SendRequestAsync

I use this method to retrieve the config file from the server, this has been working fine. However I have just built an app that previously worked with Delphi 12.3 and XData 5.22.0.1 and now get the error:

rtl_1_0_1814.js:856 Uncaught (in promise) TypeError: value._AddRef is not a function

this is the offending method

{$IFDEF JSASYNC}
function TXDataWebConnection.SendRequestAsync(
  Request: IHttpRequest): IHttpResponse;
var
  Promise: TJSPromise;
begin
  Promise := TJSPromise.new(
    procedure(resolve, reject: TJSPromiseResolver)
    begin
      SendRequest(
        Request,
        procedure(Response: IHttpResponse)
        begin
          Response._AddRef; //<--- here
          resolve(Response);
        end,
        procedure
        begin
          reject(Exception.Create('Request error: ' + Request.Uri));
        end
      );
    end
  );
  Exit(Promise);
end;
{$ENDIF}

Please refer to: