CoolFace
Apppublic

strong-tie/inbound-calls

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
Warnings.md61 linesDownload Raw Back to Reference
1 2<h1 align="center">Fastify</h1>3 4**Table of contents**5- [Warnings](#warnings)6  - [Warnings In Fastify](#warnings-in-fastify)7  - [Fastify Warning Codes](#fastify-warning-codes)8    - [FSTWRN001](#FSTWRN001)9    - [FSTWRN002](#FSTWRN002)10  - [Fastify Deprecation Codes](#fastify-deprecation-codes)11 12 13## Warnings14 15### Warnings In Fastify16 17Fastify utilizes Node.js's [warning event](https://nodejs.org/api/process.html#event-warning)18API to notify users of deprecated features and known coding mistakes. Fastify's19warnings are recognizable by the `FSTWRN` and `FSTDEP` prefixes on warning20code. When encountering such a warning, it is highly recommended that the21cause of the warning be determined through use of the22[`--trace-warnings`](https://nodejs.org/api/cli.html#--trace-warnings) and23[`--trace-deprecation`](https://nodejs.org/api/cli.html#--trace-deprecation)24flags. These will produce stack traces pointing out where the issue occurs25in the application's code. Issues opened about warnings without including26this information may be closed due to lack of information.27 28In addition to tracing, warnings can also be disabled. It is not recommended to29disable warnings as a matter of course, but if necessary, they can be disabled30by using any of the following methods:31 32- setting the `NODE_NO_WARNINGS` environment variable to `1`33- passing the `--no-warnings` flag to the node process34- setting 'no-warnings' in the `NODE_OPTIONS` environment variable35 36For more information on how to disable warnings, see [node's documentation](https://nodejs.org/api/cli.html).37 38However, disabling warnings is not recommended as it may cause39potential problems when upgrading Fastify versions.40Only experienced users should consider disabling warnings.41 42### Fastify Warning Codes43 44| Code | Description | How to solve | Discussion |45| ---- | ----------- | ------------ | ---------- |46| <a id="FSTWRN001">FSTWRN001</a> | The specified schema for a route is missing. This may indicate the schema is not well specified. | Check the schema for the route. | [#4647](https://github.com/fastify/fastify/pull/4647) |47| <a id="FSTWRN002">FSTWRN002</a> | The %s plugin being registered mixes async and callback styles, which will result in an error in `fastify@5`. | Do not mix async and callback style. | [#5139](https://github.com/fastify/fastify/pull/5139) |48 49 50### Fastify Deprecation Codes51 52Deprecation codes are further supported by the Node.js CLI options:53 54- [--no-deprecation](https://nodejs.org/api/cli.html#--no-deprecation)55- [--throw-deprecation](https://nodejs.org/api/cli.html#--throw-deprecation)56- [--trace-deprecation](https://nodejs.org/api/cli.html#--trace-deprecation)57 58 59| Code | Description | How to solve | Discussion |60| ---- | ----------- | ------------ | ---------- |61