continue icon indicating copy to clipboard operation
continue copied to clipboard

Error getting context items from codebase: Error: {"error":{"code":"404","message": "Resource not found"}}

Open Seany84 opened this issue 2 years ago • 6 comments

Before submitting your bug report

Relevant environment info

- OS: Windows 11
- Continue version: 0.0.75
- IDE version: JetBrains Rider v2024.2.8 build #RD-242.23339.62, built on October 8, 2024
- Model: Azure OpenAI 4o, ollama qwen2.5-coder:1.5b and openai text-embedding-3-large
- config.json:
  
{
  "models": [
    {
      "title": "Azure OpenAI 4o",
      "provider": "openai",
      "model": "gpt-4o",
      "apiBase": "[REDACTED]",
      "engine": "gpt-4o",
      "apiVersion": "2024-05-01-preview",
      "apiType": "azure",
      "apiKey": "[REDACTED]"
    }
  ],
  "tabAutocompleteModel": {
    "title": "Tab Autocomplete Model",
    "provider": "ollama",
    "model": "qwen2.5-coder:1.5b",
    "apiBase": "[REDACTED]:11434/"
  },
  "embeddingsProvider": {
    "provider": "openai",
    "model": "text-embedding-3-large",
    "apiBase": "[REDACTED]",
    "apiVersion": "1",
    "apiKey": "[REDACTED]",
    "apiType": "azure"
  },
  "customCommands": [
    {
      "name": "test",
      "prompt": "{{{ input }}}\n\nWrite a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.",
      "description": "Write unit tests for highlighted code"
    }
  ],
  "contextProviders": [
    {
      "name": "diff",
      "params": {}
    },
    {
      "name": "folder",
      "params": {}
    },
    {
      "name": "codebase",
      "params": {}
    }
  ],
  "slashCommands": [
    {
      "name": "edit",
      "description": "Edit selected code"
    },
    {
      "name": "comment",
      "description": "Write comments for the selected code"
    },
    {
      "name": "share",
      "description": "Export the current chat session to markdown"
    },
    {
      "name": "commit",
      "description": "Generate a git commit message"
    }
  ]
}

Description

Using OpenAI for model and tab completion works but the @Codebase command returns an error every time.

To reproduce

  1. Configure plugin with Azure OpenAI for model and embedding provider.
  2. Use @Codebase command

Log output

[2024-10-16T09:24:45] Error retrieving from FTS: Error: SQLITE_ERROR: no such table: fts

Seany84 avatar Oct 16 '24 09:10 Seany84

This appears to perhaps be related to this: https://github.com/continuedev/continue/issues/2089#issuecomment-2323159863

We are also getting a somewhat similar error here: https://github.com/continuedev/continue/issues/2474

@Seany84 , could you try clearing your index? rm -rf ~/.continue/index

Patrick-Erichsen avatar Oct 17 '24 18:10 Patrick-Erichsen

@Patrick-Erichsen I've deleted everything inside the ~/continue/index folder and restarted Rider, still getting the exact same error.

Seany84 avatar Oct 22 '24 11:10 Seany84

@Seany84 are you still seeing this in recent versions?

RomneyDa avatar Feb 20 '25 00:02 RomneyDa

@RomneyDa I am still experiencing this issue with embeddings (on both IntelliJ and VSCode with v1.0.1):

[2025-02-28T21:56:59] Error retrieving from FTS: Error: SQLITE_ERROR: no such table: fts

JonathanRohland-TNG avatar Mar 01 '25 11:03 JonathanRohland-TNG

This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.

github-actions[bot] avatar Aug 06 '25 02:08 github-actions[bot]

This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, please reopen + comment and we'll gladly take another look!

github-actions[bot] avatar Aug 17 '25 02:08 github-actions[bot]