Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: read stacks-core http event POST payloads for ignored events (#673)
Workaround for bug in stacks-core event emitter http code. Regression in stacks-core where http requests must now have their POST body read before closing the connection. ``` chainhook-1 | {"msg":"POST /drop_mempool_tx","level":"DEBUG","ts":"2024-10-30T10:41:34.030361652Z"} stacks-node-1 | WARN [1730284894.031170] [testnet/stacks-node/src/event_dispatcher.rs:496] [relayer-http://0.0.0.0:20443/] Event dispatcher: connection or request failed to chainhook:20455 - Custom { kind: Other, error: "Failed to send 8192 bytes: \"Failed to send socket data\"" }, backoff: 158.191s, attempts: 10 ``` Chainhook ignored some events by returning a 200 http response and closing the connection after reading the http request headers, and ignoring the request body.
- Loading branch information