Unhandled promise on chain update #3

Closed
opened 2019-05-09 03:03:23 +00:00 by coolaj86 · 1 comment
Owner
Executing (adbc4d05-4c5c-4c9e-bed2-961cd44b3427): BEGIN DEFERRED TRANSACTION;
Executing (adbc4d05-4c5c-4c9e-bed2-961cd44b3427): SELECT `id`, `xid`, `content`, `createdAt`, `updatedAt`, `CertificateId` FROM `Chains` AS `Chain` WHERE `Chain`.`xid` = 'WPg3-1mQbv62doWozpBRcXUcb7QjDlUA8Z20C3Sgx4g';
Executing (adbc4d05-4c5c-4c9e-bed2-961cd44b3427): INSERT INTO `Chains` (`id`,`xid`,`createdAt`,`updatedAt`) VALUES (NULL,$1,$2,$3);
Executing (adbc4d05-4c5c-4c9e-bed2-961cd44b3427): COMMIT;
Executing (default): UPDATE `Chains` SET `content`=$1,`updatedAt`=$2 WHERE `id` = $3
Executing (b0d55464-0820-450d-b563-7fb0cba2473e): BEGIN DEFERRED TRANSACTION;
Executing (b0d55464-0820-450d-b563-7fb0cba2473e): SELECT `id`, `subject`, `cert`, `issuedAt`, `expiresAt`, `altnames`, `chain`, `createdAt`, `updatedAt` FROM `Certificates` AS `Certificate` WHERE `Certificate`.`subject` = 'test.therootcompany.com';
Executing (b0d55464-0820-450d-b563-7fb0cba2473e): INSERT INTO `Certificates` (`id`,`subject`,`createdAt`,`updatedAt`) VALUES (NULL,$1,$2,$3);
Executing (b0d55464-0820-450d-b563-7fb0cba2473e): COMMIT;
Executing (default): SELECT `id`, `xid`, `content`, `createdAt`, `updatedAt`, `CertificateId` FROM `Chains` AS `Chain` WHERE `Chain`.`CertificateId` = 1 LIMIT 1;
Executing (default): UPDATE `Certificates` SET `cert`=$1,`altnames`=$2,`issuedAt`=$3,`expiresAt`=$4,`updatedAt`=$5 WHERE `id` = $6
Executing (default): SELECT `Certificate`.`id`, `Certificate`.`subject`, `Certificate`.`cert`, `Certificate`.`issuedAt`, `Certificate`.`expiresAt`, `Certificate`.`altnames`, `Certificate`.`chain`, `Chain`.`id` AS `Chain.id`, `Chain`.`xid` AS `Chain.xid`, `Chain`.`content` AS `Chain.content`, `Chain`.`createdAt` AS `Chain.createdAt`, `Chain`.`updatedAt` AS `Chain.updatedAt`, `Chain`.`CertificateId` AS `Chain.CertificateId` FROM `Certificates` AS `Certificate` LEFT OUTER JOIN `Chains` AS `Chain` ON `Certificate`.`id` = `Chain`.`CertificateId` WHERE `Certificate`.`subject` = 'test.therootcompany.com';
Executing (default): SELECT `Certificate`.`id`, `Certificate`.`subject`, `Certificate`.`cert`, `Certificate`.`issuedAt`, `Certificate`.`expiresAt`, `Certificate`.`altnames`, `Certificate`.`chain`, `Chain`.`id` AS `Chain.id`, `Chain`.`xid` AS `Chain.xid`, `Chain`.`content` AS `Chain.content`, `Chain`.`createdAt` AS `Chain.createdAt`, `Chain`.`updatedAt` AS `Chain.updatedAt`, `Chain`.`CertificateId` AS `Chain.CertificateId` FROM `Certificates` AS `Certificate` LEFT OUTER JOIN `Chains` AS `Chain` ON `Certificate`.`id` = `Chain`.`CertificateId` WHERE `Certificate`.`subject` = 'test.therootcompany.com';
Executing (default): UPDATE `Chains` SET `id`=$1,`CertificateId`=$2,`updatedAt`=$3 WHERE `id` = $4
(node:15567) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'kid' of undefined
    at /root/greenlock-express.js/node_modules/greenlock-store-sequelize/greenlock-store-sequelize.js:111:33
