Re: [krakend-community] Invalid character in Flexible configuration

383 views
Skip to first unread message
Message has been deleted

Albert Lombarte

unread,
Aug 12, 2022, 9:54:49 AM8/12/22
to Habib Bellia, KrakenD Community

Thanks
Logo
Albert Lombarte
CEO

LinkedIn icon   Twitter icon  


Missatge de Habib Bellia <bel...@gmail.com> del dia dv., 12 d’ag. 2022 a les 13:23:

I flowed this doc to implement flexible configuration :
https://www.krakend.io/docs/configuration/flexible-config/#:~:text=The%20Flexible%20Configuration%20component%20is,compiles%20during%20start%2Dup%20time.

But I have this issus :

ERROR parsing the configuration file: '/etc/kt/config/krakend.json': invalid character '{' looking for beginning of object key string, offset: 34, row: 2, col: 14

And this is krakend.json

{ "version": 3, "port": {{ .service.port }}, "extra_config": {{ marshal .service.extra_config }}, "host": {{ marshal .service.default_hosts }}, "endpoints": [ {{ range $idx, $endpoint := .endpoint.example_group }} {{if $idx}},{{end}} { "endpoint": "{{ $endpoint.endpoint }}", "backend": [ { "url_pattern": "{{ $endpoint.backend }}", "extra_config": { {{ include "rate_limit_backend.tmpl" }} } } ]} {{ end }} ] }

I read about this prob ... UTF-8 without bom but same prob ...

any solution please .

--
You received this message because you are subscribed to the Google Groups "KrakenD Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to community+...@krakend.io.
To view this discussion on the web visit https://groups.google.com/a/krakend.io/d/msgid/community/bd7d3dc2-f756-406a-a0dd-d849d73937b1n%40krakend.io.
Reply all
Reply to author
Forward
0 new messages