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

id_modifier error #19

Closed
lukaskim-lunit opened this issue Sep 3, 2021 · 6 comments
Closed

id_modifier error #19

lukaskim-lunit opened this issue Sep 3, 2021 · 6 comments
Labels

Comments

@lukaskim-lunit
Copy link

I'm trying to use id_modifier to add transaction ID to header, and configured KrakenD like this.

"extra_config": {
  "github.com/devopsfaith/krakend-martian": {
    "header.Id": {
      "scope": ["request"]
    }
  }
}

But KrakenD is giving me error like,

2021/09/01 09:09:37 [Recovery] 2021/09/01 - 09:09:37 panic recovered:
runtime error: invalid memory address or nil pointer dereference
/usr/local/go/src/runtime/panic.go:212 (0xd4e35a)
/usr/local/go/src/runtime/signal_unix.go:734 (0xd67512)
/go/pkg/mod/github.com/google/martian@v2.1.1-0.20190517191504-25dcb96d9e51+incompatible/context.go:185 (0x1790d38)
/go/pkg/mod/github.com/google/martian@v2.1.1-0.20190517191504-25dcb96d9e51+incompatible/header/id_modifier.go:53 (0x1790d2a)
/go/pkg/mod/github.com/devopsfaith/krakend-martian@v1.4.0/martian.go:102 (0x179b2f8)
/go/pkg/mod/github.com/devopsfaith/krakend-martian@v1.4.0/martian.go:63 (0x179c1a4)
/go/pkg/mod/github.com/luraproject/lura@v1.4.1/proxy/http.go:68 (0x10ed22f)
/go/pkg/mod/github.com/luraproject/lura@v1.4.1/proxy/balancing.go:76 (0x10ebfb6)
/go/pkg/mod/github.com/luraproject/lura@v1.4.1/proxy/http.go:109 (0x10ed950)
/go/pkg/mod/github.com/luraproject/lura@v1.4.1/router/gin/endpoint.go:40 (0x191d611)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.2/context.go:165 (0x1917a79)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.2/recovery.go:99 (0x1917a60)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.2/context.go:165 (0x1916b53)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.2/logger.go:241 (0x1916b12)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.2/context.go:165 (0x190cd09)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.2/gin.go:489 (0x190ccef)
/go/pkg/mod/github.com/gin-gonic/gin@v1.7.2/gin.go:445 (0x190c7db)
/go/pkg/mod/github.com/rs/cors@v1.6.0/cors.go:207 (0x1e2d910)
/usr/local/go/src/net/http/server.go:2069 (0x10acc43)
/go/pkg/mod/github.com/rs/cors@v1.6.0/cors.go:207 (0x1e2d910)
/usr/local/go/src/net/http/server.go:2069 (0x10acc43)
/usr/local/go/src/net/http/server.go:2887 (0x10b0302)
/usr/local/go/src/net/http/server.go:1952 (0x10ab72c)
/usr/local/go/src/runtime/asm_amd64.s:1371 (0xd88e40)

Is my configuration wrong? or is it a bug?

@hookenful
Copy link

Hey, have you found the solution? Facing the same issue..

@kpacha
Copy link
Member

kpacha commented Apr 6, 2022

we'll create a replacement for the modifier in the next minor release (v2.1.0)

@mzanibelli
Copy link

Hey! We just deployed v2.1.0 and Martian configurations don't work anymore. Not sure why but this seems related. Did something happen? I have a hard time finding the culprit code 😄

@taik0
Copy link
Member

taik0 commented Oct 5, 2022

Hi @mzanibelli
If your issue is not related to the id_modifier, can you open a new issue an share all the details you can? Example configuration, requests, response, etc

Thank you!

@mzanibelli
Copy link

Follow up here. Sorry for the noise.

@kpacha kpacha closed this as completed Nov 7, 2022
@github-actions
Copy link

github-actions bot commented Feb 6, 2023

This issue was marked as resolved a long time ago and now has been automatically locked as there has not been any recent activity after it. You can still open a new issue and reference this link.

@github-actions github-actions bot added the locked label Feb 6, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants