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, the response object is missing in the error object and it is not possible to read the response headers and get the reference and correlation id the server returns.
An example of the current error object (no response property).
{
"message": "Missing PDF \"[object Object]\".",
"name": "MissingPDFException"
}
Some way would be to use custom fetching using the fetch function:
but, that would mean that the pdf document would not be loaded via the pdfjs worker and possibly "PDFDataRangeTransport" would not be used either. It would wait for the entire pdf to be loaded into memory (think of 100MB pdfs).
I would rather use the already implemented loading.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I would like to access the response headers if the pdf document request fails.
Currently, the
response
object is missing in theerror
object and it is not possible to read the response headers and get the reference and correlation id the server returns.An example of the current
error
object (noresponse
property).Some way would be to use custom fetching using the
fetch
function:but, that would mean that the pdf document would not be loaded via the pdfjs worker and possibly "PDFDataRangeTransport" would not be used either. It would wait for the entire pdf to be loaded into memory (think of 100MB pdfs).
I would rather use the already implemented loading.
Beta Was this translation helpful? Give feedback.
All reactions