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
It does not everytime seem to be related to the arrays. I removed the log calls where I tried to outputted the arrays but it still failed with ERR_INVALID_RESPONSE. I noticed that I outputted a normal integer value (1500) too somewhere, which caused the ERR_INVALID_RESPONSE. After removing it, the site loads normally again. Then I added the array logs again, but it failed again with ERR_INVALID_RESPONSE.
Even simple integer outputs fail sometimes, there must be a major bug somewhere.
UPDATE
I casted the value to int, now the integer works. ChromePhp::log((int) $targetAttributeVal);
The text was updated successfully, but these errors were encountered:
Eddcapone
changed the title
Getting ERR_INVALID_RESPONSE when trying to log arrays
Getting ERR_INVALID_RESPONSE when trying to log some arrays
Oct 29, 2020
Eddcapone
changed the title
Getting ERR_INVALID_RESPONSE when trying to log some arrays
Getting ERR_INVALID_RESPONSE when trying to log some data
Oct 29, 2020
I very often get ERR_INVALID_RESPONSE when trying to log arrays. For some arrays it works, for some it doesnt.
Example for arrays that fail:
Example 1
Example 2:
EDIT
It does not everytime seem to be related to the arrays. I removed the log calls where I tried to outputted the arrays but it still failed with ERR_INVALID_RESPONSE. I noticed that I outputted a normal integer value (1500) too somewhere, which caused the ERR_INVALID_RESPONSE. After removing it, the site loads normally again. Then I added the array logs again, but it failed again with ERR_INVALID_RESPONSE.
Even simple integer outputs fail sometimes, there must be a major bug somewhere.
UPDATE
I casted the value to int, now the integer works.
ChromePhp::log((int) $targetAttributeVal);
The text was updated successfully, but these errors were encountered: