question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DataCloneError: Failed to execute 'postMessage' on 'Worker'

See original GitHub issue

Attach (recommended) or Link to PDF file here:

Configuration:

  • Web browser and its version: Electron 2.0.3
  • Operating system and its version: Windows 10
  • PDF.js version: 2.0.489
  • Is a browser extension: no

Steps to reproduce the problem: Create Ellectron app with angular 6 + pdfjs

What is the expected behavior? (add screenshot) PDF gets displayed

What went wrong? (add screenshot)

ERROR Error: Uncaught (in promise): DataCloneError: Failed to execute 'postMessage' on 'Worker': TypeError: https.request is not a function could not be cloned.
Error: Failed to execute 'postMessage' on 'Worker': TypeError: https.request is not a function could not be cloned.

In Google Chrome everything works fine.

VadimDez/ng2-pdf-viewer#326

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
Farbod29commented, Apr 6, 2019

@giridharkannan I have same issue but I don’t know how to move Http report to both PDFNodeStreamFullReader and PDFNodeStreamRangeReader.

1reaction
giridharkannancommented, Apr 6, 2019

@Farbod29 If it’s not a overkill, please do share your code snippet to my mail id. And the code snippet that I gave is not be added on pdf.js’s code base, rather on your code.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to execute 'postMessage' on 'Window': An object ...
It turns out the object I passed had methods, which is why the error message said An object could not be cloned ....
Read more >
Failed to execute 'postMessage' on 'Worker : r/reactjs
Web-worker issue: Uncaught DOMException: Failed to execute 'postMessage' on 'Worker. Hi,. I have a barchart made with chartjs in a React app ...
Read more >
postMessage throws DataCloneError: The object could not ...
Actual results: An error is returned : DataCloneError: The object could not be cloned. Expected results: The object should have been transferred without...
Read more >
DOMException: Failed to execute 'postMessage' on 'Window'
When using `Editable boards for not registered users`, when I click on “Create Board”, I am getting an alert message saying “miro.com says ......
Read more >
<Promise> could not be cloned. | Velo by ...
Failed to execute 'postMessage' on 'DedicatedWorkerGlobalScope': #<Promise> could not be cloned. Hello i am trying to generate a csv file ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found