zeromicro / zeromicro/zero-doc

Null GET Response

Open
#162 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
600
Forks
249
PR merge metrics
No merged PRs in 30d

Description

I send a get request to my bookstore service with curl -i "http://localhost:8888/check?book=go-zero" and get a response not matching the type checkResp.

Expected Response:
HTTP/1.1 200 OK
Content-Type: application/json
Date: Thu, 03 Sep 2020 06:46:18 GMT
Content-Length: 25

{"found":false,"price":0}

Actual Response:
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Traceparent: 00-b5bbd1a7eb0effb7202c9630edb074f1-7e3325dc6a8b4b4d-00
Date: Wed, 28 Dec 2022 00:22:29 GMT
Content-Length: 4

null%

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named. Start by reproducing the curl request to the bookstore service and compare the returned body and headers with the expected response; done means the GET /check response matches the documented checkResp shape.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.