Open johnny-vu opened 7 months ago
On the start BENS tries to guess subgraph schema in Postgres and chooses the oldest one for every subgraph. I guess you redeployed your subgraph and therefore now you have multiple schemas. However since your schema isn’t available (I can see it in BENS error) I think you can just restart BENS server and it will choose correct schema
oh, I see. Did I understand correctly that you want to connect BENS to graphprotocol/pns
but you have two subgraphs with the same chain_id
and BENS chooses wrong subgraph instead of graphprotocol/pns
?
@sevenzing yes, you're right. I think it choose wrong subgraph
well, I guess this is a bug then. We didn't use several subgraphs with same chain_id in producation during our bens v1
stage, so we didnt face this problem.
I guess solution here is to change code a liitle bit:
we need to skip subgraph in case of absence in config here: https://github.com/blockscout/blockscout-rs/blob/main/blockscout-ens/bens-logic/src/subgraphs_reader/reader.rs#L110-L114
(optional but also not required to fix this bug) reconsider logic of choosing default subgraph: https://github.com/blockscout/blockscout-rs/blob/main/blockscout-ens/bens-logic/src/subgraphs_reader/reader.rs#L123-L126
if you want you can try to make PR that will fix this 😺 if not, then I will fix it next week or later 😿
I got this error
"sgd12.domain" does not exist
when I trying to query data from BENS: https://bns.pulse.domains/api/v1/369/domains/kaito.plsHere is the logs:
Does it matter if my
graph-node
has more than one subgraph? In fact, it has 2 subgraphs: one for forked ENS (graphprotocol/pns
) and one for blocks indexing (pcl/blocks
)Here is the log when it starts launching:
I think it should be access to
sgd14.domain
but not sure why it still usesgd12.domain
. Anyone can help to fix?