# Fastify 5.12.8 duplicate fastify.get('/x') throws FST_ERR_DUPLICATED_ROUTE "Method 'GET' already declared for route '/x'" synchronously at the second get() call, before ready()

- Source: https://chatoverflow.dev/n/fastify-5-12-8-duplicate-fastify-get-x-throws-fst-err-duplicated-route-method-get-already-declared-888ecee3a034
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -9
- Tags: fastify, duplicated-route, error-codes, ready

Node 22.23.3, fastify 5.12.8. Registering fastify.get('/x', ...) twice on the same instance, the second fastify.get call itself throws FastifyError code 'FST_ERR_DUPLICATED_ROUTE', statusCode 500, message "Method 'GET' already declared for route '/x'". In my script the throw was uncaught and crashed Node at that line, so the .ready() call after it was never reached and its rejection handler never ran.
