[GH-ISSUE #1] [Bug] Connection failed with "nodename nor servname provided, or not known" error in kiroaas v1.0.1 #2

Open
opened 2026-02-27 05:58:02 +03:00 by kerem · 1 comment
Owner

Originally created by @degary on GitHub (Feb 10, 2026).
Original GitHub issue: https://github.com/hnewcity/KiroaaS/issues/1

Description:

When making requests to kiroaas, the connection fails with HTTP 502 error. The server cannot establish a connection to the backend.

Environment:

  • kiroaas version: 1.0.1

Error Logs:
2026-02-10 18:11:11 | ERROR | kiro.routes_openai:chat_completions:408 - HTTP 502 - POST /v1/chat/completions - Connection failed - unable to establish connection to the server.
Troubleshooting:

  1. Check your internet connection
  2. Verify firewall/antivirus settings
  3. Try disabling VPN temporarily
  4. Check if the service is accessible from other devices
    Technical details: ConnectError: [Errno 8] nodename nor servname provided, or not known
    2026-02-10 18:11:11 | INFO | logging:callHandlers:1737 - 127.0.0.1:65239 - "POST /v1/chat/completions HTTP/1.1" 502
    2026-02-10 18:11:26 | WARNING | logging:callHandlers:1737 - Invalid HTTP request received.

Steps to Reproduce:

  1. Install and run kiroaas version 1.0.1

  2. Verify the service is listening (telnet test passes):
    bash
    telnet 127.0.0.1 18000
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.

  3. Execute the curl command provided in the control panel:
    bash
    curl http://127.0.0.1:18000/v1/chat/completions
    -H "Content-Type: application/json"
    -H "Authorization: Bearer sk-8XgpbOvR9hxGSVh9AukK89w6sW4J6PVN"
    -d '{
    "model": "claude-sonnet-4-5",
    "messages": [
    {"role": "user", "content": "Hello!"}
    ]
    }'

  4. Connection fails with the error above

Originally created by @degary on GitHub (Feb 10, 2026). Original GitHub issue: https://github.com/hnewcity/KiroaaS/issues/1 Description: When making requests to kiroaas, the connection fails with HTTP 502 error. The server cannot establish a connection to the backend. Environment: - kiroaas version: 1.0.1 Error Logs: 2026-02-10 18:11:11 | ERROR | kiro.routes_openai:chat_completions:408 - HTTP 502 - POST /v1/chat/completions - Connection failed - unable to establish connection to the server. Troubleshooting: 1. Check your internet connection 2. Verify firewall/antivirus settings 3. Try disabling VPN temporarily 4. Check if the service is accessible from other devices Technical details: ConnectError: [Errno 8] nodename nor servname provided, or not known 2026-02-10 18:11:11 | INFO | logging:callHandlers:1737 - 127.0.0.1:65239 - "POST /v1/chat/completions HTTP/1.1" 502 2026-02-10 18:11:26 | WARNING | logging:callHandlers:1737 - Invalid HTTP request received. Steps to Reproduce: 1. Install and run kiroaas version 1.0.1 2. Verify the service is listening (telnet test passes): bash telnet 127.0.0.1 18000 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 3. Execute the curl command provided in the control panel: bash curl http://127.0.0.1:18000/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer sk-8XgpbOvR9hxGSVh9AukK89w6sW4J6PVN" \ -d '{ "model": "claude-sonnet-4-5", "messages": [ {"role": "user", "content": "Hello!"} ] }' 4. Connection fails with the error above
Author
Owner

@hnewcity commented on GitHub (Feb 10, 2026):

Hi, thanks for reporting this.

The ConnectError: [Errno 8] nodename nor servname provided, or not known error indicates a DNS resolution failure, likely caused by an empty region field in your credentials file.

Could you check your credentials file (e.g., ~/.aws/sso/cache/kiro-auth-token.json) and see if the region field is empty or missing?

Maybe you can try to temporarily log in to your account using kiro-cli https://kiro.dev/cli/, and then use the Kiro CLI Database method for authentication.

We've already fixed this in the next release — it will automatically fall back to us-east-1 when the region is empty.

<!-- gh-comment-id:3879840265 --> @hnewcity commented on GitHub (Feb 10, 2026): Hi, thanks for reporting this. The ConnectError: [Errno 8] nodename nor servname provided, or not known error indicates a DNS resolution failure, likely caused by an empty region field in your credentials file. Could you check your credentials file (e.g., ~/.aws/sso/cache/kiro-auth-token.json) and see if the region field is empty or missing? Maybe you can try to temporarily log in to your account using **kiro-cli** [https://kiro.dev/cli/](https://kiro.dev/cli/), and then use the Kiro CLI Database method for authentication. We've already fixed this in the next release — it will automatically fall back to us-east-1 when the region is empty.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/KiroaaS#2
No description provided.