Този сайт ще има ограничена функционалност, докато се извършва тече неговата поддръжка. Ако дадена статия не може реши проблема ви и искате да зададете въпрос, нашата общност е готова да ви помогне на @firefox в Twitter и /r/firefox в Reddit.

Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

response body not shown in developer tools even though content-length is greater than zero

  • 2 отговора
  • 1 има този проблем
  • 107 изгледи
  • Последен отговор от bretweinraub

more options

I've got a website [works in all other browsers btw] that inconsistently manifests the following behaviour.

User clicks a button, which initiates a jQuery ajax call with type JSONP.

In developer tools, the following message appears:

Loading failed for the <script> with source "[my-cross-site-server-url]?callback=jQuery1124024932276037115453_1550849777698&dont_duplicate=1&api_key=.................&course_guid=...............&fname=&lname=&format=js&_=1550849777700”.

the query parameters are pertinent to the app.

Version is Firefox Quantum, 65.0.1 64 bit, running on OS X High Sierra.

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:65.0) Gecko/20100101 Firefox/65.0

As we use errorception we also see this error on

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0

Now it get's weird. Checking the content-length in the response is shown correctly [its about 3000 bytes], but response body is blank [just nothing displayed]. Still in the network tab you click "open in new tab", the response is there. Debugging the server, the response is there, and its a piece of code that's been in production for 5 years, and works in every other browser.

Also, it doesn't always happen [?], and I've tried safe mode, same behavior.

I've got a website [works in all other browsers btw] that inconsistently manifests the following behaviour. User clicks a button, which initiates a jQuery ajax call with type JSONP. In developer tools, the following message appears: Loading failed for the <script> with source "[my-cross-site-server-url]?callback=jQuery1124024932276037115453_1550849777698&dont_duplicate=1&api_key=.................&course_guid=...............&fname=&lname=&format=js&_=1550849777700”. the query parameters are pertinent to the app. Version is Firefox Quantum, 65.0.1 64 bit, running on OS X High Sierra. User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:65.0) Gecko/20100101 Firefox/65.0 As we use errorception we also see this error on Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0 Now it get's weird. Checking the content-length in the response is shown correctly [its about 3000 bytes], but response body is blank [just nothing displayed]. Still in the network tab you click "open in new tab", the response is there. Debugging the server, the response is there, and its a piece of code that's been in production for 5 years, and works in every other browser. Also, it doesn't always happen [?], and I've tried safe mode, same behavior.

Избрано решение

OK, solved if the response code is 302, the response body is not available.

Прочетете този отговор в контекста 👍 0

Всички отговори (2)

more options

I attached a screenshot from developer tools

more options

Избрано решение

OK, solved if the response code is 302, the response body is not available.