You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently using pdfkit in a lambda function to overlay images and text on top of another image. Getting this error very intermittently. Is anyone else seeing this at all and have any solutions?
From what I can tell we are using pdfkit in the expected way, I am guessing something in the guts of pdfkit is doing something odd with callbacks or expecting something to be sync that isn't.
Here is the full stack trace
TypeError: Cannot read property '1' of undefined
at UnicodeTrie.get (/var/task/node_modules/pdfkit/node_modules/linebreak/node_modules/unicode-trie/index.js:71:25)
at LineBreaker.nextCharClass (/var/task/node_modules/pdfkit/node_modules/linebreak/src/linebreaker.js:74:33)
at LineBreaker.nextBreak (/var/task/node_modules/pdfkit/node_modules/linebreak/src/linebreaker.js:90:39)
at LineWrapper.eachWord (/var/task/node_modules/pdfkit/js/line_wrapper.js:80:27)
at LineWrapper.wrap (/var/task/node_modules/pdfkit/js/line_wrapper.js:146:12)
at PDFDocument.module.exports._text (/var/task/node_modules/pdfkit/js/mixins/text.js:48:17)
at PDFDocument.module.exports.text (/var/task/node_modules/pdfkit/js/mixins/text.js:59:19)
at pdfBuilder.addText (/var/task/app/pdfBuilder.js:338:93)
at pdfBuilder.buildPDF (/var/task/app/pdfBuilder.js:290:18)
The text was updated successfully, but these errors were encountered:
Currently using pdfkit in a lambda function to overlay images and text on top of another image. Getting this error very intermittently. Is anyone else seeing this at all and have any solutions?
From what I can tell we are using pdfkit in the expected way, I am guessing something in the guts of pdfkit is doing something odd with callbacks or expecting something to be sync that isn't.
Here is the full stack trace
TypeError: Cannot read property '1' of undefined
at UnicodeTrie.get (/var/task/node_modules/pdfkit/node_modules/linebreak/node_modules/unicode-trie/index.js:71:25)
at LineBreaker.nextCharClass (/var/task/node_modules/pdfkit/node_modules/linebreak/src/linebreaker.js:74:33)
at LineBreaker.nextBreak (/var/task/node_modules/pdfkit/node_modules/linebreak/src/linebreaker.js:90:39)
at LineWrapper.eachWord (/var/task/node_modules/pdfkit/js/line_wrapper.js:80:27)
at LineWrapper.wrap (/var/task/node_modules/pdfkit/js/line_wrapper.js:146:12)
at PDFDocument.module.exports._text (/var/task/node_modules/pdfkit/js/mixins/text.js:48:17)
at PDFDocument.module.exports.text (/var/task/node_modules/pdfkit/js/mixins/text.js:59:19)
at pdfBuilder.addText (/var/task/app/pdfBuilder.js:338:93)
at pdfBuilder.buildPDF (/var/task/app/pdfBuilder.js:290:18)
The text was updated successfully, but these errors were encountered: