Sorry the doc is ok, no need to update anything. I just copy/paste the extra config from the comment that seems to be deprecated, my bad.
In any case....
Copy/paste all the files from the example: handler.go, krakend.json and then build with the dockerfile shown and the handler does not reach. The *.so file is placed into the folder.
If there's an error in the options I assume the message fmt.Errorf("%s plugin disabled: config not found", pluginName) would appear but does not .
I've added even a debug message at the start of the handler:
func (r registerer) registerHandlers(_ context.Context, extra map[string]interface{}, h http.Handler) (http.Handler, error) {
logger.Debug("Handler executing...")
It's like handler does not execute.
Any reason for this behaviour? Something that helps to identify the root cause?
2025-04-10 18:11:05 Parsing configuration file: /etc/krakend/krakend.json
2025-04-10 18:11:05 2025/04/10 16:11:05 KRAKEND INFO: Starting KrakenD v2.8.0
2025-04-10 18:11:05 2025/04/10 16:11:05 KRAKEND INFO: Working directory is /etc/krakend
2025-04-10 18:11:05 2025/04/10 16:11:05 KRAKEND DEBUG: [SERVICE: Plugin Loader] Starting loading process
2025-04-10 18:11:05 2025/04/10 16:11:05 KRAKEND DEBUG: [SERVICE: Executor Plugin] plugin #0 (/etc/krakend/plugins/krakend-server-example.so): plugin: symbol ClientRegisterer not found in plugin krakend-server-example
2025-04-10 18:11:05 2025/04/10 16:11:05 KRAKEND DEBUG: [PLUGIN: my-handler-plugin] Example handler plugin loaded
2025-04-10 18:11:05 2025/04/10 16:11:05 KRAKEND INFO: [SERVICE: Handler Plugin] Total plugins loaded: 1
2025-04-10 18:11:05 2025/04/10 16:11:05 KRAKEND DEBUG: [SERVICE: Modifier Plugin] plugin #0 (/etc/krakend/plugins/krakend-server-example.so): plugin: symbol ModifierRegisterer not found in plugin krakend-server-example
2025-04-10 18:11:05 2025/04/10 16:11:05 KRAKEND DEBUG: [SERVICE: Plugin Loader] Loading process completed
2025-04-10 18:11:05 2025/04/10 16:11:05 KRAKEND DEBUG: [SERVICE: Gin] Debug enabled
2025-04-10 18:11:05 2025/04/10 16:11:05 KRAKEND INFO: Starting the KrakenD instance
2025-04-10 18:11:05 2025/04/10 16:11:05 KRAKEND DEBUG: [ENDPOINT: /example] Building the proxy pipe
2025-04-10 18:11:05 2025/04/10 16:11:05 KRAKEND DEBUG: [BACKEND: /__debug/] Building the backend pipe
2025-04-10 18:11:05 2025/04/10 16:11:05 KRAKEND DEBUG: [ENDPOINT: /example] Building the http handler
2025-04-10 18:11:05 2025/04/10 16:11:05 KRAKEND DEBUG: [ENDPOINT: /example][JWTSigner] Signer disabled
2025-04-10 18:11:05 2025/04/10 16:11:05 KRAKEND INFO: [ENDPOINT: /example][JWTValidator] Validator disabled for this endpoint
2025-04-10 18:11:05 2025/04/10 16:11:05 KRAKEND INFO: [SERVICE: Gin] Listening on port: 8080
2025-04-10 18:11:10 2025/04/10 16:11:10 KRAKEND DEBUG: [ENDPOINT: /__debug/*] Method: GET
2025-04-10 18:11:10 2025/04/10 16:11:10 KRAKEND DEBUG: [ENDPOINT: /__debug/*] URL: /__debug/
2025-04-10 18:11:10 2025/04/10 16:11:10 KRAKEND DEBUG: [ENDPOINT: /__debug/*] Query: map[]
2025-04-10 18:11:10 2025/04/10 16:11:10 KRAKEND DEBUG: [ENDPOINT: /__debug/*] Params: [{param /}]
2025-04-10 18:11:10 2025/04/10 16:11:10 KRAKEND DEBUG: [ENDPOINT: /__debug/*] Headers: map[Accept-Encoding:[gzip] Content-Type:[application/json] User-Agent:[KrakenD Version 2.8.0] X-Forwarded-For:[172.18.0.1] X-Forwarded-Host:[localhost:8080]]
2025-04-10 18:11:10 2025/04/10 16:11:10 KRAKEND DEBUG: [ENDPOINT: /__debug/*] Body:
2025-04-10 18:11:10 [GIN] 2025/04/10 - 16:11:10 | 200 | 136.766µs | 172.18.0.1 | GET "/__debug/"
2025-04-10 18:11:10 [GIN] 2025/04/10 - 16:11:10 | 200 | 1.415593ms | 172.18.0.1 | GET "/example"
2025-04-10 18:11:10 2025/04/10 16:11:10 KRAKEND DEBUG: [SERVICE: Telemetry] Registering usage stats for Cluster ID Zjh/2gxYqjR+LNfnK40zwytAmZMxcbteUqhUuaOcR1E=