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

Panic when invoking datasources list/get #5113

Closed
puerco opened this issue Dec 2, 2024 · 0 comments · Fixed by #5114
Closed

Panic when invoking datasources list/get #5113

puerco opened this issue Dec 2, 2024 · 0 comments · Fixed by #5114
Assignees
Labels
bug Something isn't working

Comments

@puerco
Copy link
Contributor

puerco commented Dec 2, 2024

Describe the issue

When trying to retrieve the details of a data source through the CLI minder panics with a nil pointer, on the CLI you get:

[puerco@babieco minder] ⎈ sandbox on  deps-datasource [📝] 🦆❯ go run ./cmd/cli/ datasource get -i 132f82e7-4a49-443c-a567-b727be190154
WARNING: Running against a test environment (127.0.0.1) and may not be stable
Message: Failed to get data source
Details: Internal errors. Means some invariants expected by underlying
system has been broken.
Please check with the server team.
exit status 13

The nil pointer registers in the log:

{
  "level": "error",
  "request_id": "348f0cdf-d6d4-4c28-bcb4-b68c7ba72a29",
  "Resource": {
    "service": "minder.v1.DataSourceService",
    "method": "ListDataSources"
  },
  "login_sha": "14842328c355c1ddcac91962d9c3e182a862cb4c385ff90e6ccbcb85a0de4eaa",
  "telemetry": "true",
  "Attributes": {
    "http.code": "Internal",
    "http.content-type": [
      "application/grpc"
    ],
    "http.duration": "2.574758ms",
    "http.forwarded": [],
    "http.user_agent": [
      "minder-cli/no-info (linux) amd64 (go1.23.3) grpc-go/1.68.0"
    ],
    "exception.message": "rpc error: code = Internal desc = runtime error: invalid memory address or nil pointer dereference"
  },
  "caller": "github.com/mindersec/minder/internal/logger/logging_interceptor.go:89",
  "Timestamp": 1733169765687372912
}

To Reproduce

Just:

minder datasource list or get with a specific id

What version are you using?

719d417

@puerco puerco added the bug Something isn't working label Dec 2, 2024
@puerco puerco self-assigned this Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant