# Error while getting Revision for a PR

**URL:** https://www.finalbuilder.com/forums/t/error-while-getting-revision-for-a-pr/6777
**Category:** Bugs
**Tags:** fixed
**Created:** [May 15, 2020, 11:51am UTC](https://www.finalbuilder.com/forums/t/error-while-getting-revision-for-a-pr/6777 "2020-05-15T11:51:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![dipold](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/dipold/32/1834_2.png) [@dipold](https://www.finalbuilder.com/forums/u/dipold)
#### Post date: [May 15, 2020, 11:51am UTC](https://www.finalbuilder.com/forums/t/error-while-getting-revision-for-a-pr/6777/1 "2020-05-15T11:51:10Z")

</div>

After update to Continua 1.9.1.667, I am get this error in all builds, apparently when fire the Update GitHub Status:

```
15:09:06 Stage: Build
15:09:06 Event Handlers - Iteration #1
15:09:06 Executing event handlers for 'On Before Stage Start' build event
15:09:06 Executing handler 'Update PR' for build event 'On Before Stage Start'
15:09:08 Processing Continua repository 'Ultra' 
15:09:08 [Error] An error occurred while getting the revision for a pull request: Not Found
15:09:08 [Fatal] Build failed while executing event handlers for 'On Before Stage Start' build event
15:09:08 Stage: _._Finalising Build_._
15:09:08 Event Handlers - Iteration #1
15:09:08 Executing event handlers for 'On Build Completed' build event
15:09:08 Executing handler 'Update PR' for build event 'On Build Completed'
15:09:08 [Warning] Skipping posting a status of 'Failure' in the 'OnBuildCompleted' event as status was not previously set to Pending
15:09:08 Finished executing event handlers for 'On Build Completed' build event

```

In version changelog of v1.9.1.665:

```
Update: GitHub API calls in GitHub Release and Update GitHub Status build event handlers no longer use deprecated method for access token authentication.

```

Do I need to update any information in the Repository Configuration or Events due to this change?

if I disable event Update GitHub Status, the builds start to work as before.

I tried to recreate Personal Access Tokens, but without success too.

---

<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 15, 2020, 12:56pm UTC](https://www.finalbuilder.com/forums/t/error-while-getting-revision-for-a-pr/6777/2 "2020-05-15T12:56:43Z")

</div>

Hi Rafael,

Thank you for reporting this. We can confirm that this is a bug. Due to a copy and paste error, the pull request method was calling the wrong API resource endpoint.

You can download a patched version using the following links:

- [Download Continua CI Server v1.9.1.693 (Hotfix) (64 bit)](https://downloads.finalbuilder.com/downloads/continua/1.9.1/ContinuaCI.Server.Setup_x64_1.9.1.693.Hotfix.exe)
- [Download Continua CI Agent v1.9.1.693 (Hotfix) (64 bit)](https://downloads.finalbuilder.com/downloads/continua/1.9.1/ContinuaCI.Agent.Setup_x64_1.9.1.693.Hotfix.exe)
- [Download Continua CI Agent v1.9.1.693 (Hotfix) (32 bit)](https://downloads.finalbuilder.com/downloads/continua/1.9.1/ContinuaCI.Agent.Setup_1.9.1.693.Hotfix.exe)

---

<div class="post-metadata">

### Author: ![dipold](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/dipold/32/1834_2.png) [@dipold](https://www.finalbuilder.com/forums/u/dipold)
#### Post date: [May 15, 2020, 1:37pm UTC](https://www.finalbuilder.com/forums/t/error-while-getting-revision-for-a-pr/6777/3 "2020-05-15T13:37:08Z")

</div>

Hi,

Is there no unit test for this? 😬

I just updated, and everything seems to be ok now. Thanks a lot!

---

<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 15, 2020, 1:54pm UTC](https://www.finalbuilder.com/forums/t/error-while-getting-revision-for-a-pr/6777/4 "2020-05-15T13:54:49Z")

</div>

> [@dipold](#):
>
> Is there no unit test for this? 😬

There soon will be 🙂
