restify / restify/node-restify

Restify JSON client error is showing a type "F" instead of object

Open
#1,763 2 comments 0 reactions 0 assignees View on GitHub

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

  1. Create a JSON client.
  2. Give get request from JSON client to unavailable endpoint (to generate error) and check the JSON in debug
  3. You will see it as "F" type.

image

Contributor guide

Open the contributing guide

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.