Skip to content

Instantly share code, notes, and snippets.

@psturc
Created July 27, 2018 20:20
Show Gist options
  • Save psturc/25f6a105f91129509e00228d884362b3 to your computer and use it in GitHub Desktop.
Save psturc/25f6a105f91129509e00228d884362b3 to your computer and use it in GitHub Desktop.
Log from Data Sync Server pod
> [email protected] start /opt/app-root/src
> node ./index.js
{"level":30,"time":1532722742178,"msg":"Using default schemaListener since SCHEMA_LISTENER_CONFIG environment variable is not defined","pid":19,"hostname":"data-sync-server-1-5bshx","v":1}
unhandled rejection: { SequelizeDatabaseError: column Resolver.publish does not exist
at Query.formatError (/opt/app-root/src/node_modules/sequelize/lib/dialects/postgres/query.js:363:16)
at query.catch.err (/opt/app-root/src/node_modules/sequelize/lib/dialects/postgres/query.js:86:18)
at tryCatcher (/opt/app-root/src/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/opt/app-root/src/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/opt/app-root/src/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/opt/app-root/src/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/opt/app-root/src/node_modules/bluebird/js/release/promise.js:689:18)
at Async._drainQueue (/opt/app-root/src/node_modules/bluebird/js/release/async.js:133:16)
at Async._drainQueues (/opt/app-root/src/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/opt/app-root/src/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:789:20)
at tryOnImmediate (timers.js:751:5)
at processImmediate [as _immediateCallback] (timers.js:722:5)
name: 'SequelizeDatabaseError',
parent:
{ error: column Resolver.publish does not exist
at Connection.parseE (/opt/app-root/src/node_modules/pg/lib/connection.js:553:11)
at Connection.parseMessage (/opt/app-root/src/node_modules/pg/lib/connection.js:378:19)
at Socket.<anonymous> (/opt/app-root/src/node_modules/pg/lib/connection.js:119:22)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:250:11)
at Socket.Readable.push (_stream_readable.js:208:10)
at TCP.onread (net.js:594:20)
name: 'error',
length: 115,
severity: 'ERROR',
code: '42703',
detail: undefined,
hint: undefined,
position: '168',
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'parse_relation.c',
line: '3183',
routine: 'errorMissingColumn',
sql: 'SELECT "Resolver"."id", "Resolver"."type", "Resolver"."field", "Resolver"."preHook", "Resolver"."postHook", "Resolver"."requestMapping", "Resolver"."responseMapping", "Resolver"."publish", "Resolver"."createdAt", "Resolver"."updatedAt", "Resolver"."DataSourceId", "Resolver"."GraphQLSchemaId", "DataSource"."id" AS "DataSource.id", "DataSource"."name" AS "DataSource.name", "DataSource"."type" AS "DataSource.type", "DataSource"."config" AS "DataSource.config", "DataSource"."createdAt" AS "DataSource.createdAt", "DataSource"."updatedAt" AS "DataSource.updatedAt" FROM "Resolvers" AS "Resolver" LEFT OUTER JOIN "DataSources" AS "DataSource" ON "Resolver"."DataSourceId" = "DataSource"."id";' },
original:
{ error: column Resolver.publish does not exist
at Connection.parseE (/opt/app-root/src/node_modules/pg/lib/connection.js:553:11)
at Connection.parseMessage (/opt/app-root/src/node_modules/pg/lib/connection.js:378:19)
at Socket.<anonymous> (/opt/app-root/src/node_modules/pg/lib/connection.js:119:22)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:250:11)
at Socket.Readable.push (_stream_readable.js:208:10)
at TCP.onread (net.js:594:20)
name: 'error',
length: 115,
severity: 'ERROR',
code: '42703',
detail: undefined,
hint: undefined,
position: '168',
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'parse_relation.c',
line: '3183',
routine: 'errorMissingColumn',
sql: 'SELECT "Resolver"."id", "Resolver"."type", "Resolver"."field", "Resolver"."preHook", "Resolver"."postHook", "Resolver"."requestMapping", "Resolver"."responseMapping", "Resolver"."publish", "Resolver"."createdAt", "Resolver"."updatedAt", "Resolver"."DataSourceId", "Resolver"."GraphQLSchemaId", "DataSource"."id" AS "DataSource.id", "DataSource"."name" AS "DataSource.name", "DataSource"."type" AS "DataSource.type", "DataSource"."config" AS "DataSource.config", "DataSource"."createdAt" AS "DataSource.createdAt", "DataSource"."updatedAt" AS "DataSource.updatedAt" FROM "Resolvers" AS "Resolver" LEFT OUTER JOIN "DataSources" AS "DataSource" ON "Resolver"."DataSourceId" = "DataSource"."id";' },
sql: 'SELECT "Resolver"."id", "Resolver"."type", "Resolver"."field", "Resolver"."preHook", "Resolver"."postHook", "Resolver"."requestMapping", "Resolver"."responseMapping", "Resolver"."publish", "Resolver"."createdAt", "Resolver"."updatedAt", "Resolver"."DataSourceId", "Resolver"."GraphQLSchemaId", "DataSource"."id" AS "DataSource.id", "DataSource"."name" AS "DataSource.name", "DataSource"."type" AS "DataSource.type", "DataSource"."config" AS "DataSource.config", "DataSource"."createdAt" AS "DataSource.createdAt", "DataSource"."updatedAt" AS "DataSource.updatedAt" FROM "Resolvers" AS "Resolver" LEFT OUTER JOIN "DataSources" AS "DataSource" ON "Resolver"."DataSourceId" = "DataSource"."id";' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment