Hello,
I’m trying to import new services in Kong, but I keep getting the same error message (502: Bad Gateway). The service is the EdgeX core_data ping and it works without KONG. It should respond with ‘pong’. The response message says that “An invalid response was received from the upstream server”.
HTTP request:
curl -i -X GET --url http://localhost:8000/ --header ‘Host: coredata.com’
This is the service :
{
“host”: “127.0.0.1”,
“created_at”: 1547827284,
“connect_timeout”: 60000,
“id”: “9fbe2306-6eed-4f33-be22-8e51900e043c”,
“protocol”: “http”,
“name”: “core_data_go”,
“read_timeout”: 60000,
“port”: 48080,
“path”: “/api/v1/ping”,
“updated_at”: 1547827284,
“retries”: 5,
“write_timeout”: 60000
}
This is the route to the service:
{
“next”: null,
“data”: [
{
“created_at”: 1547827379,
“methods”: null,
“id”: “ac2a985f-f329-49ed-a280-37b36311efd2”,
“service”: {
“id”: “9fbe2306-6eed-4f33-be22-8e51900e043c”
},
“name”: null,
“hosts”: [
“coredata.com”
],
“updated_at”: 1547827379,
“preserve_host”: false,
“regex_priority”: 0,
“paths”: null,
“sources”: null,
“destinations”: null,
“snis”: null,
“protocols”: [
“http”,
“https”
],
“strip_path”: true
}
]
}
I think my problem is quite basic and should have an easy solution, but somehow I can’t figure it out. Some help would be really appreciated!
Greetings