didx-xyz / ssi-trust-registry

Trust Registry for Self-Sovereign Identity Ecosystems
Apache License 2.0
6 stars 3 forks source link

Add SMTP config to Helm #149

Closed rblaine95 closed 12 months ago

rblaine95 commented 12 months ago
yarn run v1.22.19
$ yarn workspace @ssi-trust-registry/backend start
$ NODE_ENV=production node ./build/main.js
/app/node_modules/zod/lib/types.js:142
        throw result.error;
        ^

ZodError: [
  {
    "code": "invalid_type",
    "expected": "string",
    "received": "undefined",
    "path": [
      "smtp",
      "host"
    ],
    "message": "Required"
  },
  {
    "code": "invalid_type",
    "expected": "number",
    "received": "nan",
    "path": [
      "smtp",
      "port"
    ],
    "message": "Expected number, received nan"
  },
  {
    "code": "invalid_type",
    "expected": "string",
    "received": "undefined",
    "path": [
      "smtp",
      "auth",
      "user"
    ],
    "message": "Required"
  },
  {
    "code": "invalid_type",
    "expected": "string",
    "received": "undefined",
    "path": [
      "smtp",
      "auth",
      "pass"
    ],
    "message": "Required"
  }
]
    at get error [as error] (/app/node_modules/zod/lib/types.js:43:31)
    at ZodObject.parse (/app/node_modules/zod/lib/types.js:142:22)
    at Object.<anonymous> (/app/packages/backend/build/config.js:38:31)
    at Module._compile (node:internal/modules/cjs/loader:1241:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
    at Module.load (node:internal/modules/cjs/loader:1091:32)
    at Module._load (node:internal/modules/cjs/loader:938:12)
    at Module.require (node:internal/modules/cjs/loader:1115:19)
    at Hook.Module.require (/datadog-lib/node_modules/dd-trace/packages/dd-trace/src/ritm.js:85:33)
    at require (node:internal/modules/helpers:130:18) {
  issues: [
    {
      code: 'invalid_type',
      expected: 'string',
      received: 'undefined',
      path: [ 'smtp', 'host' ],
      message: 'Required'
    },
    {
      code: 'invalid_type',
      expected: 'number',
      received: 'nan',
      path: [ 'smtp', 'port' ],
      message: 'Expected number, received nan'
    },
    {
      code: 'invalid_type',
      expected: 'string',
      received: 'undefined',
      path: [ 'smtp', 'auth', 'user' ],
      message: 'Required'
    },
    {
      code: 'invalid_type',
      expected: 'string',
      received: 'undefined',
      path: [ 'smtp', 'auth', 'pass' ],
      message: 'Required'
    }
  ],
  addIssue: [Function (anonymous)],
  addIssues: [Function (anonymous)],
  errors: [
    {
      code: 'invalid_type',
      expected: 'string',
      received: 'undefined',
      path: [ 'smtp', 'host' ],
      message: 'Required'
    },
    {
      code: 'invalid_type',
      expected: 'number',
      received: 'nan',
      path: [ 'smtp', 'port' ],
      message: 'Expected number, received nan'
    },
    {
      code: 'invalid_type',
      expected: 'string',
      received: 'undefined',
      path: [ 'smtp', 'auth', 'user' ],
      message: 'Required'
    },
    {
      code: 'invalid_type',
      expected: 'string',
      received: 'undefined',
      path: [ 'smtp', 'auth', 'pass' ],
      message: 'Required'
    }
  ]
}

Node.js v20.9.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed.
Exit code: 1
Command: /usr/local/bin/node
Arguments: /opt/yarn-v1.22.19/lib/cli.js start
Directory: /app/packages/backend
Output:

info Visit https://yarnpkg.com/en/docs/cli/workspace for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.