hemilabs / hemilabs/heminetwork

hproxy: use JSON-RPC responses

Open
#693 0 comments 0 reactions 0 assignees View on GitHub
area: hproxy type: enhancement
Dominant language
Go
Stars
146
Forks
108
Avg merge
4d 21h
Merged PRs (30d)
5

Description

### Confirmation

- [x] I have checked for similar issues.

### Problem

Hproxy should write responses in JSON-RPC format, rather than basic HTTP responses. This will allow for clearer errors and information being relayed to the client, as HTTP Status codes are currently 'abused' or over-generalized to fit the use-case.

### Suggested solution

Replace the current code to respond to requests with JSON-RPC responses and errors.

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by locating hproxy's current request-response handling and reviewing how it currently maps outcomes to HTTP responses. Then identify the project's expected JSON-RPC response and error conventions; the work is done when hproxy consistently returns JSON-RPC responses instead of the current basic HTTP responses.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.