Skip to content

Commit 08fba55

Browse files
committed
fixed json parsing of agents
1 parent c5ceec7 commit 08fba55

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/discovery/service.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export default class ServiceDiscovery implements IDiscovery {
2121
`http://controller.${this.config.namespace}.svc.cluster.local./agents`,
2222
{
2323
timeout: 500,
24+
responseType: 'json',
2425
retry: {
2526
limit: 2
2627
}
@@ -42,6 +43,7 @@ export default class ServiceDiscovery implements IDiscovery {
4243
`http://controller.${this.config.namespace}.svc.cluster.local./agent/${name}`,
4344
{
4445
timeout: 500,
46+
responseType: 'json',
4547
retry: {
4648
limit: 2
4749
}

0 commit comments

Comments
 (0)