Open refi93 opened 4 years ago
I've encountered this issue while developing the tests for the new infrastructure. The error wasn't cause by cardano-crypto.js
in any sense. It was caused by passing invalid argument( or incorrect number of arguments ) to dbApi
call. This stackoverflow issue helped me solved the problem. It might or might not be the case but based on my experience, awaiting the promise from the db throws the error.
One suggestion would be to look into this function weather we don't pass to some of the dbAbi calls some undefined values or anything. https://github.com/vacuumlabs/adalite-backend-service/blob/3f706970b61965f030e9823ea2293801d6c3dcbb/src/legacy-routes.js#L79
I resolved my issue by altering the function in dbApi.js so it doesn't return the promise right away, but I assigned it to a variable and used .then().catch()
. Logging the caught error should give us the answer imho.
When fetching info about address (cardano-rest-integration branch), it sometimes fails with
We were unable to reproduce it locally as of now, it will likely need debugging in prod