Skip to content
This repository was archived by the owner on Aug 9, 2021. It is now read-only.

Production errors being thrown #39

@irvingpop

Description

@irvingpop

Capturing these errors from stdout on the container:

$ kubectl -n operationcode logs -f town-crier-6469f7f8d-7spvs                                                               <aws:operationcode>

> [email protected] start /usr/src/app
> node announcer.js

Refreshing the CRON Table
/usr/src/app/node_modules/cron/lib/cron.js:413
				throw new Error('Unknown alias: ' + alias);
				^

Error: Unknown alias: und
    at /usr/src/app/node_modules/cron/lib/cron.js:413:11
    at String.replace (<anonymous>)
    at CronTime._parse (/usr/src/app/node_modules/cron/lib/cron.js:406:29)
    at new CronTime (/usr/src/app/node_modules/cron/lib/cron.js:46:9)
    at new CronJob (/usr/src/app/node_modules/cron/lib/cron.js:527:19)
    at /usr/src/app/announcer.js:82:35
    at Array.forEach (<anonymous>)
    at page (/usr/src/app/announcer.js:65:17)
    at /usr/src/app/node_modules/airtable/lib/query.js:102:17
    at Request._callback (/usr/src/app/node_modules/airtable/lib/run_action.js:68:9)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node announcer.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-11-11T18_14_00_593Z-debug.log

I can confirm that the container image we're using is the one from 2019, so I'd guess the breakage is external (perhaps an API changed?)

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