Skip to content

path segment ':id' conflicts with existing wildcard ':care_team_id' in path '/api/care_teams/:id #111

@pawansgi92

Description

@pawansgi92

path segment ':id' conflicts with existing wildcard ':care_team_id' in path '/api/care_teams/:id

When I run the below command I get this error:-

command I run ./cmd/ie/ie -huddle ./config/multifactor_huddle_config.json -loadCodes
_Successfully loaded ICD-9 codes from https://www.cms.gov/Medicare/Coding/ICD9ProviderDiagnosticCodes/Downloads/ICD-9-CM-v32-master-descriptions.zip
Successfully loaded ICD-10 codes from https://www.cms.gov/Medicare/Coding/ICD10/Downloads/2016-Code-Descriptions-in-Tabular-Order.zip
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.

  • using env: export GIN_MODE=release
  • using code: gin.SetMode(gin.ReleaseMode)

[GIN-debug] GET /api/patients --> github.com/intervention-engine/ie/mongo.(*Services).MembershipService.func1.1 (4 handlers)
[GIN-debug] GET /api/patients/:id --> github.com/intervention-engine/ie/mongo.(*Services).MembershipService.func1.1 (4 handlers)
[GIN-debug] GET /api/care_teams/:care_team_id/patients --> github.com/intervention-engine/ie/mongo.(*Services).MembershipService.func1.1 (4 handlers)
[GIN-debug] PUT /api/care_teams/:care_team_id/patients/:id --> github.com/intervention-engine/ie/mongo.(*Services).MembershipService.func1.1 (4 handlers)
[GIN-debug] GET /api/care_teams --> github.com/intervention-engine/ie/mongo.(*Services).CareTeamService.func1.1 (4 handlers)
[GIN-debug] POST /api/care_teams --> github.com/intervention-engine/ie/mongo.(*Services).CareTeamService.func1.1 (4 handlers)
[GIN-debug] GET /api/care_teams/:id --> github.com/intervention-engine/ie/mongo.(*Services).CareTeamService.func1.1 (4 handlers)
panic: path segment ':id' conflicts with existing wildcard ':care_team_id' in path '/api/care_teams/:id'

goroutine 1 [running]:
github.com/intervention-engine/ie/vendor/github.com/gin-gonic/gin.(*node).addRoute(0xc000238840, 0xc00162a100, 0x13, 0xc000214720, 0x4, 0x4)
/Users/pawannagar/go/src/github.com/intervention-engine/ie/vendor/github.com/gin-gonic/gin/tree.go:195 +0xa45
github.com/intervention-engine/ie/vendor/github.com/gin-gonic/gin.(*Engine).addRoute(0xc0004456c0, 0x1953981, 0x3, 0xc00162a100, 0x13, 0xc000214720, 0x4, 0x4)
/Users/pawannagar/go/src/github.com/intervention-engine/ie/vendor/github.com/gin-gonic/gin/gin.go:191 +0x145
github.com/intervention-engine/ie/vendor/github.com/gin-gonic/gin.(*RouterGroup).handle(0xc001838080, 0x1953981, 0x3, 0x1953e1b, 0x4, 0xc001822080, 0x1, 0x1, 0xc000214701, 0xc001822080)
/Users/pawannagar/go/src/github.com/intervention-engine/ie/vendor/github.com/gin-gonic/gin/routergroup.go:73 +0x1d3
github.com/intervention-engine/ie/vendor/github.com/gin-gonic/gin.(*RouterGroup).GET(0xc001838080, 0x1953e1b, 0x4, 0xc001822080, 0x1, 0x1, 0x1aaec80, 0xc001838080)
/Users/pawannagar/go/src/github.com/intervention-engine/ie/vendor/github.com/gin-gonic/gin/routergroup.go:101 +0x7c
github.com/intervention-engine/ie/web.RegisterCareTeamRoutes(0xc001838000, 0xc0003fc410)
/Users/pawannagar/go/src/github.com/intervention-engine/ie/web/routes.go:82 +0x25b
github.com/intervention-engine/ie/web.RegisterAPIRoutes(0xc0004456c0, 0x1aa8a60, 0xc001822000)
/Users/pawannagar/go/src/github.com/intervention-engine/ie/web/routes.go:61 +0xfb
main.main()
/Users/pawannagar/go/src/github.com/intervention-engine/ie/cmd/ie/main.go:53 +0x332_

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions