Advertisement
Guest User

Featured Donation Error

a guest
Apr 9th, 2020
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.84 KB | None | 0 0
  1. ➜  dapurmami-api git:(develop) yarn start
  2. yarn run v1.22.4
  3. $ ./node_modules/nodemon/bin/nodemon.js ./app.js
  4. [nodemon] 1.19.4
  5. [nodemon] to restart at any time, enter `rs`
  6. [nodemon] watching dir(s): *.*
  7. [nodemon] watching extensions: js,mjs,json
  8. [nodemon] starting `node ./app.js`
  9. {"level":30,"time":1586486528132,"pid":10460,"hostname":"guntoro","msg":"Server listening at http://0.0.0.0:3000","v":1}
  10. {"level":30,"time":1586486536727,"pid":10460,"hostname":"guntoro","reqId":"0623f058-63c4-4c49-828a-7f71b4c59dde","req":{"method":"GET","url":"/api/home/get-featured-donation","hostname":"localhost:3000","remoteAddress":"127.0.0.1","remotePort":60658},"msg":"incoming request","v":1}
  11. 6285713470777
  12. ====================================
  13. error: column a.is_draft does not exist
  14.     at Connection.parseE (/home/guntoro/Projects/Dapurmami/dapurmami-api/node_modules/pg/lib/connection.js:614:13)
  15.     at Connection.parseMessage (/home/guntoro/Projects/Dapurmami/dapurmami-api/node_modules/pg/lib/connection.js:413:19)
  16.     at Socket.<anonymous> (/home/guntoro/Projects/Dapurmami/dapurmami-api/node_modules/pg/lib/connection.js:129:22)
  17.     at Socket.emit (events.js:311:20)
  18.     at addChunk (_stream_readable.js:294:12)
  19.     at readableAddChunk (_stream_readable.js:275:11)
  20.     at Socket.Readable.push (_stream_readable.js:209:10)
  21.     at TCP.onStreamRead (internal/stream_base_commons.js:186:23) {
  22.   name: 'error',
  23.   length: 109,
  24.   severity: 'ERROR',
  25.   code: '42703',
  26.   detail: undefined,
  27.   hint: undefined,
  28.   position: '511',
  29.   internalPosition: undefined,
  30.   internalQuery: undefined,
  31.   where: undefined,
  32.   schema: undefined,
  33.   table: undefined,
  34.   column: undefined,
  35.   dataType: undefined,
  36.   constraint: undefined,
  37.   file: 'parse_relation.c',
  38.   line: '3359',
  39.   routine: 'errorMissingColumn'
  40. }
  41. ====================================
  42. /home/guntoro/Projects/Dapurmami/dapurmami-api/api/models/kitchenDonation.js:175
  43.         resolve(results.rows);
  44.                         ^
  45.  
  46. TypeError: Cannot read property 'rows' of undefined
  47.     at Query.callback (/home/guntoro/Projects/Dapurmami/dapurmami-api/api/models/kitchenDonation.js:175:25)
  48.     at Query.handleError (/home/guntoro/Projects/Dapurmami/dapurmami-api/node_modules/pg/lib/query.js:145:17)
  49.     at Connection.connectedErrorMessageHandler (/home/guntoro/Projects/Dapurmami/dapurmami-api/node_modules/pg/lib/client.js:214:17)
  50.     at Connection.emit (events.js:311:20)
  51.     at Socket.<anonymous> (/home/guntoro/Projects/Dapurmami/dapurmami-api/node_modules/pg/lib/connection.js:134:12)
  52.     at Socket.emit (events.js:311:20)
  53.     at addChunk (_stream_readable.js:294:12)
  54.     at readableAddChunk (_stream_readable.js:275:11)
  55.     at Socket.Readable.push (_stream_readable.js:209:10)
  56.     at TCP.onStreamRead (internal/stream_base_commons.js:186:23)
  57. [nodemon] app crashed - waiting for file changes before starting...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement