Title: Plugins cannot route HTTP QUERY (RFC 10008) on Fastify 4 — lws10-index needs it · Issue #628 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: Plugins cannot route HTTP QUERY (RFC 10008) on Fastify 4 — lws10-index needs it · Issue #628 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: Plugins cannot route HTTP QUERY (RFC 10008) on Fastify 4 — lws10-index needs it · Issue #628 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Found while bringing lwsd up to the Oct 2026 LWS drafts (#621; lwsd CONFORMANCE.md C15). Problem lws10-index moved the Type Search Service to the HTTP QUERY method (RFC 10008, June 2026): the filter travels in the request body as applica...
Open Graph Description: Found while bringing lwsd up to the Oct 2026 LWS drafts (#621; lwsd CONFORMANCE.md C15). Problem lws10-index moved the Type Search Service to the HTTP QUERY method (RFC 10008, June 2026): the filte...
X Description: Found while bringing lwsd up to the Oct 2026 LWS drafts (#621; lwsd CONFORMANCE.md C15). Problem lws10-index moved the Type Search Service to the HTTP QUERY method (RFC 10008, June 2026): the filte...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/628
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Plugins cannot route HTTP QUERY (RFC 10008) on Fastify 4 — lws10-index needs it","articleBody":"Found while bringing lwsd up to the Oct 2026 LWS drafts (#621; lwsd CONFORMANCE.md C15).\n\n## Problem\n\nlws10-index moved the Type Search Service to the HTTP `QUERY` method (RFC 10008, June 2026): the filter travels in the request body as `application/lws-query+json`. Node 24's parser accepts `QUERY` (`http.METHODS` includes it), but Fastify 4.29 has a fixed method list (`lib/httpMethods.js`) and 404s any other method before routing, so a plugin cannot register a route for it — there is no hook earlier than the router.\n\n## What lwsd does today\n\nPrepends a listener on the raw `http.Server` that relabels a `QUERY` request as `POST` and remembers it in a `WeakSet`; the handler reports the real method. It works (Touchstone index 36/36) but it is the plugin reaching under the host.\n\n## Fix options\n\n1. **Fastify 5** has `fastify.addHttpMethod('QUERY', { hasBody: true })`; lwsd already uses it when present. Upgrading is the clean fix and benefits everything else too.\n2. If the upgrade is not imminent: core calls `addHttpMethod`-equivalent at boot (Fastify 4 has no public API, so this would be the same relabel shim, once, in the host) and plugins' `scope.route({ method: 'QUERY' })` just works.\n\nRelated: #206, #621.","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-10-14T18:29:17Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/628"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f66e6a76-cede-d44c-a9df-7fa585ac4013 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B08E:C8358:273AAEC:33EA2DC:6B037D47 |
| html-safe-nonce | 0131b85aaadf33aa4c8f2bb0c2f45a860cd0429f284d0185d18a7cd6baa69c69 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDhFOkM4MzU4OjI3M0FBRUM6MzNFQTJEQzo2QjAzN0Q0NyIsInZpc2l0b3JfaWQiOiI1NzU1NjUxNzg3ODczMDI1MzUxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0703e5051bde5794f89849768c47484bc00ac4a28afa829db536e20b2431c41d |
| hovercard-subject-tag | issue:5853366200 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/628/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b372c9aea90b295ce16292930175a09b78bacf6628e6cf4ee0233ef68305f7e2/JavaScriptSolidServer/JavaScriptSolidServer/issues/628 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b372c9aea90b295ce16292930175a09b78bacf6628e6cf4ee0233ef68305f7e2/JavaScriptSolidServer/JavaScriptSolidServer/issues/628 |
| og:image:alt | Found while bringing lwsd up to the Oct 2026 LWS drafts (#621; lwsd CONFORMANCE.md C15). Problem lws10-index moved the Type Search Service to the HTTP QUERY method (RFC 10008, June 2026): the filte... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | melvincarvalho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 958025407 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 958025407 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width