{"record":{"id":"b6bd5f2361318c10","repo":"continuedev/continue","slug":"method-not-implemented-b6bd5f","errorCode":null,"errorMessage":"Method not implemented.","messagePattern":"Method not implemented\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"warning","filePath":"packages/openai-adapters/src/apis/Bedrock.ts","lineNumber":717,"sourceCode":"      });\n    } catch (error) {\n      if (error instanceof Error) {\n        if (\"code\" in error) {\n          // AWS SDK specific errors\n          throw new Error(\n            `AWS Bedrock rerank error (${(error as any).code}): ${error.message}`,\n          );\n        }\n        throw new Error(`Error in BedrockReranker.rerank: ${error.message}`);\n      }\n      throw new Error(\n        \"Error in BedrockReranker.rerank: Unknown error occurred\",\n      );\n    }\n  }\n\n  list(): Promise<Model[]> {\n    throw new Error(\"Method not implemented.\");\n  }\n}\n","sourceCodeStart":699,"sourceCodeEnd":720,"githubUrl":"https://github.com/continuedev/continue/blob/5522c6f44ca0ac3528b37244818fbfa39b5af470/packages/openai-adapters/src/apis/Bedrock.ts#L699-L720","documentation":"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.","triggerScenarios":"Calling .list() on the Bedrock reranker/provider instance, e.g. a model-picker UI iterating all configured providers.","commonSituations":"Generic model-listing code that assumes every provider supports listing; adding Bedrock to a multi-provider router without gating list().","solutions":["Guard capability checks before calling list() (feature detection).","If you own the interface, make list optional or return [] instead of throwing.","Use Bedrock's native ListFoundationModels API via the AWS SDK directly."],"exampleFix":"// before\nconst models = await provider.list();\n// after\nconst models = typeof provider.list === 'function' && provider.listSupported !== false ? await provider.list() : [];","handlingStrategy":"type-guard","validationCode":null,"typeGuard":"const supportsList = (p: unknown): p is { list(): Promise<Model[]> } => typeof (p as any)?.list === 'function' && (p as any).listSupported !== false && !(p instanceof BedrockReranker);","tryCatchPattern":"try { models = await provider.list(); } catch (e) { if (e.message === 'Method not implemented.') models = []; else throw e; }","preventionTips":["Maintain a per-provider capability map instead of try/catch.","Never call list() on reranker/embedder-only instances."],"tags":["bedrock","not-implemented","interface-stub"],"backgroundTag":"method-not-implemented","analyzedSha":"5522c6f44ca0ac3528b37244818fbfa39b5af470","analyzedAt":"2026-08-27T11:28:54.683Z","schemaVersion":2},"datasetVersion":"2026-08-27T13:17:12.746Z"}