Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Unexpected server response of 200.

159 views
Skip to first unread message

Andrea Campolonghi

unread,
Dec 27, 2012, 9:42:51 AM12/27/12
to mozilla-d...@lists.mozilla.org
I am randomly get this error:

PDF.JS Build: 81e708b
Message: Unexpected server response of 200.

Any suggestion?

Thanks

Andrea

Yury Delendik

unread,
Jan 2, 2013, 3:31:41 PM1/2/13
to Andrea Campolonghi
Looks like 'HTTP://' prefix specified in capital letters when url is
specified in the "file" query parameter.

mrch...@gmail.com

unread,
Jan 2, 2013, 6:12:43 AM1/2/13
to mozilla-d...@lists.mozilla.org, mozilla-d...@lists.mozilla.org
If your url address does not start with http:// or https://.. For example my url was //server.com. The expected server status is 0, becouse of this check:

xhr.expected = (protocol === 'http:' || protocol === 'https:') ? 200 : 0;

If you replace
if (xhr.status === xhr.expected) {
with:
if (xhr.status === 200) {
you will solve your problem. :)
0 new messages