-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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: runtime error: invalid memory address or nil pointer dereference #4947
Comments
Hi, thx for reporting issue. I'm trying to reproduce the error. Could you explain more detail of (1) content of session and profile (2) code to create the session using local profile if there's any? You can remove any sensitive info. Thx |
so profile is set to
and before starting a session with SSM I am authenticating with the following command: Let me know if you need more info. |
@isredstar Hello could you show more detail of your local profile, sso session and the code to reproduce the npe? It seems like your cred provider is nil, and different credential could be retrieved according to context of a profile. |
@cv711 We discussed with service team for possible causes of the npe, when an access token is returned from ssooidc, an Currently possible workaround is to dump your sso cache to redact the AT/RT/ClientSecret, and we will update token provider code here to print the nil error rather than panic, which is not expected in sdk |
|
=== ### Service Client Updates * `service/codecommit`: Updates service API, documentation, and paginators * Add new ListFileCommitHistory operation to retrieve commits which introduced changes to a specific file. * `service/securityhub`: Updates service API and documentation ### SDK Bugs * `aws/credentials/ssocreds`: Modify sso token provider logic to handle possible nil val returned by CreateToken. * Fixes [4947](#4947)
Release v1.44.327 (2023-08-18) === ### Service Client Updates * `service/codecommit`: Updates service API, documentation, and paginators * Add new ListFileCommitHistory operation to retrieve commits which introduced changes to a specific file. * `service/securityhub`: Updates service API and documentation ### SDK Bugs * `aws/credentials/ssocreds`: Modify sso token provider logic to handle possible nil val returned by CreateToken. * Fixes [4947](#4947)
Describe the bug
I'm starting a SSM session with port forwarding to connect to our MySQL through our bastion ec2 instance. The session starts and awaits a connection at the defined port. When I tried to connect to the DB we get the panic defined below.
Expected Behavior
Should happily forward the connection without a panic.
Current Behavior
Reproduction Steps
different terminal
Possible Solution
No response
Additional Information/Context
No response
SDK version used
aws-cli/2.13.8 Python/3.11.4 Darwin/22.5.0 source/arm64 prompt/off
Environment details (Version of Go (
go version
)? OS name and version, etc.)go version go1.20.6 darwin/arm64
The text was updated successfully, but these errors were encountered: