rarible / ethereum-indexer-public

Ethereum indexer and APIs
https://rarible.org
GNU General Public License v3.0
158 stars 40 forks source link

NullPointerException "Parameter specified as non-null is null: method com.rarible.protocol.nft.api.configuration.NftIndexerApiProperties.<init>, parameter operator" #218

Closed AnjanaKavinda closed 9 months ago

AnjanaKavinda commented 2 years ago

When I run the Nft Indexer Api Application on my local machine, it gives me the NullPointerException like this

"java.lang.NullPointerException: Parameter specified as non-null is null: method com.rarible.protocol.nft.api.configuration.NftIndexerApiProperties., parameter operator"

Please anyone can explain the cause of this issue and what I miss?

bootstrap.yml spring: application: name: foo cloud: consul: host: localhost port: 8500

logging: logstash: tcp-socket: enabled: true destinations: localhost:4560

logback-spring.xml

<?xml version="1.0" encoding="UTF-8"?>

localhost:4560 {"service":"${APPLICATION_SERVICE_NAME}","environment":"${APPLICATION_ENVIRONMENT}"}

application-consul.yml

spring: data: mongodb: uri: mongodb://${localhost:27017} database: ${test}

redisUri: ${redis://localhost:6379}

parityUrls: ${https://speedy-nodes-nyc.moralis.io/xxxxxxxx/eth/mainnet} parityWebSocketUrls: ${wss://speedy-nodes-nyc.moralis.io/xxxxxxxxx/eth/mainnet/ws}

rarible: ethereum: httpUrl: ${https://speedy-nodes-nyc.moralis.io/xxxxxxxxxx/eth/mainnet} websocketUrl: ${wss://speedy-nodes-nyc.moralis.io/xxxxxxxxxx/eth/mainnet/ws}

common: kafka-replica-set: ${localhost:9092}

blockchain: scanner: kafka: broker-replica-set: ${localhost:9092}

atapin commented 2 years ago

@AnjanaKavinda could you try running the indexer according to the Getting Started section? The docker-compose file contains all required properties, including operator private key.

evgenynacu commented 9 months ago

Closing this as stale Feel free to reopen if needed