Skip to content

Leveldb throws write error on read #299

@MichaelJCole

Description

@MichaelJCole

https://github.com/ipfs/js-stores/blob/main/packages/datastore-level/src/index.ts#L121

  async get (key: Key): Promise<Uint8Array> {
    let data
    try {
      data = await this.db.get(key.toString())
    } catch (err: any) {
      if (err.notFound != null) {
        throw Errors.notFoundError(err)
      }

      throw Errors.dbWriteFailedError(err)
    }
    return data
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    need/triageNeeds initial labeling and prioritization

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions