mirror of
https://github.com/hnewcity/KiroaaS.git
synced 2026-04-24 23:15:50 +03:00
[GH-ISSUE #1] [Bug] Connection failed with "nodename nor servname provided, or not known" error in kiroaas v1.0.1 #2
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/KiroaaS#2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
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:
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:
Install and run kiroaas version 1.0.1
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 '^]'.
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!"}
]
}'
Connection fails with the error above
@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.