notifications icon indicating copy to clipboard operation
notifications copied to clipboard

test message for custom webhook only works on plain text

Open zhongnansu opened this issue 3 years ago • 5 comments

Describe the bug no matter what content type that user defines when creating the custom webhook channel. For sending test message, it's always send a plain text "test mesaage xxx xxx". Because it's pre-defined plain text in backend for any channel type. That leads to failure, since custom webhook could be created to accept any content type.

e.g. Test message will never be sent successfully to a custom webhook defined as accepting json. Furthermore, accepting json could be defined to accept any json or json with certain fields with certiain keys

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Plugins Please list all plugins currently enabled.

Screenshots If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

zhongnansu avatar Oct 11 '21 23:10 zhongnansu