SoftInstigate / http-shell

HTTP Shell is a CLI tool based on the Kui framework that provides developers a modern alternative to http clients for interacting with APIs.
Apache License 2.0
12 stars 1 forks source link

Internal server error when write request fails (eg. 401 not authenticated) #3

Closed ujibang closed 3 years ago

ujibang commented 3 years ago

Internal server error when write request fails (eg. 401 not authenticated)

Expected Behavior

display error like GET request (GET request handles the error request correctly)

Current Behavior

when a write request fails, the following text is printed out

> h post coll /tmp/doc.json
Internal Error in command execution

Steps to Reproduce

  1. using start RESTHeart
  2. h set auth admin wrongPassword
  3. h POST coll data.json
ujibang commented 3 years ago

Fixed on 0.1.0