Skip to content

Commit 73a5325

Browse files
retain handling of /hello route error
1 parent 047dc3b commit 73a5325

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/extension/extension.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ func (em *ExtensionManager) checkAgentRunning() {
9191
req, _ := http.NewRequest(http.MethodGet, em.helloRoute, nil)
9292
if response, err := em.httpClient.Do(req); err == nil && response.StatusCode == 200 {
9393
logger.Debug("Hit the extension /hello route")
94+
} else {
95+
logger.Debug("Will use the API since the Serverless Agent was detected but the hello route was unreachable")
96+
em.isExtensionRunning = false
9497
}
9598
}
9699
}

0 commit comments

Comments
 (0)