Skip to content

TypeError: Cannot read property 'NA' of undefined #6

@ekkis

Description

@ekkis

followed the simple instructions in the README. I have a file with the sample code and when I run it I get the following:

$ node acogd.js 

/Users/ekkis/dev/node_modules/agcod/index.js:80
const endpoint = this.config.endpoint[region]
^

TypeError: Cannot read property 'NA' of undefined
at module.exports._getSignedRequest (/Users/ekkis/dev/node_modules/agcod/index.js:80:42)
at module.exports.createGiftCard (/Users/ekkis/dev/node_modules/agcod/index.js:15:32)
at Object. (/Users/ekkis/dev/acogd.js:4:8)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
at internal/main/run_main_module.js:17:47

what am I missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions