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

Helpdesk.SearchHelpdeskFAQ error invalid json #47

Closed
fdkevin0 opened this issue May 13, 2022 · 3 comments
Closed

Helpdesk.SearchHelpdeskFAQ error invalid json #47

fdkevin0 opened this issue May 13, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@fdkevin0
Copy link

Describe the bug
Catch error when use Helpdesk.SearchHelpdeskFAQ.
json: cannot unmarshal array into Go struct field SearchHelpdeskFAQRespItem.items.answer_richtext of type string

To Reproduce

	if result, _, err = client.Helpdesk.SearchHelpdeskFAQ(ctx, &lark.SearchHelpdeskFAQReq{
		Query:  base64.StdEncoding.EncodeToString([]byte(request.Key)),
		Base64: proto.String("true"),
	}); err != nil {
		return response, err
	}

Additional context
I have try AnswerRichtext json.RawMessage instead of AnswerRichtext string, run as expected.

@github-actions
Copy link

🙏, thanks for your issue.

@chyroc chyroc added the bug Something isn't working label May 16, 2022
@chyroc
Copy link
Owner

chyroc commented May 19, 2022

fix by e331cbf

@chyroc
Copy link
Owner

chyroc commented May 19, 2022

@fdkevin0 hi, fixed.

@chyroc chyroc closed this as completed May 19, 2022
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

No branches or pull requests

2 participants