{"record":{"id":"29fc9aecff7465b4","repo":"router-for-me/CLIProxyAPI","slug":"plugin-function-table-is-incomplete","errorCode":null,"errorMessage":"plugin function table is incomplete","messagePattern":"plugin function table is incomplete","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/pluginhost/loader_unix.go","lineNumber":160,"sourceCode":"\tC.cliproxy_set_host_api(hostAPI, C.uint32_t(pluginHostABIVersion), hostCtx)\n\n\tclient := &dynamicLibraryClient{\n\t\thandle:  handle,\n\t\thostAPI: hostAPI,\n\t\thostCtx: hostCtx,\n\t}\n\trc := C.cliproxy_call_init(initSymbol, hostAPI, &client.api)\n\tif rc != 0 {\n\t\tclient.Shutdown()\n\t\treturn nil, fmt.Errorf(\"cliproxy_plugin_init returned %d\", int(rc))\n\t}\n\tif uint32(client.api.abi_version) != pluginHostABIVersion {\n\t\tclient.Shutdown()\n\t\treturn nil, fmt.Errorf(\"plugin ABI version %d is not supported\", uint32(client.api.abi_version))\n\t}\n\tif client.api.call == nil || client.api.free_buffer == nil {\n\t\tclient.Shutdown()\n\t\treturn nil, fmt.Errorf(\"plugin function table is incomplete\")\n\t}\n\treturn client, nil\n}\n\nfunc (c *dynamicLibraryClient) Call(ctx context.Context, method string, request []byte) ([]byte, error) {\n\tif c == nil || c.api.call == nil {\n\t\treturn nil, fmt.Errorf(\"plugin client is closed\")\n\t}\n\tif ctx != nil {\n\t\tselect {\n\t\tcase <-ctx.Done():\n\t\t\treturn nil, ctx.Err()\n\t\tdefault:\n\t\t}\n\t}\n\n\tcMethod := C.CString(method)\n\tdefer C.free(unsafe.Pointer(cMethod))","sourceCodeStart":142,"sourceCodeEnd":178,"githubUrl":"https://github.com/router-for-me/CLIProxyAPI/blob/78f0c4079e3e6273d65d03b5549cffc898703264/internal/pluginhost/loader_unix.go#L142-L178","documentation":"Error \"plugin function table is incomplete\" thrown in router-for-me/CLIProxyAPI.","triggerScenarios":"Thrown at internal/pluginhost/loader_unix.go:160 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Rebuild the plugin against the current plugin SDK so all function table entries are exported.","Verify the plugin binary is not truncated or corrupted."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"78f0c4079e3e6273d65d03b5549cffc898703264","analyzedAt":"2026-08-15T12:26:37.444Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}