# Cannot find repository

**URL:** <https://drone.discourse.group/t/cannot-find-repository/10403>\
**Category:** Drone Support\
**Created:** [November 11, 2018, 10:38pm UTC](https://drone.discourse.group/t/cannot-find-repository/10403 "2018-11-11T22:38:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![rockoo](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/rockoo/32/4752_2.png) [@rockoo](https://drone.discourse.group/u/rockoo)\
**Post date:** [November 11, 2018, 10:38pm UTC](https://drone.discourse.group/t/cannot-find-repository/10403/1 "2018-11-11T22:38:15Z")

</div>

Upon adding, activating the repo in drone the webhook is properly created on Bit Bucket Cloud. However when I push repo with .drone.yml I see drone catching the webhook but throws an error

11/11/2018 23:30:17{“level”:“error”,“ip”:“10…”,“path”:"/hook?secret=4GFgmlIrth8eXEpw…",“method”:“POST”,“request\_id”:“bfkaqua8ukuqurr2bce0”,“error”:“sql: no rows in result set”,“namespace”:“fwt-hq”,“name”:“API V1”,“time”:“2018-11-11T22:30:17Z”,“message”:“cannot find repository”}

11/11/2018 23:30:17{“level”:“error”,“ip”:“10…”,“path”:"/hook?secret=4GFgmlIrth8eXEpw…",“method”:“POST”,“request\_id”:“bfkaqua8ukuqurr2bce0”,“error”:“Cannot find repository”,“time”:“2018-11-11T22:30:17Z”,“message”:“cannot parse webhook”}

[http://drops.roknemet.me/i3pDSD/GOirYuuAL4](http://drops.roknemet.me/i3pDSD/GOirYuuAL4)

---

<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:** [November 11, 2018, 10:41pm UTC](https://drone.discourse.group/t/cannot-find-repository/10403/2 "2018-11-11T22:41:40Z")

</div>

It looks like the name does not match … the UI has `api-v1` and the webhook has `API V1`. Can you please provide a copy of the webhook payload by passing `DRONE_DEBUG_DUMP_HOOK=true` to the server. This will dump the full webhook payload to the Drone logs (you will want to remove this setting once troubleshooting is complete).

---

<div class="post-metadata">

**Author:** ![rockoo](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/rockoo/32/4752_2.png) [@rockoo](https://drone.discourse.group/u/rockoo)\
**Post date:** [November 11, 2018, 10:46pm UTC](https://drone.discourse.group/t/cannot-find-repository/10403/3 "2018-11-11T22:46:48Z")

</div>

You may find the log here

[https://bit.ly/2zGJkWa](https://bit.ly/2zGJkWa)

Please do check gitter for the code

---

<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:** [November 11, 2018, 11:16pm UTC](https://drone.discourse.group/t/cannot-find-repository/10403/4 "2018-11-11T23:16:26Z")

</div>

ok, I found the root cause. There are two different names in the payload (a display name, and a full\_name). We were using the display name when parsing webhooks when we should have been using the full\_name (slug).

I issue a patch to our upstream library that handles webhook parsing: [https://github.com/drone/go-scm/commit/ce7316136ba7fb2062ac22b9e6cc7198d5d0cbd2](https://github.com/drone/go-scm/commit/ce7316136ba7fb2062ac22b9e6cc7198d5d0cbd2)

I will need to push an updated version of Drone, which I can do later this evening.

---

<div class="post-metadata">

**Author:** ![rockoo](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/rockoo/32/4752_2.png) [@rockoo](https://drone.discourse.group/u/rockoo)\
**Post date:** [November 11, 2018, 11:22pm UTC](https://drone.discourse.group/t/cannot-find-repository/10403/5 "2018-11-11T23:22:07Z")

</div>

That was my question before, where I wasn’t clear enough in explaining it. That would be perfect. Thank you for all the help @bradrydzewski! Much appreciated!

---

<div class="post-metadata">

**Author:** ![boredland](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/boredland/32/4840_2.png) [@boredland](https://drone.discourse.group/u/boredland)\
**Post date:** [November 11, 2018, 11:26pm UTC](https://drone.discourse.group/t/cannot-find-repository/10403/6 "2018-11-11T23:26:16Z")

</div>

That is the same I described here: [https://github.com/drone/drone/issues/2522](https://github.com/drone/drone/issues/2522)

---

<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:** [November 12, 2018, 1:54am UTC](https://drone.discourse.group/t/cannot-find-repository/10403/7 "2018-11-12T01:54:41Z")

</div>

@rockoo this should be fixed for Bitbucket (get the new rc.1 snapshot). I have not personally test this outside of unit tests, so please let me know if you hit any issues.

@boredland I think I see where this issue is occurring in GitLab and will try to issue a patch tomorrow. I will post back to the issue once available for testing.

---

<div class="post-metadata">

**Author:** ![rockoo](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/rockoo/32/4752_2.png) [@rockoo](https://drone.discourse.group/u/rockoo)\
**Post date:** [November 12, 2018, 8:24am UTC](https://drone.discourse.group/t/cannot-find-repository/10403/8 "2018-11-12T08:24:21Z")

</div>

@bradrydzewski It works now! I will keep you posted if I find any additional issues. Thank you for all the help!
