Skip to content

Commit

Permalink
README changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mblackstock committed Oct 2, 2019
1 parent 903d1d5 commit 3b3e9af
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,9 @@ The function node generates sample points as follows:
return msg;


### Handling Failed Reads and Writes
Errors in the read and writes can be caught using the node-red `catch`
node. Error information is availlable in the default `msg.error` as well
as in the `msg.influx_error`. At time of writing this only includes the
status code from the influx client. The `influx-read` node will
always throw a `503`, whereas the write nodes throw more descriptive
error codes as detailed in the [Influx API documentation](https://docs.influxdata.com/influxdb/v1.7/tools/api/#status-codes-and-responses-2).
### Catching Failed Reads and Writes
Errors in reads and writes can be caught using the node-red `catch` node as usual.
Standard error information is availlable in the default `msg.error` field; additional
information about the underlying error is in the `msg.influx_error` field. Currently,
this includes the HTTP status code returned from the influxdb server. The `influx-read`
node will always throw a `503`, whereas the write nodes will include other status codes as detailed in the [Influx API documentation](https://docs.influxdata.com/influxdb/v1.7/tools/api/#status-codes-and-responses-2).

0 comments on commit 3b3e9af

Please sign in to comment.