graphprotocol / adchain-subgraph

Example subgraph project for querying the AdChain TCR
MIT License
3 stars 7 forks source link

Conflicting 'id' value set by mapping for Challenge entity #16

Open timmclean opened 5 years ago

timmclean commented 5 years ago

Error when processing the first event:

 Oct 11 23:39:37.853 INFO Process events from block, subgraph_id: QmdCZUbn7GmGkJcGqd8YTF5GPvZKsZ4ovpPRyYiy14jdN9, subgraph_name: adchain, block_hash: 0xb070524b5c997592eb62468263c5668348c1267dbdcf7244211a29e274d03062, block_number: 5495282
 Oct 11 23:39:37.853 INFO 1 events are relevant for this subgraph, subgraph_id: QmdCZUbn7GmGkJcGqd8YTF5GPvZKsZ4ovpPRyYiy14jdN9, subgraph_name: adchain
component: RuntimeHostBuilder
 component: RuntimeHost
  subgraph_name: adchain
   subgraph_id: QmdCZUbn7GmGkJcGqd8YTF5GPvZKsZ4ovpPRyYiy14jdN9
    data_source: AdNetworks
     Oct 11 23:39:37.853 DEBG Process Ethereum event, handler: challenge, signature: _Challenge(bytes32,uint256,string,uint256,uint256,address), block_number: 5495282
component: SubgraphInstanceManager
 Oct 11 23:39:37.857 ERRO Subgraph instance failed to run: Failed to process event: Failed to handle Ethereum event with handler "challenge": Trap: Trap { kind: Host(HostExternalsError("Conflicting \'id\' value set by mapping for Challenge entity: 1 != 0x0100000000000000000000000000000000000000000000000000000000000000")) }, id: QmdCZUbn7GmGkJcGqd8YTF5GPvZKsZ4ovpPRyYiy14jdN9

@nenadjaja

nenadjaja commented 5 years ago

I'll try to reproduce @timmclean . Are you using Infura?

nenadjaja commented 5 years ago

I am getting this error:

Oct 17 08:21:04.146 WARN Trying again after error in block stream reconcile: Ethereum node could not find block with hash 0xfebd…1503
    Oct 17 08:21:04.703 WARN Trying again after error in block stream reconcile: Ethereum node could not find block with hash 0xfebd…1503
    Oct 17 08:21:05.302 WARN Trying again after error in block stream reconcile: Ethereum node could not find block with hash 0xfebd…1503
    Oct 17 08:21:06.107 WARN Trying again after error in block stream reconcile: Ethereum node could not find block with hash 0xfebd…1503
    Oct 17 08:21:06.405 WARN Trying again after error in block stream reconcile: Ethereum node could not find block with hash 0xfebd…1503

After getting this one once:

 Oct 17 08:21:03.637 WARN Trying again after block polling failed: ErrorMessage { msg: "no block returned from Ethereum" }
timmclean commented 5 years ago

still seeing this on block 5567777