【发布时间】:2019-03-14 18:25:48
【问题描述】:
我正在尝试在 kong 中创建一个服务,它的 url 接收路径变量“example / {id} / example”,但 kong 抛出以下异常
curl 创建服务
curl -i -X POST --url http://localhost:8001/services/ -H "Cache-Control: no-cache" -H "Content-Type: application/x-www-form-urlencoded" -d "protocol=http&host=localhost&port=8090&path=/v1/{folio}/ejemplo&name=name-services"
创建时异常
{"strategy":"postgres","message":"schema violation (path: invalid path: '\/v1\/{folio}\/ejemplo' (characters outside of the reserved list of RFC 3986 found))","name":"schema violation","fields":{"path":"invalid path: '\/v1\/{folio}\/ejemplo' (characters outside of the reserved list of RFC 3986 found)"},"code":2}
请帮忙
【问题讨论】:
标签: api microservices kong