forta-network / forta-bot-sdk

Forta Detection Bot SDK and CLI tool
MIT License
71 stars 38 forks source link

Python logs traceback #225

Open dimkkv opened 1 year ago

dimkkv commented 1 year ago

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch forta-agent@0.1.12 for the project I'm working on.

Issue is live run of forta agent, using python bot. It's hard to debug it, while having such errors: image

proposed approach is to edit file https://github.com/forta-network/forta-bot-sdk/blob/d73d5070897c9cbad8c1d356589d53222a9e692d/cli/utils/get.python.agent.handlers.ts#L119 and change from "stderr" to "pythonError" which results in more informative error with proper traces