cardano-miners / fortuna

All the "greatness" of proof of work, now in smart contract form
https://minefortuna.com
Apache License 2.0
52 stars 23 forks source link

Uncaught (in promise) SyntaxError: Unexpected token #22

Closed BrockCruess closed 1 year ago

BrockCruess commented 1 year ago
error: Uncaught (in promise) SyntaxError: Unexpected token '<', "<html>
<h"... is not valid JSON
    const result = await fetch(
caike commented 1 year ago

Might be a connection issue with Ogmios or Kupo. Make you can access them from where you are running your miner and that Kupo is fully synced.

BrockCruess commented 1 year ago

I'm using Demeter for now, Kupo claims to be 100% synced and Ogmios says "Status OK". The miner itself is running on a Windows machine with solid hardware. Accessing the Kupo Public DNS from the mining Windows machine returns: {"hint":"Endpoint not found. Make sure to double-check the documentation at: <https://cardanosolutions.github.io/kupo>!"}

caike commented 1 year ago

Try this one and see if it works for you https://kupo-mainnet-api-starters-28e75e.m2-prod-7xjh33.demeter.run/

BrockCruess commented 1 year ago

Trying that Kupo link now, I'll let it run for a bit to see if this specific error keeps happening. Other errors that I've reported are still happening for sure. After watching the Ogmios monitor for a few minutes it goes to Status: KO (with a skull logo) once in a while for a minute or two, however it doesn't necessarily crash the miner during those times.

rvcas commented 1 year ago

the problem is that you are getting a bad response from the services that the lucid provider is using under the hood.