Random error in D1, is there anything I can do to fix this? ``` D1_ERROR: D1 storage operation exc

Random error in D1, is there anything I can do to fix this?

D1_ERROR: D1 storage operation exceeded timeout which caused object to be reset.


Code
export const getUser = async (
  env: Bindings,
  userId: number
): Promise<Resource | null> => {
  const sqlQuery = env.DB.prepare(
    `SELECT * FROM Users WHERE user_id = ?`
  ).bind(userId);
  return await sqlQuery.first();
};
Was this page helpful?