# Intermittent issue with Event Handlers

**URL:** https://www.finalbuilder.com/forums/t/intermittent-issue-with-event-handlers/6039
**Category:** Bugs
**Created:** [May 20, 2016, 11:06am UTC](https://www.finalbuilder.com/forums/t/intermittent-issue-with-event-handlers/6039 "2016-05-20T11:06:03Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![lcarrasco](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/lcarrasco/32/143_2.png) [@lcarrasco](https://www.finalbuilder.com/forums/u/lcarrasco)
#### Post date: [May 20, 2016, 11:06am UTC](https://www.finalbuilder.com/forums/t/intermittent-issue-with-event-handlers/6039/1 "2016-05-20T11:06:03Z")

</div>

**1. Continua version&nbsp;number and edition:** &nbsp;  
eg. v1.8.0.139 64 bit  
  
**2. Operating system for Continua and agents:** &nbsp;  
eg. Windows 7&nbsp;SP2 (Continua Server), Windows 7 Professional 64 bit (1 additional agent) &nbsp;&nbsp;  
  
**3. Database platform:** &nbsp;  
eg. bundled PostgreSQL  
  
**4. How much CPU / RAM / Diskspace do you have free on the Continua server, agents, and database:** &nbsp;&nbsp;  
eg. 80% free cpu, 50% free RAM (10gig), 15% free hard disk (95 gig) &nbsp;  
  
**5. A detailed description of the issue:&nbsp;**  
- Every often one or more event handler which updates GitHub Status fails with the following error message:  
  
An error occurred while running handler ‘Update GitHub Status - Unit Tests’ for build event ‘On Before Stage Start’. Message: Exception: UriFormatException Message: Invalid URI: The URI scheme is not valid. Stack Trace: at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) at Continua.Modules.Builds.EventHandlers.PlugIns.GitHubStatusBuildEventHandlerPlugIn.\<\>c\_\_DisplayClass8\_0.b\_\_1(IRepositoryInfo r) at System.Linq.Enumerable.WhereListIterator`1.MoveNext() at System.Linq.Enumerable.FirstOrDefault&#91;TSource&#93;(IEnumerable`1 source) at Continua.Modules.Builds.EventHandlers.PlugIns.GitHubStatusBuildEventHandlerPlugIn.Execute(IBuildEventHandlerExecutionContext context, String[] commentLines, GitHubStatus status, Int32 buildId) at Continua.Modules.Builds.EventHandlers.PlugIns.GitHubStatusBuildEventHandlerPlugIn.Execute(IBuildEventHandlerExecutionContext context, IBuildEventType buildEventType) at Continua.Modules.Builds.EventHandlers.Entities.BuildEventHandler.Execute(IBuildEventHandlerExecutionContext context, IBuildEventType buildEventType)  
  
Since we are using GitHub’s status checks this is a problem for us since we can’t rely on Continua not updating our builds.  
  
Thanks a lot!  
  
The problem seems to occur 3 out of 10 times.  
  
Thanks in advance

---

<div class="post-metadata">

### Author: ![lcarrasco](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/lcarrasco/32/143_2.png) [@lcarrasco](https://www.finalbuilder.com/forums/u/lcarrasco)
#### Post date: [May 20, 2016, 11:07am UTC](https://www.finalbuilder.com/forums/t/intermittent-issue-with-event-handlers/6039/2 "2016-05-20T11:07:54Z")

</div>

GitHub Status Event Handler config:   
  ![]()

---

<div class="post-metadata">

### Author: ![lcarrasco](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/lcarrasco/32/143_2.png) [@lcarrasco](https://www.finalbuilder.com/forums/u/lcarrasco)
#### Post date: [May 20, 2016, 11:08am UTC](https://www.finalbuilder.com/forums/t/intermittent-issue-with-event-handlers/6039/3 "2016-05-20T11:08:32Z")

</div>

GitHub Status Event Handler config:   
  ![]()   
  
 [http://d.pr/i/EKJU](http://d.pr/i/EKJU)

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [May 23, 2016, 8:05am UTC](https://www.finalbuilder.com/forums/t/intermittent-issue-with-event-handlers/6039/4 "2016-05-23T08:05:04Z")

</div>

Hi Luis,  
  
Thank you for the report. Does the configuration have other repositories with an invalid url in the Repository Url field? We think this is happening while matching repositories and we have now updated the error checking in this part of the code. We will hopefully get an updated version out tomorrow once we’ve finished looking at some other issues.

---

<div class="post-metadata">

### Author: ![lcarrasco](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/lcarrasco/32/143_2.png) [@lcarrasco](https://www.finalbuilder.com/forums/u/lcarrasco)
#### Post date: [May 23, 2016, 5:45am UTC](https://www.finalbuilder.com/forums/t/intermittent-issue-with-event-handlers/6039/5 "2016-05-23T05:45:58Z")

</div>

Hi Dave, I’ve checked every configuration’s event handlers and it seems that everyone has the correct (and default) URL: [https://api.github.com](https://api.github.com)  
  
 Thanks

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [May 24, 2016, 1:47am UTC](https://www.finalbuilder.com/forums/t/intermittent-issue-with-event-handlers/6039/6 "2016-05-24T01:47:51Z")

</div>

Hi Luis,  
  
It’s a Repository Url in the repository settings rather than the Git Hub Url that is triggering the error. We check through each repository associated with the configuration to find a match with the list of repository names in the Repositories field. It appears that one these has an invalid url and we are throwing an error rather than ignoring it. We’re working on a new version which will fix this.

---

<div class="post-metadata">

### Author: ![lcarrasco](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/lcarrasco/32/143_2.png) [@lcarrasco](https://www.finalbuilder.com/forums/u/lcarrasco)
#### Post date: [May 24, 2016, 6:01am UTC](https://www.finalbuilder.com/forums/t/intermittent-issue-with-event-handlers/6039/7 "2016-05-24T06:01:17Z")

</div>

Hi Dave, thanks, I looked and one of the repositories had a SSH “URL”. I will change it and report any issues.   
  
 Thanks!

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [May 25, 2016, 10:14am UTC](https://www.finalbuilder.com/forums/t/intermittent-issue-with-event-handlers/6039/8 "2016-05-25T10:14:07Z")

</div>

This is now fixed in&nbsp;[version 1.8.0.148](https://www.finalbuilder.com/downloads/continuaci/continuaci-version-history-v1.8)

---

<div class="post-metadata">

### Author: ![lcarrasco](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/lcarrasco/32/143_2.png) [@lcarrasco](https://www.finalbuilder.com/forums/u/lcarrasco)
#### Post date: [May 27, 2016, 6:59am UTC](https://www.finalbuilder.com/forums/t/intermittent-issue-with-event-handlers/6039/9 "2016-05-27T06:59:55Z")

</div>

Thanks a lot Dave