(node:15567) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:15567) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
``` Executing (adbc4d05-4c5c-4c9e-bed2-961cd44b3427): BEGIN DEFERRED TRANSACTION; Executing (adbc4d05-4c5c-4c9e-bed2-961cd44b3427): SELECT `id`, `xid`, `content`, `createdAt`, `updatedAt`, `CertificateId` FROM `Chains` AS `Chain` WHERE `Chain`.`xid` = 'WPg3-1mQbv62doWozpBRcXUcb7QjDlUA8Z20C3Sgx4g'; Executing (adbc4d05-4c5c-4c9e-bed2-961cd44b3427): INSERT INTO `Chains` (`id`,`xid`,`createdAt`,`updatedAt`) VALUES (NULL,$1,$2,$3); Executing (adbc4d05-4c5c-4c9e-bed2-961cd44b3427): COMMIT; Executing (default): UPDATE `Chains` SET `content`=$1,`updatedAt`=$2 WHERE `id` = $3 Executing (b0d55464-0820-450d-b563-7fb0cba2473e): BEGIN DEFERRED TRANSACTION; Executing (b0d55464-0820-450d-b563-7fb0cba2473e): SELECT `id`, `subject`, `cert`, `issuedAt`, `expiresAt`, `altnames`, `chain`, `createdAt`, `updatedAt` FROM `Certificates` AS `Certificate` WHERE `Certificate`.`subject` = 'test.therootcompany.com'; Executing (b0d55464-0820-450d-b563-7fb0cba2473e): INSERT INTO `Certificates` (`id`,`subject`,`createdAt`,`updatedAt`) VALUES (NULL,$1,$2,$3); Executing (b0d55464-0820-450d-b563-7fb0cba2473e): COMMIT; Executing (default): SELECT `id`, `xid`, `content`, `createdAt`, `updatedAt`, `CertificateId` FROM `Chains` AS `Chain` WHERE `Chain`.`CertificateId` = 1 LIMIT 1; Executing (default): UPDATE `Certificates` SET `cert`=$1,`altnames`=$2,`issuedAt`=$3,`expiresAt`=$4,`updatedAt`=$5 WHERE `id` = $6 Executing (default): SELECT `Certificate`.`id`, `Certificate`.`subject`, `Certificate`.`cert`, `Certificate`.`issuedAt`, `Certificate`.`expiresAt`, `Certificate`.`altnames`, `Certificate`.`chain`, `Chain`.`id` AS `Chain.id`, `Chain`.`xid` AS `Chain.xid`, `Chain`.`content` AS `Chain.content`, `Chain`.`createdAt` AS `Chain.createdAt`, `Chain`.`updatedAt` AS `Chain.updatedAt`, `Chain`.`CertificateId` AS `Chain.CertificateId` FROM `Certificates` AS `Certificate` LEFT OUTER JOIN `Chains` AS `Chain` ON `Certificate`.`id` = `Chain`.`CertificateId` WHERE `Certificate`.`subject` = 'test.therootcompany.com'; Executing (default): SELECT `Certificate`.`id`, `Certificate`.`subject`, `Certificate`.`cert`, `Certificate`.`issuedAt`, `Certificate`.`expiresAt`, `Certificate`.`altnames`, `Certificate`.`chain`, `Chain`.`id` AS `Chain.id`, `Chain`.`xid` AS `Chain.xid`, `Chain`.`content` AS `Chain.content`, `Chain`.`createdAt` AS `Chain.createdAt`, `Chain`.`updatedAt` AS `Chain.updatedAt`, `Chain`.`CertificateId` AS `Chain.CertificateId` FROM `Certificates` AS `Certificate` LEFT OUTER JOIN `Chains` AS `Chain` ON `Certificate`.`id` = `Chain`.`CertificateId` WHERE `Certificate`.`subject` = 'test.therootcompany.com'; Executing (default): UPDATE `Chains` SET `id`=$1,`CertificateId`=$2,`updatedAt`=$3 WHERE `id` = $4 (node:15567) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'kid' of undefined at /root/greenlock-express.js/node_modules/greenlock-store-sequelize/greenlock-store-sequelize.js:111:33 (node:15567) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:15567) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. ```
Author
Owner

This will be fixed by #5

This will be fixed by #5
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: root/greenlock-store-sequelize.js#3
No description provided.