You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: Web Stream API
* chore: update error PR number
* test: skip test when not available
* test: exit when skip test
* test: use Readable.toWeb instead
* docs: update ToC and onSend hook
* refactor: toString
* refactor: direct for-of payload.headers
* test: ensure compatibility of third-party Response
* refactor: reduce toString call
@@ -312,6 +313,8 @@ Below is a table with all the error codes that Fastify uses.
312
313
| <aid="fst_err_log_invalid_destination">FST_ERR_LOG_INVALID_DESTINATION</a> | The logger does not accept the specified destination. | Use a `'stream'` or a `'file'` as the destination. |[#1168](https://github.com/fastify/fastify/pull/1168)|
313
314
| <aid="fst_err_log_invalid_logger">FST_ERR_LOG_INVALID_LOGGER</a> | The logger should have all these methods: `'info'`, `'error'`, `'debug'`, `'fatal'`, `'warn'`, `'trace'`, `'child'`. | Use a logger with all the required methods. |[#4520](https://github.com/fastify/fastify/pull/4520)|
314
315
| <aid="fst_err_rep_invalid_payload_type">FST_ERR_REP_INVALID_PAYLOAD_TYPE</a> | Reply payload can be either a `string` or a `Buffer`. | Use a `string` or a `Buffer` for the payload. |[#1168](https://github.com/fastify/fastify/pull/1168)|
316
+
| <aid="fst_err_rep_response_body_consumed">FST_ERR_REP_RESPONSE_BODY_CONSUMED</a> | Using `Response` as reply payload
317
+
but the body is being consumed. | Make sure you don't consume the `Response.body` | [#5286](https://github.com/fastify/fastify/pull/5286) |
315
318
| <aid="fst_err_rep_already_sent">FST_ERR_REP_ALREADY_SENT</a> | A response was already sent. | - |[#1336](https://github.com/fastify/fastify/pull/1336)|
316
319
| <aid="fst_err_rep_sent_value">FST_ERR_REP_SENT_VALUE</a> | The only possible value for `reply.sent` is `true`. | - |[#1336](https://github.com/fastify/fastify/pull/1336)|
317
320
| <aid="fst_err_send_inside_onerr">FST_ERR_SEND_INSIDE_ONERR</a> | You cannot use `send` inside the `onError` hook. | - |[#1348](https://github.com/fastify/fastify/pull/1348)|
0 commit comments