Open
Description
Current Behavior
./adc dump --tls-skip-verify --verbose 2 -o service-configuration.yaml
generate empty output for upstreams and routes.
Debug log shown the server return upstreams and routes correctly.
[7:23:16 PM] [APISIX] › ⬤ debug Get upstreams
GET https://10.0.0.1:9180/apisix/admin/upstreams
Accept: application/json, text/plain, */*
Content-Type: application/json
X-API-KEY: *****
User-Agent: axios/1.7.2
Accept-Encoding: gzip, compress, deflate, br
200 OK
Date: Tue, 17 Dec 2024 11:23:16 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: close
Server: APISIX/3.9.1
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: *
Access-Control-Max-Age: 3600
X-Api-Version: v3
{
"total": 1,
"list": [
{
"value": {
"hash_on": "vars",
"type": "roundrobin",
"checks": {
"active": {
"https_verify_certificate": true,
"healthy": {
"http_statuses": [
200,
302
],
"interval": 1,
"successes": 2
},
"type": "tcp",
"http_path": "/",
"unhealthy": {
"http_statuses": [
429,
404,
500,
501,
502,
503,
504,
505
],
"http_failures": 5,
"tcp_failures": 2,
"timeouts": 3,
"interval": 1
},
"concurrency": 10,
"timeout": 1
}
},
"create_time": 1718966926,
"id": "472184775684129492",
"update_time": 1718966926,
"keepalive_pool": {
"size": 320,
"idle_timeout": 60,
"requests": 1000
},
"nodes": [
{
"weight": 1,
"port": 80,
"priority": 0,
"host": "10.0.0.206"
},
{
"weight": 1,
"port": 80,
"priority": 0,
"host": "10.0.0.82"
}
],
"pass_host": "pass",
"scheme": "http",
"name": "ocr-http",
"timeout": {
"send": 6,
"connect": 6,
"read": 120
}
},
"key": "/apisix/upstreams/472184775684129492",
"createdIndex": 35,
"modifiedIndex": 35
}
]
}
Exxpected Behavior
Dump all upstreams and routes.
Steps to Reproduce
./adc dump --tls-skip-verify --verbose 2 -o service-configuration.yaml
Environment
- APISIX version: 3.9.1
- ADC version (run
adc version
): 0.16.2 - Operating system (run
uname -a
): Linux manjaro 6.1.119-1-MANJARO x86_64 GNU/Linux