Skip to content

Commit 063c2ef

Browse files
committed
Fixed #115
1 parent 22372b6 commit 063c2ef

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sdk/service/handlers.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func ListServices(context config.Context) ListServicesResponse {
1717
request.SetDebug(context.Debug)
1818
request.TLSClientConfig(&tls.Config{InsecureSkipVerify: context.Insecure})
1919
_, body, errs := request.
20-
Timeout(1*time.Second).
20+
Timeout(10*time.Second).
2121
Get(fmt.Sprintf("https://%s/service", context.Endpoint)).
2222
Set("Content-Type", "application/json").
2323
Set("User-Agent", fmt.Sprintf("jrctl/%s", version.VersionString)).
@@ -26,6 +26,10 @@ func ListServices(context config.Context) ListServicesResponse {
2626
Send(`{}`).
2727
End()
2828
if len(errs) > 0 {
29+
if context.Debug {
30+
fmt.Println("Error in ListServices:")
31+
fmt.Println(errs)
32+
}
2933
return ListServicesResponse{
3034
GenericResponse: api.NewClientError(),
3135
Payload: map[string]ServiceProperties{},

0 commit comments

Comments
 (0)