Replies: 4 comments 4 replies
-
I didn't see your consumer information, can you complete the configuration information. |
Beta Was this translation helpful? Give feedback.
-
without a consumer, there is an error message like "Missing related consumer". |
Beta Was this translation helpful? Give feedback.
-
It's not clear what's going on, but after clearing all the configuration and re-creating the configuration through the apisix API, the problem does not recap. |
Beta Was this translation helpful? Give feedback.
-
same error, config conditions:
this problem will not appear when disable the |
Beta Was this translation helpful? Give feedback.
-
https://github.com/apache/apisix-docker/tree/master/example
https://apisix.apache.org/docs/docker/example/#configure
Following the above example to launch an apisix via docker-compose, but request with an error message like "Missing related consumer".
Once I create a consumer with basic-auth at least, there is another error {"message":"Missing authorization in request"}
How to deal with it?
route:
{ "uri": "/*", "name": "route-2", "methods": [ "GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "CONNECT", "TRACE" ], "host": "web1.nijia.com", "service_id": "434888896975733453", "upstream_id": "434770829968933581", "labels": { "API_VERSION": "v2" }, "status": 1 }
services:
{ "name": "nijia", "desc": "test", "upstream_id": "434770829968933581" }
` curl -i -X GET "http://127.0.0.1:9080" -H "Host: web1.nijia.com"
HTTP/1.1 401 Unauthorized
Date: Fri, 18 Nov 2022 03:56:48 GMT
Content-Type: text/plain; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
WWW-Authenticate: Basic realm='.'
Server: APISIX/3.0.0
{"message":"Missing authorization in request"}`
Beta Was this translation helpful? Give feedback.
All reactions