Skip to content

[Bug] when wechat send message api response errcode is not zero, the wechat sink connector does not throw IllegalAccessException #4602

@wizardzhang

Description

@wizardzhang

Search before asking

  • I had searched in the issues and found no similar issues.

Environment

Windows

EventMesh version

master

What happened

when i use wechat-sink-connector send message test some abnormal case, like this
image
when response errcode is not zero , it should throw IllegalAccessException
image
actually it does not, because the class TemplateMessageResponse.calss filed errocode is wrong, not match the wecaht response json errcode
image
sorry for missing abnormal case in unit test, i will add abnormal case in unit test and fix the bug

How to reproduce

i use wechat-sink-connector send message test some abnormal case, make the wechat server response errcode is not zero

Debug logs

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions