You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As it is right now, when a SQLite error occurs it's impossible to see the actual error that did occur because of this TypeError happening. So perhaps also worth adding a try/catch around this error parsing as well.
In case it's relevant, the error I was receiving was a integer overflow error from using sum on a bigint column with negative values and the EVM_MIN_INT encoding that is done by this repo causing that sum operation to overflow
The text was updated successfully, but these errors were encountered:
Seeing
TypeError: parameters.reduce is not a function
when a SQLite error occurs.Coming from this code
located at https://github.com/ponder-sh/ponder/blob/main/packages/core/src/utils/sqlite.ts#L40
This is happening because
parameters
is a string and represents the first arg that was passed to the query as this code is currently written.I'm not sure what exactly the intention is with this code, but perhaps it should be something more along the lines of this
As it is right now, when a SQLite error occurs it's impossible to see the actual error that did occur because of this TypeError happening. So perhaps also worth adding a try/catch around this error parsing as well.
In case it's relevant, the error I was receiving was a
integer overflow
error from usingsum
on abigint
column with negative values and the EVM_MIN_INT encoding that is done by this repo causing that sum operation to overflowThe text was updated successfully, but these errors were encountered: