Skip to content

Instantly share code, notes, and snippets.

@bravo-kernel
Last active January 4, 2022 19:22
Show Gist options
  • Save bravo-kernel/f31d1c0fe2dde1420888a67c47f43f17 to your computer and use it in GitHub Desktop.
Save bravo-kernel/f31d1c0fe2dde1420888a67c47f43f17 to your computer and use it in GitHub Desktop.
Ergo grabber error
15:51:48.522 WARN  o.e.explorer.indexer.processes.ChainIndexer - An error occurred while syncing with the network. Restarting ... 
org.http4s.InvalidMessageBodyFailure: Invalid message body: Could not decode JSON: {
  "currentTime" : 1641311509124,
  "network" : "mainnet",
  "name" : "ergo-mainnet-4.0.16",
  "stateType" : "utxo",
  "difficulty" : null,
  "bestFullHeaderId" : null,
  "bestHeaderId" : "b2c1317e6e429facc1114cf2481f3b8cc02b23472ae57ffadf3165df7bffe3b6",
  "peersCount" : 30,
  "unconfirmedCount" : 0,
  "appVersion" : "4.0.16-0-c320810c-20211116-2035-SNAPSHOT",
  "stateRoot" : "a5df145d41ab15a01e0cd3ffbab046f0d029e5412293072ad0f5827428589b9302",
  "genesisBlockId" : "b0244dfc267baca974a4caee06120321562784303a8a688976ae56170e4d175b",
  "previousFullHeaderId" : null,
  "fullHeight" : null,
  "headersHeight" : 152576,
  "stateVersion" : "0000000000000000000000000000000000000000000000000000000000000000",
  "fullBlocksScore" : null,
  "launchTime" : 1641310619366,
  "lastSeenMessageTime" : 1641311504756,
  "headersScore" : 21670402661862604800,
  "parameters" : {
    "outputCost" : 100,
    "tokenAccessCost" : 100,
    "maxBlockCost" : 1000000,
    "height" : 0,
    "maxBlockSize" : 524288,
    "dataInputCost" : 100,
    "blockVersion" : 1,
    "inputCost" : 2000,
    "storageFeeFactor" : 1250000,
    "minValuePerByte" : 360
  },
  "isMining" : false
}

at org.http4s.circe.CirceInstances$.org$http4s$circe$CirceInstances$$jsonDecodeErrorHelper(CirceInstances.scala:253)
at org.http4s.circe.CirceInstances$.$anonfun$defaultJsonDecodeError$1(CirceInstances.scala:240)
at org.http4s.circe.CirceInstances.$anonfun$jsonOfWithMediaHelper$2(CirceInstances.scala:106)
at scala.util.Either.fold(Either.scala:192)
at org.http4s.circe.CirceInstances.$anonfun$jsonOfWithMediaHelper$1(CirceInstances.scala:107)
at cats.data.EitherT.$anonfun$flatMap$1(EitherT.scala:405)
at monix.eval.internal.TaskRunLoop$.startFull(TaskRunLoop.scala:170)
at monix.eval.internal.TaskRestartCallback.syncOnSuccess(TaskRestartCallback.scala:101)
at monix.eval.internal.TaskRestartCallback$$anon$1.run(TaskRestartCallback.scala:118)
at monix.execution.internal.Trampoline.monix$execution$internal$Trampoline$$immediateLoop(Trampoline.scala:66)
at monix.execution.internal.Trampoline.startLoop(Trampoline.scala:32)
at monix.execution.schedulers.TrampolineExecutionContext$JVMOptimalTrampoline.startLoop(TrampolineExecutionContext.scala:132)
at monix.execution.internal.Trampoline.execute(Trampoline.scala:40)
at monix.execution.schedulers.TrampolineExecutionContext.execute(TrampolineExecutionContext.scala:57)
at monix.execution.schedulers.BatchingScheduler.execute(BatchingScheduler.scala:50)
at monix.execution.schedulers.BatchingScheduler.execute$(BatchingScheduler.scala:47)
at monix.execution.schedulers.AsyncScheduler.execute(AsyncScheduler.scala:31)
at monix.execution.schedulers.StartAsyncBatchRunnable.run(StartAsyncBatchRunnable.scala:42)
at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175)
Caused by: io.circe.DecodingFailure$$anon$2: Long: DownField(difficulty)
@bravo-kernel
Copy link
Author

bravo-kernel commented Jan 4, 2022

It turns out these errors are generated by the ergo grabber when the node has not been synced sufficiently yet/does not yet have a height.

Check if the node has height by running:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment