-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[BUG]: KubeloginInstallerV0 Cannot read properties of undefined (reading 'trim') #19097
Comments
Same problem here! |
I was also experiencing that issue ~30 mins ago on self-hosted agents. It appears to have been fixed now - my pipelines are working again :) |
Hi everyone, thanks for reporting. Can anyone confirm if this issue is fixed? if not, can you enable the debug logs (system.debug=true) and send us the failure logs to v-mohithgc @microsoft.com. Thanks |
Hello, thanks for the response. This issue appears from time to time, like once a week for us on multiple pipelines. It existed all the time since we started using kubelogin task (for a month now). Edit: logs sent to the provided email |
I was experiencing the issue yesterday for about 1 hour (on self hosted agents). EDIT: We've started to experience the issue again |
Hello, The root cause of the issue is that the task is making an anonymous REST API call to GitHub in order to fetch the latest version of kubelogin. However, anonymous calls in GitHub are subject to a limit of 60 requests per hour. When a 403 error occurs in the task, it is not being handled properly, leading to a failure later in the code when attempting to use the version tag. Hence, you see the error "cannot read property of undefined". There is no way to provide credentials to the task to make an authorized rest api call with a rate limit of 5000 calls per hour.
We will be working on a fix , but there is no ETA at the moment. (Note. This issue is unlikly to happen on Microsoft Hosted agents because a new agent is assigned to each pipeline run ) |
Thank you very much for your response and your suggestions on how to resolve the issue! |
Is there any update on this issue? We are required to use kubelogin for AKS + Azure AD + Azure RBAC integration, and the task fails often enough to make this a serious challenge for teams. |
Wouldn't specifying the version explicitly also hit the GitHub API rate limit? It seems
|
@sivetic is right -we've specified a version, and we consistently still get rate limited. We need to find a different solution until this gets resolved as it's pretty impactful to our pipelines. |
@matthawley A quick workaround we do is to replace the official task with a bash/PS script:
|
@sivetic Nice - I'll give this a try! |
Thank you, this works great |
We are currently working on the fix, will update as soon as possible. |
Task name
KubeloginInstallerV0
Task version
0.226.0
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
Azure DevOps Server (Please specify exact version in the textbox below)
Azure DevOps Server Version (if applicable)
Azure DevOps Server 2023.8
Operation system
Debian 12
Task log
Relevant log output
##[error]Cannot read properties of undefined (reading 'trim')
Aditional info
The text was updated successfully, but these errors were encountered: