Giter Club home page Giter Club logo

node-nach's People

Contributors

chevett avatar glenselle avatar hortondust avatar kirkbowman avatar promag avatar reillywatson avatar robertjustjones avatar tom5191 avatar yawetse avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

node-nach's Issues

When 0 days is passed to nach.Batch cause stack size exceeded error

--- CODE

let batch = new nach.Batch({
serviceClassCode: '220', // 200 ceb and deb, 220 credit only, 225 debit only
companyName: 'XXXXXX',
standardEntryClassCode: 'CCD', // PPD consumer, CCD or CTX business
companyIdentification: XXXXX, // FEIN
companyEntryDescription: 'Safe deposit',
companyDescriptiveDate: moment(nach.Utils.computeBusinessDay(0)).format('MMM D'),
effectiveEntryDate: nach.Utils.computeBusinessDay(0),
originatingDFI:XXXX // first 8 digits of routing
});

no gbox
ADDD moment("2018-07-01T02:11:45.274") 0
/home/ubuntu/emailparse/node_modules/moment/moment.js:2618
if ((isObject(input) && isObjectEmpty(input)) ||
^
--- ERROR
RangeError: Maximum call stack size exceeded
at createLocalOrUTC (/home/ubuntu/emailparse/node_modules/moment/moment.js:2618:33)
at createLocal (/home/ubuntu/emailparse/node_modules/moment/moment.js:2635:16)
at hooks (/home/ubuntu/emailparse/node_modules/moment/moment.js:12:29)
at module.exports.isBusinessDay (/home/ubuntu/emailparse/node_modules/node-nach/lib/utils.js:137:11)
at addDays (/home/ubuntu/emailparse/node_modules/node-nach/lib/utils.js:149:9)
at addDays (/home/ubuntu/emailparse/node_modules/node-nach/lib/utils.js:152:56)
at addDays (/home/ubuntu/emailparse/node_modules/node-nach/lib/utils.js:152:56)
at addDays (/home/ubuntu/emailparse/node_modules/node-nach/lib/utils.js:152:56)
at addDays (/home/ubuntu/emailparse/node_modules/node-nach/lib/utils.js:152:56)
at addDays (/home/ubuntu/emailparse/node_modules/node-nach/lib/utils.js:152:56)

--- STACK TRACE before error

(node:21243) ExperimentalWarning: The ESM module loader is experimental.
CONN Database { open: true, filename: 'trans.sqlite', mode: 2 } undefined
MAIL Sun Jul 01 2018 03:23:00 GMT+0000 (Coordinated Universal Time) 570
no gbox
day, counter. businessDays moment("2018-07-01T03:23:00.936") 0 0
Error
at Object.module.exports.computeBusinessDay (/home/ubuntu/emailparse/node_modules/node-nach/lib/utils.js:146:14)
at nachFile (file:///home/ubuntu/emailparse/nach.mjs:25:47)
at depositInsert (file:///home/ubuntu/emailparse/msg.mjs:58:16)
at handleMsg (file:///home/ubuntu/emailparse/msg.mjs:219:7)
at EventEmitter. (file:///home/ubuntu/emailparse/index.mjs:105:9)
at Object.onceWrapper (events.js:273:13)
at EventEmitter.emit (events.js:182:13)
at /home/ubuntu/emailparse/node_modules/imap/lib/Connection.js:1470:22
at process._tickCallback (internal/process/next_tick.js:61:11)
LOOP moment("2018-07-01T03:23:00.936") 0
LOOP moment("2018-07-02T03:23:00.936") 1
LOOP moment("2018-07-03T03:23:00.936") 2
LOOP moment("2018-07-04T03:23:00.936") 3
LOOP moment("2018-07-05T03:23:00.936") 4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.