restify / restify/node-restify
Restify JSON client error is showing a type "F" instead of object
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.7k
- Forks
- 975
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 5
Description
Restify Version
"restify": "7.6.0",
"restify-clients": "2.6.4"
Node.js Version
10.7.0
Expected behaviour
Restify JSON client should provide error as JSON object
Actual behaviour
It is giving error of some "F" type. See attached screenshot.
Repro case
- Create a JSON client.
- Give get request from JSON client to unavailable endpoint (to generate error) and check the JSON in debug
- You will see it as "F" type.

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the JSON client reproduction described in the issue: request an unavailable endpoint and inspect the error in the debugger. Trace how the client represents that error and compare it with the expected JSON object. Done means the unavailable-endpoint error is exposed as a JSON object rather than a value shown as type "F".
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100