continuedev/continue · warning · Error

Method not implemented.

Error message

Method not implemented.

What it means

BedrockReranker (or another Bedrock class) intentionally does not implement the `list` method required by the provider interface; calling it always throws. It's a stub signaling unsupported capability, not a bug.

Source

Thrown at packages/openai-adapters/src/apis/Bedrock.ts:717

      });
    } catch (error) {
      if (error instanceof Error) {
        if ("code" in error) {
          // AWS SDK specific errors
          throw new Error(
            `AWS Bedrock rerank error (${(error as any).code}): ${error.message}`,
          );
        }
        throw new Error(`Error in BedrockReranker.rerank: ${error.message}`);
      }
      throw new Error(
        "Error in BedrockReranker.rerank: Unknown error occurred",
      );
    }
  }

  list(): Promise<Model[]> {
    throw new Error("Method not implemented.");
  }
}

View on GitHub (pinned to 5522c6f44c)

Solutions

  1. Guard capability checks before calling list() (feature detection).
  2. If you own the interface, make list optional or return [] instead of throwing.
  3. Use Bedrock's native ListFoundationModels API via the AWS SDK directly.

Example fix

// before
const models = await provider.list();
// after
const models = typeof provider.list === 'function' && provider.listSupported !== false ? await provider.list() : [];
Defensive patterns

Strategy: type-guard

Type guard

const supportsList = (p: unknown): p is { list(): Promise<Model[]> } => typeof (p as any)?.list === 'function' && (p as any).listSupported !== false && !(p instanceof BedrockReranker);

Try / catch

try { models = await provider.list(); } catch (e) { if (e.message === 'Method not implemented.') models = []; else throw e; }

Prevention

When it happens

Trigger: Calling .list() on the Bedrock reranker/provider instance, e.g. a model-picker UI iterating all configured providers.

Common situations: Generic model-listing code that assumes every provider supports listing; adding Bedrock to a multi-provider router without gating list().

Related errors


AI-assisted analysis of continuedev/continue@5522c6f44c (2026-08-27). Data as JSON: /api/errors/b6bd5f2361318c10. Report an issue: GitHub.