httpRequestLogger

所属分类:Web服务器
开发工具:PowerShell
文件大小:0KB
下载次数:0
上传日期:2023-12-15 21:26:13
上 传 者sh-1993
说明:  httpRequestLogger(http请求记录器)
(httpRequestLogger)

文件列表:
.idea/
.ignore
index.js
listuserstest.ps1
package-lock.json
package.json

Nothing fancy, just a node app to log details of HTTP requests for troubleshooting purposes. Bare-minimum code - add a server cert/key to use for HTTPS (guide here for MacOS https://t.ly/jQpKO) Logs requests in the console and to files that reflect the request url, body, detected body character set, and the headers received. Summarizing some of the techniques I shared on our Rewst call - these apply generically to any web backend that isn't processing requests properly... * In the case of Powershell, you can update your Rewst scripts to send webhook requests to both Rewst and this NodeJS app to troubleshoot what it is sending. * See "listusertest.ps1" which includes a few commented lines that show how you can have it also send its request payloads to flat files, or ingest them from flat files to send outbound when reproducing an issue. * You can look at your Rewst workflow results and find live webhooks that are still awaiting responses if the original Rewst request fails (e.g. 500 error) * Use Powershell or apps like Postman to try and manually send requests to that webhook for issue reproduction Hopefully this is something you never have to use, but if you do - it should help :) -Ben

近期下载者

相关文件


收藏者