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

[Bug]: [GoSDK] Failed to create user: decode password fail: illegal base64 data at input byte 4 #40261

Open
1 task done
ThreadDao opened this issue Feb 28, 2025 · 1 comment
Assignees
Labels
component/gosdk issues & PRs related to GoSDK package kind/bug Issues or changes related a bug priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Milestone

Comments

@ThreadDao
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Environment

- Milvus version: master-20250228-762a644d-amd64
- Deployment mode(standalone or cluster): standalone
- MQ type(rocksmq, pulsar or kafka):    
- SDK version(e.g. pymilvus v2.0.0rc2):
- OS(Ubuntu or CentOS): 
- CPU/Memory: 
- GPU: 
- Others:

Current Behavior

  • case:
err := mc.CreateUser(ctx, client.NewCreateUserOption("zz", "ccccccc"))
common.CheckErr(t, err, true)
decode password fail: illegal base64 data at input byte 4

Image

Expected Behavior

No response

Steps To Reproduce

Milvus Log

pod: zong-debug-milvus-standalone-656b8c7596-d4p5w

Anything else?

No response

@ThreadDao ThreadDao added kind/bug Issues or changes related a bug needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Feb 28, 2025
@ThreadDao ThreadDao added this to the 2.5.5 milestone Feb 28, 2025
@ThreadDao ThreadDao added the priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. label Feb 28, 2025
Copy link

dosubot bot commented Feb 28, 2025

A similar issue was previously reported and closed. The error message "decode password fail: illegal base64 data at input byte 4" indicates that the password is not properly encoded in Base64. To resolve this, ensure that the password is correctly Base64 encoded before making the request. You can use the Base64Encode function in the GoSDK for this purpose:

func Base64Encode(pwd string) string {
    return base64.StdEncoding.EncodeToString([]byte(pwd))
}

Make sure to encode the password using this function before passing it to the CreateUser method [1][2].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot dosubot bot added the component/gosdk issues & PRs related to GoSDK package label Feb 28, 2025
congqixia added a commit to congqixia/milvus that referenced this issue Feb 28, 2025
Related to milvus-io#40261

Also add some options for create collection options and refine some
behavior

Signed-off-by: Congqi Xia <[email protected]>
@yanliang567 yanliang567 added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Feb 28, 2025
@yanliang567 yanliang567 removed their assignment Feb 28, 2025
@yanliang567 yanliang567 modified the milestones: 2.5.5, 2.5.6 Feb 28, 2025
sre-ci-robot pushed a commit that referenced this issue Feb 28, 2025
Related to #40261

Also add some options for create collection options and refine some
behavior

Signed-off-by: Congqi Xia <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/gosdk issues & PRs related to GoSDK package kind/bug Issues or changes related a bug priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

No branches or pull requests

3 participants