Skip to content

Return English error messages from the HTTP adapter (adapters/http/server.py) #65

Backlog

Description

@m3lonxd

Summary

The HTTP adapter returns Turkish error messages to API clients (e.g. {"error": "önce POST /screenshot"}, BadRequest("gövde geçerli JSON değil: …")). Remote agents and their users mostly read English, and the README documents the API in English.

Verified locations (master 37b7e77)

  • adapters/http/server.py:103-124: _finite_float / _strict_int messages (sayı olmalı (bool değil), sonlu bir sayı olmalı, tam sayı olmalı…)
  • adapters/http/server.py:162-167: batch validation ('steps' boş olmayan nesne listesi olmalı, geçersiz 'method')
  • adapters/http/server.py:337-347: body parsing (Content-Length sayı değil, gövde çok büyük, gövde geçerli JSON değil, gövde bir JSON nesnesi olmalı)
  • adapters/http/server.py:356-399: self._send(4xx/5xx, {"error": …}) responses (tarayıcıdan erişim kapalı, önce POST /screenshot, bulunamadı, bu makinede mevcut değil…)
  • tests/test_http.py:98: asserts "büyük" in e.get("error", "")

Acceptance criteria

  • All error strings returned to HTTP clients (the BadRequest(...) messages and the "error" values above) are in English, and they keep the same meaning and the same field names.
  • HTTP status codes and response shapes do not change.
  • Tests that match on message text are updated (at least tests/test_http.py:98); python tests/test_http.py and python tests/test_http_server_edges.py pass.
  • Code comments and the module docstring are out of scope.

Activity

  1. added
    enhancement
    help wanted
    good first issue
    on Dec 1, 2026
  2. added a commit that references this issue on Dec 1, 2026
    cad3c95
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions