Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routes with autohooks are broken in 5.8.1 #374

Closed
2 tasks done
bcomnes opened this issue May 6, 2024 · 0 comments · Fixed by #375
Closed
2 tasks done

Routes with autohooks are broken in 5.8.1 #374

bcomnes opened this issue May 6, 2024 · 0 comments · Fixed by #375

Comments

@bcomnes
Copy link

bcomnes commented May 6, 2024

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the bug has not already been reported

Fastify version

4.26.2

Plugin version

5.8.1

Node.js version

21.6.2

Operating system

macOS

Operating system version (i.e. 20.04, 11.3, 10)

14.4.1

Description

On the latest version of fastify/fastify-autoload (v5.8.1), all of my routes with auto hooks are broken and are just 404ing.

Downgrading to v5.8.0 or below, all routes continue to work as before.

In the MREs, start the server and visit http://127.0.0.1:3000/feeds/1234 and the route will 404. Downgrate to autoload 5.8.0 and visit it again and the route works.

Link to code that reproduces the bug

https://github.com/ballpit/broken-auto-hooks

Expected Behavior

Routes with auto hooks should not 404.

bcomnes added a commit to hifiwi-fi/breadcrum.net that referenced this issue May 6, 2024
@climba03003 climba03003 mentioned this issue May 6, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant