-
Notifications
You must be signed in to change notification settings - Fork 17
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
When running publisher, get errors in get_feeds() #122
Comments
In the PR, I fixed error 2 by tightening up what gets passed when and where: None vs [] vs str vs list vs tuple. |
Wrt error 1, here's the dict that got passed into dictToFeed() right before the error: |
Fixes #122 Changes: - bug fix: Make subgraph.py query feeds able to handle filters with value '', in addition to value None - add robustness: env.py::parse_filters() now returns a tuple of list[str], not a list of list[str]|None - bug fix: get_feeds() call to query_feed_contracts guarantees to pass in a str by concatenating lists - bug fix: subgraph.py:query_feed_contracts() wasn't adding 'owner' to feed dict, fixed it - bug fix: models/feed.py wasn't converting from str to int as needed. Fixed it - bug fix: trueval_submit_timeout shouldn't be in feed_dict or Feed. Removed it. But ensured that trueval agent still saw it - bug fix: feed.py::Feed property methods base() and quote() could only handle eg BTC-USDT but not BTC/USDT. Fixed it.
Describe the bug
Going through predictoor.md README, when I run
python pdr_backend/predictoor/main.py 1
Note:
SUBGRAPH_URL=http://localhost:9000/subgraphs/name/oceanprotocol/ocean-subgraph
It fails in two possible ways. First way:
I just merged a branch into main. Now it fails a different way:
Discussion
For error 1: I'm pretty sure that I (Trent) introduced this when I introduced dictToFeed recently. It expects more data than it should have. That's where the fix lies too: to be looser about what it needs. E.g. fill in with good defaults.
Full traceback of error 1
Full traceback of error 2
The text was updated successfully, but these errors were encountered: