You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/03/29 19:40:04 UTC
[GitHub] [incubator-apisix] sshniro opened a new issue #1362: request help:
How to dump variable data for debugging
sshniro opened a new issue #1362: request help: How to dump variable data for debugging
URL: https://github.com/apache/incubator-apisix/issues/1362
### Issue description
I'm using MQTT plugin to proxy some data to a broker. Before sending the data to upstream I want to parse and implement some custom security workflows. Thus how can I print all the request data for debugging?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-apisix] sshniro commented on issue #1362: request help:
How to dump variable data for debugging
Posted by GitBox <gi...@apache.org>.
sshniro commented on issue #1362: request help: How to dump variable data for debugging
URL: https://github.com/apache/incubator-apisix/issues/1362#issuecomment-606422881
Thanks, I will try the tcpdump method.
I guess this can be added to the doc as well for reference?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-apisix] moonming commented on issue #1362: request help:
How to dump variable data for debugging
Posted by GitBox <gi...@apache.org>.
moonming commented on issue #1362: request help: How to dump variable data for debugging
URL: https://github.com/apache/incubator-apisix/issues/1362#issuecomment-608202513
> > I guess this can be added to the doc as well for reference?
>
> I am not sure. Anyone else have comments?
I think it could be added to MQTT's documentation.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-apisix] membphis commented on issue #1362: request help:
How to dump variable data for debugging
Posted by GitBox <gi...@apache.org>.
membphis commented on issue #1362: request help: How to dump variable data for debugging
URL: https://github.com/apache/incubator-apisix/issues/1362#issuecomment-605741018
There are two ways:
1. Use `json`.encode, the easiest, but not very convenient when viewing
2. Convert the request data into a hex string and output it in a format similar to `tcpdump`
```
00000000 3f ee 8f 50 a0 2b ce d9 fd 5b 6d 15 08 b0 55 5a ?..P.+.. .[m...UZ
00000010 aa 49 06 b4 e3 29 e4 af 90 56 8e e9 b7 2f 6a 36 .I...).. .V.../j6
00000020 b5 4c d7 4e 8b f5 26 01 b8 ef 03 dc 3f 45 4d 97 .L.N..&. ....?EM.
00000030 e8 5f a5 77 0f 69 cb e8 c9 f9 a3 e5 ._.w.i.. ....
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-apisix] membphis commented on issue #1362: request help:
How to dump variable data for debugging
Posted by GitBox <gi...@apache.org>.
membphis commented on issue #1362: request help: How to dump variable data for debugging
URL: https://github.com/apache/incubator-apisix/issues/1362#issuecomment-607605321
> I guess this can be added to the doc as well for reference?
I am not sure. Anyone else have comments?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [apisix] spacewander closed issue #1362: request help: How to dump variable data for debugging
Posted by GitBox <gi...@apache.org>.
spacewander closed issue #1362:
URL: https://github.com/apache/apisix/issues/1362
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org