Ipfs file uploading issue

I’m using IPFS service for file storage. From Node.js application I can initialize IPFS_Node and using this Node upload file.

var ipfs = ipfsClient({
            // the hostname (or ip address) of the endpoint providing the ipfs api
            host: '*****************',
            // the port to connect on
            port: '443',
            // 'api-path': '/api/v0/',
            // the protocol, https for security
            protocol: 'https',
            // provide the jwt within an authorization header
            headers: {
                authorization:
                    'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ**********************'
            }
        });
 const data = await ipfs.add(file);
         console.log(data);

it returns (Object [AsyncGenerator] {} ) empty object

I have found an error the issue is ipfs-http-client version (^44.0.1). When I update it into the latest version (^44.1.1) error resolved.

Change this: "ipfs-http-client": "^44.0.1"

To: "ipfs-http-client": "^44.1.1",