Skip to content

🐛 [Bug]: After using Healthcheck middleware in fiber v3, all routes are unreachable #3654

@hiifong

Description

@hiifong

Bug Description

as title

Image

How to Reproduce

See the code snippet below

Expected Behavior

Access to my registered routes

Fiber Version

v3.0.0-beta.5

Code Snippet (optional)

package main

import (
	"github.com/gofiber/fiber/v3"
	"github.com/gofiber/fiber/v3/middleware/healthcheck"
)

func main() {
	app := fiber.New()

	app.Use(healthcheck.New())

	app.Get("/", func(c fiber.Ctx) error {
		return c.SendString("Hello, World!")
	})

	err := app.Listen(":3000")
	if err != nil {
		panic(err)
	}
}

Checklist:

  • I agree to follow Fiber's Code of Conduct.
  • I have checked for existing issues that describe my problem prior to opening this one.
  • I understand that improperly formatted bug reports may be closed without explanation.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions