Skip to content

Commit 632b42f

Browse files
committed
Enhance error handling for LLM service by detecting additional error messages in response
1 parent 516bd3b commit 632b42f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test-mcp-server.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ jobs:
236236
237237
echo "HTTP response code: $HTTP_CODE"
238238
239-
if [[ "$HTTP_CODE" == "500" ]] && [[ "$RESPONSE" == *"Invalid API Key"* ]]; then
240-
echo "LLM authentication error detected - this is expected with invalid API keys"
239+
if [[ "$HTTP_CODE" == "500" ]] && ([[ "$RESPONSE" == *"Invalid API Key"* ]] || [[ "$RESPONSE" == *"local variable"* ]] || [[ "$RESPONSE" == *"Connection error"* ]]); then
240+
echo "LLM service error detected - this is expected with invalid API keys or connection issues"
241241
echo "status=auth_error" >> $GITHUB_OUTPUT
242242
exit 0
243243
elif [[ "$HTTP_CODE" != "200" ]]; then

0 commit comments

Comments
 (0)