Transport destroyed Error

Bug Report or Feature Request (mark with an x)
- [ ] Regression (a behavior that used to work and stopped working in a new release)
- [x] Bug report -> please search issues before submitting
- [ ] Feature request
- [ ] Documentation issue or request

Hi, we have been using ng2-pdf-viewer in our project for a while now. Only recently have we started to get the following errors:

Uncaught (in promise): Error: Transport destroyed Error: Transport destroyed
file: node_modules/pdfjs-dist/build/pdf.js:2856

as well as Uncaught (in promise): e: Worker was terminated.

is there any way we can keep these errors from happening as they are not related to our web app, but still come up in our airbrake issues.

here is our implementation:

<div class="resume-container" *ngIf="pdf">
  <pdf-viewer [src]="resumeURL" (after-load-complete)="resumeLoaded()" [zoom]="zoom"> 

Could anyone please assist?

1 possible answer(s) on “Transport destroyed Error

  1. Hi, I am still seeing this issue happen. Any clues as to what might be causing this?

    Unable to initialize viewer Error: Transport destroyed
    logger: console
    arguments: ["Unable to initialize viewer",{"message":"Transport destroyed","name":"Error","stack":"Error: Transport destroyed\n