Problem with nodejs-sdk-5.0

Problem with nodejs-sdk-5.0

Hi, 

I recently updated our codebase to use the new 5.0 version (Used 2.0 before that). Everything works fine in local but when it's built into a docker container I get a error message:

SDKException [Error]: TypeError: responseHandler.getMessage(...).getValue is not a function
    at Function.getFieldsInfo (file:///root/node/node_modules/@zohocrm/nodejs-sdk-5.0/lib/utils/util/utility.js:424:17)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Function.getFields (file:///root/node/node_modules/@zohocrm/nodejs-sdk-5.0/lib/utils/util/utility.js:203:5)
    at async RecordOperations.createRecords (file:///root/node/node_modules/@zohocrm/nodejs-sdk-5.0/lib/core/com/zoho/crm/api/record/record_operations.js:202:3)
    at async Function.createRecords (file:///root/node/zoho_functions/CreateLogEntry.js:99:20) {
  code: null,
  cause: TypeError: responseHandler.getMessage(...).getValue is not a function
      at Function.getFieldsDetails (file:///root/node/node_modules/@zohocrm/nodejs-sdk-5.0/lib/utils/util/utility.js:910:14)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)
      at async Function.getFieldsInfo (file:///root/node/node_modules/@zohocrm/nodejs-sdk-5.0/lib/utils/util/utility.js:295:35)
      at async Function.getFields (file:///root/node/node_modules/@zohocrm/nodejs-sdk-5.0/lib/utils/util/utility.js:203:5)
      at async RecordOperations.createRecords (file:///root/node/node_modules/@zohocrm/nodejs-sdk-5.0/lib/core/com/zoho/crm/api/record/record_operations.js:202:3)
      at async Function.createRecords (file:///root/node/zoho_functions/CreateLogEntry.js:99:20),
  details: null
}

My code stripped down in CreateLogEntry is:

import * as ZOHOCRMSDK from "@zohocrm/nodejs-sdk-5.0";

export default class CreateLogEntry {
  /**
   *  Create Records
   * This method is used to create records of a module and print the response.
   * @param {String} moduleAPIName The API Name of the module to create records.
   */
  static async createRecords(
    user
  ) {

    let recordOperations = new ZOHOCRMSDK.Record.RecordOperations();
    let request = new ZOHOCRMSDK.Record.BodyWrapper();
    let recordsArray = [];
    let record = new ZOHOCRMSDK.Record.Record();
    if (user) {
      let userRecord = new ZOHOCRMSDK.Users.MinifiedUser();
      userRecord.setId(BigInt(user));
      record.addKeyValue("Ty_ntekij", userRecord);
    }
    recordsArray.push(record);
    request.setData(recordsArray);

    let headerInstance = new ZOHOCRMSDK.HeaderMap();
    let response = await recordOperations.createRecords(
      moduleAPIName,
      request,
      headerInstance
    );

Thanks in advance.