status stringclasses 1
value | repo_name stringlengths 9 24 | repo_url stringlengths 28 43 | issue_id int64 1 104k | updated_files stringlengths 8 1.76k | title stringlengths 4 369 | body stringlengths 0 254k ⌀ | issue_url stringlengths 37 56 | pull_url stringlengths 37 54 | before_fix_sha stringlengths 40 40 | after_fix_sha stringlengths 40 40 | report_datetime timestamp[ns, tz=UTC] | language stringclasses 5
values | commit_datetime timestamp[us, tz=UTC] |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
closed | fastify/fastify | https://github.com/fastify/fastify | 271 | ["docs/Routes.md", "fastify.js", "lib/handleRequest.js", "test/async-await.js", "test/listen.test.js"] | reply.view() throws inside async function | Basically you can't use reply.view ([point-of-view](https://github.com/fastify/point-of-view) plugin) inside async function.
```javascript
const fastify = require('fastify')();
fastify.register(require('point-of-view'), {
engine: {
handlebars: require('handlebars')
},
templates: './templates'
});
... | https://github.com/fastify/fastify/issues/271 | https://github.com/fastify/fastify/pull/273 | ed2e1afc0e163e8f27da16a92668a3ec8e5c36a6 | 4ae1654b9fd49a80142e211bf1ce29a4be73224f | 2017-09-21T08:09:12Z | javascript | 2017-09-21T08:46:44Z |
closed | fastify/fastify | https://github.com/fastify/fastify | 261 | ["package.json"] | An in-range update of request is breaking the build 🚨 |
## Version **2.82.0** of [request](https://github.com/request/request) just got published.
<table>
<tr>
<th align=left>
Branch
</th>
<td>
<a href="/fastify/fastify/compare/greenkeeper%2Frequest-2.82.0">Build failing 🚨</a>
</td>
</tr>
<tr>
<th align=left>
Dependency
</t... | https://github.com/fastify/fastify/issues/261 | https://github.com/fastify/fastify/pull/2867 | 1941d6ed087f5e0f54a2afb35763e4585b198b80 | d1972a6ba6f06bd462f33dfd7a338eed969b51e5 | 2017-09-20T02:40:47Z | javascript | 2021-02-22T08:08:43Z |
closed | fastify/fastify | https://github.com/fastify/fastify | 260 | ["package.json"] | Gracefully shutdown | The server should shutdown gracefully that implicit
- Handle SIGINT, SIGTERM
```js
process.on('SIGTERM', function onSigterm () {
// fire onClose hook
// close server
})
``` | https://github.com/fastify/fastify/issues/260 | https://github.com/fastify/fastify/pull/2867 | 1941d6ed087f5e0f54a2afb35763e4585b198b80 | d1972a6ba6f06bd462f33dfd7a338eed969b51e5 | 2017-09-19T23:18:40Z | javascript | 2021-02-22T08:08:43Z |
closed | fastify/fastify | https://github.com/fastify/fastify | 257 | ["docs/Reply.md", "test/handler-context.test.js"] | Get route options inside handler or inside preHandler hook | Hi,
First of all : great job on this !
Maybe a little feature request : can we have an access to route options inside an handler or inside the preHandler hook ?
Here is a sample code :
```js
fastify.get('/', { foo: 'bar' }, async (req, res) => {
// Something like this ?
const { foo } = req.route;
... | https://github.com/fastify/fastify/issues/257 | https://github.com/fastify/fastify/pull/570 | 78daf5345fd5fce3f9015d97a6b7de380eb2493d | ea5bcec7c5875365fea1dbe898dc94cd6acaf778 | 2017-09-19T20:35:40Z | javascript | 2017-12-21T15:32:19Z |
closed | fastify/fastify | https://github.com/fastify/fastify | 256 | ["README.md", "appveyor.yml"] | Add Windows CI | e.g AppVeyor | https://github.com/fastify/fastify/issues/256 | https://github.com/fastify/fastify/pull/274 | e6fd58b83c6d07c518a879d88491df17e81d89c3 | cbc2557a150796f93d47d78b91b98cee37f42b9b | 2017-09-19T20:01:32Z | javascript | 2017-09-21T10:16:28Z |
closed | fastify/fastify | https://github.com/fastify/fastify | 251 | ["docs/Logging.md"] | document logging options | https://github.com/fastify/fastify/blob/b29a9e3f2e9f564fb6e4198676c062be7b1ca0bf/fastify.js#L43 is not documented anywhere. | https://github.com/fastify/fastify/issues/251 | https://github.com/fastify/fastify/pull/254 | b659b6d73b1f6580a2555c52b514be4712068d22 | 4d18767ea9b73951ab524dbe1afbe2d8973ca987 | 2017-09-19T15:15:35Z | javascript | 2017-09-20T09:38:41Z |
closed | fastify/fastify | https://github.com/fastify/fastify | 250 | ["docs/Logging.md"] | remove pino-http from docs | https://github.com/fastify/fastify/blob/master/docs/Logging.md still mentions pino-http | https://github.com/fastify/fastify/issues/250 | https://github.com/fastify/fastify/pull/254 | b659b6d73b1f6580a2555c52b514be4712068d22 | 4d18767ea9b73951ab524dbe1afbe2d8973ca987 | 2017-09-19T15:13:52Z | javascript | 2017-09-20T09:38:41Z |
closed | fastify/fastify | https://github.com/fastify/fastify | 248 | ["docs/Server-Methods.md", "fastify.js", "test/input-validation.js"] | schemaCompiler api | At the moment the only way to change the `schemaCompiler` function is to assign a new function with
```js
fastify.schemaCompiler = newSchenaCompiler
```
Since all our apis are functions based, we should create an api for this as well to be consistent with our system.
related: https://github.com/fastify/fastify/p... | https://github.com/fastify/fastify/issues/248 | https://github.com/fastify/fastify/pull/253 | d5cbb4d93791e4da0c7606ba07ec589559526081 | 207ad8fd27dd0f4eff2cd0776327327db663e175 | 2017-09-19T14:40:23Z | javascript | 2017-09-21T06:47:19Z |
closed | fastify/fastify | https://github.com/fastify/fastify | 247 | ["package.json"] | Support async functions as hooks. | As titled. | https://github.com/fastify/fastify/issues/247 | https://github.com/fastify/fastify/pull/2323 | 667d4644eab09f27bc30cad6e7378f5fc82cb9e8 | cfca9198232b9ec833ee05c41501c76238886d70 | 2017-09-19T14:37:09Z | javascript | 2020-06-08T13:05:08Z |
closed | fastify/fastify | https://github.com/fastify/fastify | 243 | ["fastify.js", "lib/hooks.js", "package.json", "test/close.test.js"] | An in-range update of avvio is breaking the build 🚨 |
## Version **2.1.0** of [avvio](https://github.com/mcollina/avvio) just got published.
<table>
<tr>
<th align=left>
Branch
</th>
<td>
<a href="/fastify/fastify/compare/greenkeeper%2Favvio-2.1.0">Build failing 🚨</a>
</td>
</tr>
<tr>
<th align=left>
Dependency
</td>
... | https://github.com/fastify/fastify/issues/243 | https://github.com/fastify/fastify/pull/244 | 66e14852d3e2c4918e2465453e2b446a399cfc41 | ddd9c170944e1763a629defab8f11ccfb772d54a | 2017-09-18T20:14:53Z | javascript | 2017-09-18T22:58:21Z |
closed | fastify/fastify | https://github.com/fastify/fastify | 238 | ["docs/Getting-Started.md", "docs/Reply.md", "docs/Routes.md", "lib/handleRequest.js", "lib/reply.js", "test/async-await.js", "test/logger.test.js", "test/promises.test.js"] | async + reply.send | Hi,
this handle responses always empty body with 200 status code
```js
fastify.get('/', async (req, reply) => {
reply.send({})
})
```
Maybe we need to figure out how to report (or throw an exception)
I lost 30minutes last time... 😢 | https://github.com/fastify/fastify/issues/238 | https://github.com/fastify/fastify/pull/241 | 43436c28c69c3c26e7e3143c56ba755e9f142892 | 18b5992e371c910d2989c1574b61bc03a84f370b | 2017-09-17T22:00:03Z | javascript | 2017-09-19T14:16:48Z |
closed | fastify/fastify | https://github.com/fastify/fastify | 237 | ["fastify.js", "lib/hooks.js", "package.json", "test/close.test.js"] | Problem encapsulation during close | Hi,
I have encountered a bug in encapsulation during the [fastify-example-twitter](https://github.com/fastify/fastify-example-twitter) development. My code is like this:
```js
'use strict'
const fastify = require('fastify')()
const fp = require('fastify-plugin')
const fm = require('fastify-mongodb')
fast... | https://github.com/fastify/fastify/issues/237 | https://github.com/fastify/fastify/pull/244 | 66e14852d3e2c4918e2465453e2b446a399cfc41 | ddd9c170944e1763a629defab8f11ccfb772d54a | 2017-09-17T21:51:19Z | javascript | 2017-09-18T22:58:21Z |
closed | fastify/fastify | https://github.com/fastify/fastify | 214 | [".github/workflows/links-check.yml"] | "http-method-override" header | Because of https://github.com/fastify/fastify/pull/170, no hooks are fired before routing.
Unfortunately an API that allows the `http-method-ovveride` header to override the http method should replace the `method` request property with the header value. See [method-override](https://github.com/expressjs/method-overr... | https://github.com/fastify/fastify/issues/214 | https://github.com/fastify/fastify/pull/5300 | 5fe74e58de4de685283794c9e520ef800d5f6f59 | 37b9b3d947d79ae8e5d26e62b9a4b11fb9812c75 | 2017-09-12T21:26:26Z | javascript | 2024-02-01T14:34:24Z |
closed | fastify/fastify | https://github.com/fastify/fastify | 212 | ["fastify.js", "test/listen.test.js", "test/route.test.js"] | HTTP server errors not surfaced | Errors emitted by the HTTP server aren't passed to the listen callback, I understand that you can access the `server` property but surely we can do better here? :)
```javascript
'use strict'
const fastify = require('fastify')
const s1 = fastify()
const s2 = fastify()
s1.listen(3000)
s2.listen(3000, err... | https://github.com/fastify/fastify/issues/212 | https://github.com/fastify/fastify/pull/215 | 7a9dfebf3b26a610a2a69e13069100d51f5b7fdc | db00917fee9e1ba9d95e9af4bb80ad95ffa79188 | 2017-09-12T17:43:06Z | javascript | 2017-09-12T22:22:35Z |
closed | fastify/fastify | https://github.com/fastify/fastify | 179 | ["test/listen.test.js"] | Will it listen on socket, not port? | Something similar to
```javascript
fastify.listen('./www/app.sock', function (err) {
if (err) throw err
console.log(`server listening on ${fastify.server.address().port}`)
})
```
I mean, node's ``http`` and ``https`` are able to work with sockets. But is ``fastify`` handle routing and other functionality ... | https://github.com/fastify/fastify/issues/179 | https://github.com/fastify/fastify/pull/259 | 29d0bdf9f6fd0013ce51e7cfed35f262cfb5ed47 | b3dc5d98aa54c031595858c9c34957ce24f3b301 | 2017-09-08T09:23:49Z | javascript | 2017-09-20T15:13:10Z |
closed | fastify/fastify | https://github.com/fastify/fastify | 135 | ["docs/Server-Methods.md", "fastify.js", "lib/reply.js", "package.json", "test/404s.test.js", "test/500s.test.js", "test/middleware.test.js", "test/plugin.test.js"] | Custom routes for 404 and 500 | As titled, we should be able to make these customizable, ideally supporting the plugin encapsulation. | https://github.com/fastify/fastify/issues/135 | https://github.com/fastify/fastify/pull/266 | 2cb7efbe263a2f40429fbdb837f327698036a6f8 | 4f4e6d77978d509b0a9f98143120a8a3ee72d5e4 | 2017-07-17T06:53:57Z | javascript | 2017-09-25T12:53:22Z |
closed | fastify/fastify | https://github.com/fastify/fastify | 104 | ["package.json"] | An in-range update of ajv is breaking the build 🚨 |
## Version **5.1.6** of [ajv](https://github.com/epoberezkin/ajv) just got published.
<table>
<tr>
<th align=left>
Branch
</th>
<td>
<a href="/fastify/fastify/compare/greenkeeper%2Fajv-5.1.6">Build failing 🚨</a>
</td>
</tr>
<tr>
<th align=left>
Dependency
</td>
<td... | https://github.com/fastify/fastify/issues/104 | https://github.com/fastify/fastify/pull/4581 | c6a40ebe3ec9aaa2886d8ba7646fea88559412f6 | 2e9526e6245421570a5ef54d3676421f617dc4d7 | 2017-06-15T22:51:03Z | javascript | 2023-02-13T15:35:50Z |
closed | fastify/fastify | https://github.com/fastify/fastify | 84 | ["package.json"] | Out schema for non 2xx response | Currently the out schema is applied to every response.
Is there a way to set a "global" out schema for all non 2xx request?
Or apply the out schema only to the 2xx response?
Any suggestions? | https://github.com/fastify/fastify/issues/84 | https://github.com/fastify/fastify/pull/4694 | 3ef63afbb71b2ebda1bc1c2080bc1130e31dbaa7 | 2e9b31952e727cca78b06f65af4a8cc7f56bc609 | 2017-05-12T17:02:15Z | javascript | 2023-04-25T16:29:30Z |
closed | fastify/fastify | https://github.com/fastify/fastify | 55 | ["lib/contentTypeParser.js", "package.json"] | Serving static files | I haven't found any documentation about serving static files, then @mcollina put me on the right path suggesting to try a middleware for it.
[Express serve-static](https://github.com/expressjs/serve-static) works like a charm to map a folder to `/`:
```js
fastify.use(serveStatic(`${__dirname}/public`))
```
``... | https://github.com/fastify/fastify/issues/55 | https://github.com/fastify/fastify/pull/4305 | aacd099f3e71308dff86059b86500cd65673ce97 | 3dd23fec705c6d2662fbf4fdf1dfc1480fa03793 | 2017-03-21T16:20:28Z | javascript | 2022-09-30T16:24:34Z |
closed | fastify/fastify | https://github.com/fastify/fastify | 51 | ["lib/contentTypeParser.js", "package.json"] | 'use string' typo | See here https://github.com/fastify/fastify/blob/master/benchmarks/koa.js#L1 | https://github.com/fastify/fastify/issues/51 | https://github.com/fastify/fastify/pull/4305 | aacd099f3e71308dff86059b86500cd65673ce97 | 3dd23fec705c6d2662fbf4fdf1dfc1480fa03793 | 2017-03-16T19:40:17Z | javascript | 2022-09-30T16:24:34Z |
closed | fastify/fastify | https://github.com/fastify/fastify | 32 | [".github/workflows/integration.yml", ".github/workflows/package-manager-ci.yml"] | Multiple response types | Is there a way to define multiple response types? For example a route response my have a different structure for a success/error response.
I have a route that returns an array of objects on success, but an error object on failure. | https://github.com/fastify/fastify/issues/32 | https://github.com/fastify/fastify/pull/5341 | ef3a755b058f70e3a6e56a5d53a73e6c715550cd | 8345c9bfb13a78ba0268ed06bd886d0a2a70df59 | 2016-12-22T18:18:34Z | javascript | 2024-03-01T14:23:10Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.