Skip to content

customCache match method maybe get undefined input #1249

Closed
@wszgrcy

Description

@wszgrcy

System Info

electron 32.2.7
windows 10 19045.4717

Environment/Platform

  • Website/web-app
  • Browser extension
  • Server-side (e.g., Node.js, Deno, Bun)
  • Desktop app (e.g., Electron)
  • Other (e.g., VSCode extension)

Description

export class ProxyCache {

  constructor(

  ) {

  }
  async match(request: string): Promise<FileResponse | undefined> {
// request maybe undefined in model request
}}
env.customCache=new ProxyCache() 

in 3.3.3 worked in 3.4.0 will receive undefined
not all undefined, But it's an additional undefined call

Reproduction

  1. use customCache
  2. request Xenova/bge-base-zh-v1.5
  3. match method receive undefined and throw error

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions