You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2019/12/09 11:43:22 UTC
[GitHub] [incubator-apisix] sshniro edited a comment on issue #954: bug:
Attempt to index field 'plugins' Error,
when configuring route and referencing services with DNS.
sshniro edited a comment on issue #954: bug: Attempt to index field 'plugins' Error, when configuring route and referencing services with DNS.
URL: https://github.com/apache/incubator-apisix/issues/954#issuecomment-563194449
It seems providing a DNS name to the service provokes this error. I tried the similar with [http://example.com](http://example.com) . When I include the exact IP of the service, it works, but when I include the domain name it fails.
But if I provide everything inside a route, then it works.
For example, the following configuration will work.
```bash
curl "http://127.0.0.1:9080/apisix/admin/services/20" -X PUT -d '
{
"upstream": {
"type": "roundrobin",
"nodes": {
"93.184.216.34:80": 1
}
}
}'
```
but this will fail.
```bash
curl "http://127.0.0.1:9080/apisix/admin/services/20" -X PUT -d '
{
"upstream": {
"type": "roundrobin",
"nodes": {
"example.com": 1
}
}
}'
```
Is this the expected behavior? if so, should it be documented?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services