Skip to content
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

READMEs don't support subgraph querying. Need to add --with-thegraph to barge #80

Closed
trentmc opened this issue Aug 23, 2023 · 0 comments · Fixed by #81
Closed

READMEs don't support subgraph querying. Need to add --with-thegraph to barge #80

trentmc opened this issue Aug 23, 2023 · 0 comments · Fixed by #81
Labels
Type: Bug Something isn't working

Comments

@trentmc
Copy link
Member

trentmc commented Aug 23, 2023

How to replicate

In console, start barge with what predictoor.md instructs:

./start_ocean.sh --predictoor --with-pdr-trueval --with-pdr-trader --with-pdr-publisher --with-pdr-dfbuyer

Then, go to the browser, and open the following url. It's a subgraph query:
http://localhost:9000/subgraphs/name/oceanprotocol/ocean-subgraph/graphql?query=query+MyQuery+{%0A++predictContracts+{%0A++++id%0A++++token{%0A++++++name%0A++++}%0A++}%0A}

When I put that into the browser, it gives me "site can't be reached"

Debugging, to a solution

The ocean-subgraph repo gives instructions for starting barge as: ./start_ocean.sh --with-thegraph.

So I added --with-thegraph to the predictoor barge instructions:

./start_ocean.sh --predictoor --with-pdr-trueval --with-pdr-trader --with-pdr-publisher --with-pdr-dfbuyer --with-the-graph

And, it works! :)

TODOs

Ensure that ---the-graph is in every relevant README

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant