Skip to content
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

Getting ERR_INVALID_RESPONSE when trying to log some data #76

Open
Eddcapone opened this issue Oct 29, 2020 · 0 comments
Open

Getting ERR_INVALID_RESPONSE when trying to log some data #76

Eddcapone opened this issue Oct 29, 2020 · 0 comments

Comments

@Eddcapone
Copy link

Eddcapone commented 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

array(10) { [0]=> string(13) "Fensterbänke" [1]=> string(13) "Fensterbänke" [2]=> string(13) "Fensterbänke" [3]=> string(13) "Fensterbänke" [4]=> string(8) "Produkte" [5]=> string(14) "Fenstermontage" [6]=> string(9) "Schrauben" [7]=> string(8) "Produkte" [8]=> string(14) "Fenstermontage" [9]=> string(9) "Schrauben" }

Example 2:

array(4) { [0]=> string(13) "Fensterbänke" [4]=> string(8) "Produkte" [5]=> string(14) "Fenstermontage" [6]=> string(9) "Schrauben" }

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);

@Eddcapone 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 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant