<p>This error is happening as the epoch_param table is empty and the APIs need Protocol parameters for the epoch. The table is left empty if we use the --disable-ledger parameter while running the db-sync. More here, <a href="https://github.com/input-output-hk/cardano-db-sync/blob/master/doc/configuration.md#--disable-ledger" rel="nofollow noreferrer">https://github.com/input-output-hk/cardano-db-sync/blob/master/doc/configuration.md#--disable-ledger</a></p>
<p>For a quick fix, enter value in the protocol parameters in the epoch_param table.</p>
<p>Warning: Running db-sync with this flag and then restarting it without the flag will cause crashes and should be avoided.</p>

CC BY-SA 4.0
2022-08-08T20:34:01.920Z
2022-08-08T20:34:01.920Z
Kartik Iyer
<p>Cardano Rosetta Construction endpoints /construction/preprocess and other endpoints are returning 5000 Error with Cannot read property 'key_deposit' of undefined&quot;. Also, /construction/metadata is returning  Cannot read property 'min_fee_a' of undefined&quot;. This is for rosetta 1.8.0 with db-sybc 13.0.0</p>

<cardano-db-sync>
Cardano Rosetta API returning 5000 error occurred - Cannot read property 'key_deposit' of undefined
# Cardano Rosetta API returning 5000 error occurred - Cannot read property 'key_deposit' of undefined

(Asked by: username_0 on 2022-08-08)

Cardano Rosetta Construction endpoints /construction/preprocess and other endpoints are returning 5000 Error with Cannot read property 'key\_deposit' of undefined". Also, /construction/metadata is returning Cannot read property 'min\_fee\_a' of undefined". This is for rosetta 1.8.0 with db-sybc 13.0.0

**Tags:** cardano-db-sync

---

## 1 answers

### Answer by username_0 on 2022-08-08. Score: 1

This error is happening as the epoch\_param table is empty and the APIs need Protocol parameters for the epoch. The table is left empty if we use the --disable-ledger parameter while running the db-sync. More here, <https://github.com/input-output-hk/cardano-db-sync/blob/master/doc/configuration.md#--disable-ledger>

For a quick fix, enter value in the protocol parameters in the epoch\_param table.

Warning: Running db-sync with this flag and then restarting it without the flag will cause crashes and should be avoided.


---

