Automattic / Automattic/atd-server-next

No response from server

Open
#1 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Slash
Stars
22
Forks
9
PR merge metrics
No merged PRs in 30d

Description

I tried running the script(https://github.com/Automattic/atd-server-next/blob/master/run.sh) and it always gives me an empty response.
The sample request with the postman is attached below.
```
import http.client

conn = http.client.HTTPConnection("127.0.0.1:1049")

headers = {
'key': "dashnine",
'data': "iam wrting a wrong sentene",
'cache-control': "no-cache",
'postman-token': "8bd7b009-5488-c686-2dd9-444fd348d6ff"
}

conn.request("POST", "/checkDocument", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
```

Please let me know if I am missing something.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with run.sh and the /checkDocument endpoint, then reproduce the supplied Python HTTPConnection request against 127.0.0.1:1049. Check the server's response and whether the request format matches what the endpoint expects. Done means the reported empty response is explained and the sample request produces a non-empty response or a clear error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, shell
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.