Detailed description of issue
I am using pdf.js express plus with angular.
It very often happens (around 80-90% of the time) that the API https://api.pdfjs.express/xfdf/extract takes too long to respond and returns an error:
Since I always worked on only one document and since it has never been edited, I assumed that the problem was coming from the API, especially because occasionally it works.
Expected behaviour
The request should return a valid response or at least include a more descriptive error text.
Does your issue happen with every document, or just one?
As previously stated, I only worked with a document, that is the demo.pdf from the angular project sample.
Link to document
Code snippet
The code I used for calling the endpoint is the same as the one on the tutorial page.
The only difference is that the file does not come from a path, but from a blob file:
I tried to create the file and open it from a local path, but it gives me another error ({“error”:{“code”:21,“message”:“Cannot retrieve file from URL.”}}), even though the file gets initially loaded in the document:
The error you are seeing is “ERR_CONNECTION_RESET” which indicates this is an issue on your end, most likely with your network. Are you using a VPN, proxy for firewall that might be interfering with requests? Do you have any chrome extensions that might be blocking requests?
I tried to switch the network to the personal hotspot and the export worked.
The problem was most likely due to our firm’s firewall.
Can I ask you which port is used by your server, in order to enable it by configuration?