Skip to content

provide better error message for empty stdin on POST#3

Open
jdowning wants to merge 1 commit into
msakrejda:masterfrom
jdowning:stdin
Open

provide better error message for empty stdin on POST#3
jdowning wants to merge 1 commit into
msakrejda:masterfrom
jdowning:stdin

Conversation

@jdowning

Copy link
Copy Markdown

This commit adds the get-stdin module. This allows us to better check
the content of the body passed to POST, PUT, and PATCH methods.
Doing so lets the user know these methods require valid JSON input:

$ heroku data-api POST /postgres/v0/databases/postgresql-justin-angular-11291/tls-endpoint
 ▸    Request body must be valid JSON

Additionally, I have added a yarn.lock and updated the documentation.

This commit adds the `get-stdin` module. This allows us to better check
the content of the body passed to `POST`, `PUT`, and `PATCH` methods.
Doing so lets the user know these methods require valid JSON input:

```
$ heroku data-api POST /postgres/v0/databases/postgresql-justin-angular-11291/tls-endpoint
 ▸    Request body must be valid JSON
```

Additionally, I have added a `yarn.lock` and updated the documentation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant