• header.categories
    • header.recent
    • header.tags
    • header.popular
    • register
    • login
    1. home
    2. giuseppez
    3. best
    G
    offline
    • profile
    • following 0
    • followers 0
    • topics 4
    • posts 11
    • header.groups 0

    posts

    header.recent best controversial
    • RE: MyController V2.0 Error: Minified React error #31

      @jkandasa now is fine. Thank you very much

      global:posted-in, Troubleshooting
      G
      giuseppez
    • Post Webhook Handler Error

      Trying to schedule a pair of webhooks, to just understand their functioning, I presume to have encountered an error.
      If you look a the following golang module:
      https://github.com/mycontroller-org/server/blob/master/plugin/handler/webhook/handler.go
      and locate the Post function:

      // Post handler implementation
      func (c *WebhookClient) Post(data map[string]interface{}) error {
      

      you can see that there is a loop on all the configured handler parameters. In my case I configured two:

      webook.PNG

      but only one is executed because, after its inovocation, you can find this code:

      		if err != nil {
      			zap.L().Error("error on webhook handler call", zap.Int("responseStatusCode", responseCode), zap.Error(err))
      		}
      		return err
      

      In my opinion the return statement should stay inside the curl brackets in this way:

      		if err != nil {
      			zap.L().Error("error on webhook handler call", zap.Int("responseStatusCode", responseCode), zap.Error(err))
      		        return err
      		}
      
      

      to avoid to return to parent function before finishing the loop.

      global:posted-in, Troubleshooting
      G
      giuseppez