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

[version compatibility] success field of nacos server's response is empty #698

Closed
robynron opened this issue Dec 14, 2023 · 2 comments · Fixed by #699
Closed

[version compatibility] success field of nacos server's response is empty #698

robynron opened this issue Dec 14, 2023 · 2 comments · Fixed by #699

Comments

@robynron
Copy link
Contributor

robynron commented Dec 14, 2023

What version of nacos-sdk-go are you using?

v2.2.2

What version of nacos-sever are you using?

2.0.3

What version of Go are you using (go version)?

go version go1.21.5 darwin/arm64

What operating system (Linux, Windows, …) and version?

What did you do?

If possible, provide a recipe for reproducing the error.
image

As you can see, there is no field for success in response, resulting in unmarshal to success in response being set to false. However, resultCode is 200, which means that the result of the request is successful.


可以看到,response中没有success这个field,导致unmarshal到response中的success被设置成false。但是resultCode200,表示这个请求的结果是成功的。

What did you expect to see?

What did you see instead?

@robynron robynron changed the title Nacos [version compatibility] success field of nacos server's response is empty Dec 14, 2023
@robynron
Copy link
Contributor Author

I'll fix it.

@robynron
Copy link
Contributor Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant