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

Corrupted json #14

Open
AlexeyKupershtokh opened this issue Sep 12, 2021 · 0 comments
Open

Corrupted json #14

AlexeyKupershtokh opened this issue Sep 12, 2021 · 0 comments

Comments

@AlexeyKupershtokh
Copy link

AlexeyKupershtokh commented Sep 12, 2021

I've been testing stat for a few hours, returned to it overnight run a symfony controlle and caught a bug with corrupted paths. I stripped some output and left only the unique records.

{"type": "memory", "request": {"pid": 9, "elapsed": 30563.5950944093, "path": "/code/my_project_name/public/index.php", "method":GET", "uri":/index.php"}, "elapsed": 30563.7584877112, "memory": {"used": 0, "peak": 0}}
...
{"type": "memory", "request": {"pid": 9, "elapsed": 30563.5950944093, "path": "/code/my_project_name/public/index.pcp", "method":GET", "uri":/index.php"}, "elapsed": 30563.7586159492, "memory": {"used": 0, "peak": 0}}
...
{"type": "memory", "request": {"pid": 9, "elapsed": 30563.5950944093, "path": "/code/my_project_name/public/index.p\p", "method":GET", "uri":/index.php"}, "elapsed": 30563.7598306644, "memory": {"used": 0, "peak": 0}}
...
{"type": "memory", "request": {"pid": 9, "elapsed": 30563.5950944093, "path": "/code/my_project_name/public/index.pVp", "method":GET", "uri":/index.php"}, "elapsed": 30563.7618115731, "memory": {"used": 0, "peak": 0}}
...
{"type": "memory", "request": {"pid": 9, "elapsed": 30563.5950944093, "path": "/code/my_project_name/public/index.p"p", "method":GET", "uri":/index.php"}, "elapsed": 30563.7726114844, "memory": {"used": 0, "peak": 0}}
...
{"type": "memory", "request": {"pid": 9, "elapsed": 30563.5950944093, "path": "/code/my_project_name/public/index.p�p", "method":GET", "uri":/index.php"}, "elapsed": 30563.7727152910, "memory": {"used": 0, "peak": 0}}
...

The issues I see:

  1. "method":GET" - missing quote
  2. "uri":/index.php" - missing quote
  3. index.p\p - corrupted paths
  4. I've never seen the symbol key mentioned in the documentation.

My setup:

  • php7.4-fpm inside docker
  • Docker-compose using these files: php-krakjoe-stat-example.zip
  • symfony 5 example
  • nc 127.0.0.1 8010 from inside the php container
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