# Error setting commit status for

**URL:** <https://drone.discourse.group/t/error-setting-commit-status-for/9484>\
**Category:** Drone Support\
**Created:** [December 11, 2017, 12:21pm UTC](https://drone.discourse.group/t/error-setting-commit-status-for/9484 "2017-12-11T12:21:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![laszlocph](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/laszlocph/32/3233_2.png) [@laszlocph](https://drone.discourse.group/u/laszlocph)\
**Post date:** [December 11, 2017, 12:21pm UTC](https://drone.discourse.group/t/error-setting-commit-status-for/9484/1 "2017-12-11T12:21:20Z")

</div>

The “pending” status is successfully set in Github, but when my build succeeds, Drone doesn’t register the success status, instead throws an error in the logs “error setting commit status for”

Drone 0.7.3, DRONE\_HOST is set.

Anyone seen similar?

---

<div class="post-metadata">

**Author:** ![laszlocph](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/laszlocph/32/3233_2.png) [@laszlocph](https://drone.discourse.group/u/laszlocph)\
**Post date:** [December 11, 2017, 2:24pm UTC](https://drone.discourse.group/t/error-setting-commit-status-for/9484/2 "2017-12-11T14:24:52Z")

</div>

What is weird is that “error” states are updated successfully to Github.

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [December 11, 2017, 6:30pm UTC](https://drone.discourse.group/t/error-setting-commit-status-for/9484/3 "2017-12-11T18:30:45Z")

</div>

> [@On another topic](https://drone.discourse.group/t/1229/1):
>
> error setting commit status for

The only known cause for this error is an incorrect DRONE\_HOST value. We frequently see people set this value incorrectly, and then get this error. Please provide the exact DRONE\_HOST value you are using, and we can advise further.

---

<div class="post-metadata">

**Author:** ![laszlocph](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/laszlocph/32/3233_2.png) [@laszlocph](https://drone.discourse.group/u/laszlocph)\
**Post date:** [December 11, 2017, 8:00pm UTC](https://drone.discourse.group/t/error-setting-commit-status-for/9484/4 "2017-12-11T20:00:19Z")

</div>

Thanks for quick response. It’s

DRONE\_HOST=drone.mydomain.cloud

- yes, cloud is the tld 🙂 It’s a test domain.
- without http
- I tried with just the IP address, that also shows the same symptom
- The Github Status API correctly links to the Drone build

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [December 11, 2017, 10:23pm UTC](https://drone.discourse.group/t/error-setting-commit-status-for/9484/5 "2017-12-11T22:23:57Z")

</div>

The correct format is `DRONE_HOST=<proto>://<host>`. So for example `DRONE_HOST=https://beta.drone.io`

---

<div class="post-metadata">

**Author:** ![laszlocph](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/laszlocph/32/3233_2.png) [@laszlocph](https://drone.discourse.group/u/laszlocph)\
**Post date:** [December 12, 2017, 9:12am UTC](https://drone.discourse.group/t/error-setting-commit-status-for/9484/6 "2017-12-12T09:12:41Z")

</div>

Bingo. It works!

Thanks.
