You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This curl command is incorrect and results in a message
{"code":2,"fields":{"expression":"unknown field","@entity":["must set one of 'methods', 'hosts', 'headers', 'paths', 'snis' when 'protocols' is 'https'"]},"message":"2 schema violations (must set one of 'methods', 'hosts', 'headers', 'paths', 'snis' when 'protocols' is 'https'; expression: unknown field)","name":"schema violation"}
Code of Conduct and Community Expectations
I agree to follow this project's Code of Conduct
I agree to abide by the Community Expectations
The text was updated successfully, but these errors were encountered:
Actually the command is correct, but you need to satisfy the prerequisite indicated in the documentation:
Edit the kong.conf to contain the line router_flavor = expressions and restart Kong Gateway.
Without it, the expressions are not accepted in the API calls
Once router_flavor = expressions is added, the CURL command works as expected:
Where is the problem?
On this page https://docs.konghq.com/gateway/3.9.x/key-concepts/routes/expressions/ there is a documentation that says
Create routes with expressions
To create a new route object using expressions, send a POST request to the services endpoint:
What is your suggestion?
The curl command is incorrect
(The service example-service has been created)
This curl command is incorrect and results in a message
Code of Conduct and Community Expectations
The text was updated successfully, but these errors were encountered: