Skip to content

Unhanled Runtime Error #215

@Omar8485

Description

@Omar8485

Hi, I have this error when I make a simple question:

May you help me?

app:(https://github.com/openai/openai-cookbook/tree/main/apps/file-q-and-a)/nextjs-with-flask-server/

Unhandled Runtime Error
TypeError: Cannot read properties of undefined (reading 'toLowerCase')

src\services\utils.ts (9:5) @ toLowerCase

` .replace(/[.,/#!$%^&;:{}=-_~()\s]/g, "");
const normalizedStr = str
.toLowerCase()
^
.replace(/[.,/#!$%^&
;:{}=-_~()\s]/g, "");

// Return true if the normalized file name is included in the normalized string`

Call Stack
file
src\components\FileQandAArea.tsx (122:35)
filter
src\components\FileQandAArea.tsx (121:26)
image

I have to say that I use this with text in Spanish.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions