Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

[BUG] Calling client.dataExtensionRow() gives the error of ERR_INVALID_ARG_TYPE and crashes the node app. #47

Open
1 of 4 tasks
aks7400 opened this issue Jul 11, 2023 · 0 comments
Labels

Comments

@aks7400
Copy link

aks7400 commented Jul 11, 2023

Describe the bug
Calling client.dataExtensionRow() gives the error of ERR_INVALID_ARG_TYPE and crashes the node app.

Expected behaviour
Get a List of records from Data Extension based on passed props.

{ Name: 'Email', Value: 'foo@bar.baz' }

Code snippet

const ET_Client = require('sfmc-fuelsdk-node');
//....

function getDERecords(){

const client = new ET_Client(clientId, clientSecret);
  const deRow = client.dataExtensionRow({
    Name: 'CustomActivityDataExt',
    props: ['Email'],
  });

  deRow.get((err, res) => {
    if (err) {
      console.error(err.message);
    } else {
      console.log(res.body.Results);
    }
  });
}

Screenshots

Screenshot 2023-07-11 at 3 06 51 PM

Environment

  • SDK Version: 2.4.0
  • Node version: 16.16.0

The bug has the severity

  • Critical: The defect affects critical functionality or critical data. It does not have a workaround.
  • Major: The defect affects major functionality or major data. It has a workaround but is not obvious and is difficult.
  • Minor: The defect affects minor functionality or non-critical data. It has an easy workaround.
  • Trivial: The defect does not affect functionality or data. It does not even need a workaround. It does not impact productivity or efficiency. It is merely an inconvenience.
@aks7400 aks7400 added the bug label Jul 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant