tcplugins / tcWebHooks

WebHooks plugin for Teamcity. Supports many build states and payload formats.
https://netwolfuk.wordpress.com/category/teamcity/tcplugins/tcwebhooks/
155 stars 30 forks source link

an error occurred when trying to edit event template #196

Closed RainforestPie closed 2 years ago

RainforestPie commented 2 years ago

Expected Behavior

Encountered the same problem as https://github.com/tcplugins/tcWebHooks/issues/124, I want to edit event template for solving the problem.

Current Behavior

However, an error occurs and the event template cannot be edited normally

Steps to Reproduce (for bugs)

  1. Visit /webhooks/template.html?template=slack.com in browser.

  2. Try to edit the event template for build failed. image

  3. An error occurs and the event template cannot be edited normally. image

Your Environment

Example Configuration (xml)

None

netwolfuk commented 2 years ago

Hi @RainforestPie can you confirm that the tcWebHooks rest API plug-in is installed.

If so, can you confirm that the TeamCity server has been restarted since the plugins were installed?

RainforestPie commented 2 years ago

@netwolfuk Thanks for such a quick reply! I installed the tcWebHooks rest API plug-in, but might not have restarted TeamCity, I will try to restart it now.

RainforestPie commented 2 years ago

Working! Thank you very much!

netwolfuk commented 2 years ago

You're welcome. I wish there was a way I could force TeamCity into requesting a restart. I'll see if there is a way to do that. Something about the fact that the rest API inherits from the TeamCity rest API plug-in and also the tcWebHooks plugin means that it doesn't warm load correctly.

Thanks for the feedback that that fixes it.