Skip to content

TypeError: Cannot read properties of undefined (reading 'slice') #964

@eleaner

Description

@eleaner

Describe the bug
latest version of perplexica does not seem t owork for me

To Reproduce
Steps to reproduce the behavior:

  1. clone repo
  2. go inside
  3. run docker compose build
  4. run docker compose up -d
  5. configure litellm provider

Expected behavior
I would love to see search results

Screenshots
searxng seems to be working

Image

but there are no results

Image

every search adds the same problem
TypeError: Cannot read properties of undefined (reading 'slice')

Additional context
docker logs -f perplexica-perplexica-1
Starting SearXNG...
Waiting for SearXNG to be ready...
2026-01-03 00:06:39,792 ERROR:searx.engines: loading engine ahmia failed: set engine to inactive!
2026-01-03 00:06:39,994 ERROR:searx.engines: loading engine torch failed: set engine to inactive!

  • Serving Flask app 'searx/webapp.py'
  • Debug mode: off
    2026-01-03 00:06:40,879 ERROR:searx.botdetection: X-Forwarded-For nor X-Real-IP header is set!
    SearXNG started successfully (PID: 7)
    Starting Perplexica...
    ▲ Next.js 16.0.7

✓ Starting...
Running database migrations...
Applied migration: 0000_fuzzy_randall.sql
Applied migration: 0001_wise_rockslide.sql
Applied migration: 0002_daffy_wrecker.sql
Database migrations completed successfully
✓ Ready in 2.3s
TypeError: Cannot read properties of undefined (reading 'slice')
at Object.execute (.next/server/chunks/641.js:41:596)
at d.execute (.next/server/chunks/641.js:123:140)
at (.next/server/chunks/641.js:123:249)
at Array.map ()
at d.executeAll (.next/server/chunks/641.js:123:218)
at i.research (.next/server/chunks/641.js:541:988)
at async m.searchAsync (.next/server/app/api/chat/route.js:1:13218)
⨯ unhandledRejection: TypeError: Cannot read properties of undefined (reading 'slice')
at Object.execute (.next/server/chunks/641.js:41:596)
at d.execute (.next/server/chunks/641.js:123:140)
at (.next/server/chunks/641.js:123:249)
at Array.map ()
at d.executeAll (.next/server/chunks/641.js:123:218)
at i.research (.next/server/chunks/641.js:541:988)
at async m.searchAsync (.next/server/app/api/chat/route.js:1:13218)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions