New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected server response (206) while retrieving PDF... #7754
Comments
the same problem,version 1.6.210 |
This may be related to #5405 (comment), try setting |
Seems like setting PDFJS.disableRange = true; it's helps in iOS 10.0.1, but in iOS 10.1.0 can not load PDF file ,hasn't loading bar and exception tips , just black page. |
Closing as fixed by PR #7800. |
@Snuffleupagus The problem still exist. |
@Snuffleupagus I have the same problem of @Lyife but in iOS 10.1.1. I tried to set PDFJS.disableRange = true and change |
solve issue: mozilla#7815 mozilla#7754 mozilla#7800
Better way but NOT necessarily best way to solve the IOS webview APP error: Unexpected server response (206) while retrieving PDF... Details: 1. At the beginning, I only found the Error in IOS WeChat APP, so I solved it by checking WeChat: 9ad57d4 2. But I found this error in other IOS app, so I checked UA details of them as follow: a) iPhone WeChat APP UserAgent (Fail): Mozilla/5.0 (iPhone; CPU iPhone OS 10_1_1 like Mac OS X) AppleWebKit/602.2.14 (KHTML, like Gecko) Mobile/14B100 MicroMessenger/6.3.30 NetType/WIFI Language/zh_CN b) iPhone Other APP UserAgent (Fail): Mozilla/5.0 (iPhone; CPU iPhone OS 10_1_1 like Mac X) AppleWebKit/602.2.14 (KHTML, like Gecko) Mobile/14B100 QYZone Maybe all webview app in IOS 10 have this problem, and since Safari & Chrome in IOS also does NOT support range request in IOS, so I think it's a better way to disable range request in iPhone by this regex: var isIPhone = /iPhone/.test(navigator.userAgent); if (isIPhone) { PDFJS.disableRange = true; PDFJS.disableStream = true; } solve issues: mozilla#7815 mozilla#7754 mozilla#7800
Link to PDF file (or attach file here): http://api.idocv.com/view/KeDWwzf
Configuration:
Steps to reproduce the problem:
What is the expected behavior? (add screenshot)
What went wrong? (add screenshot)
Unexpected server response (206) while retrieving PDF...
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):
The text was updated successfully, but these errors were encountered: