setting up gateway

28 views
Skip to first unread message

Valentin Kragelj

unread,
Nov 27, 2019, 9:04:38 AM11/27/19
to Review Board Community
We have file "rb-gateway" on windows. In it, there are folder "gitRep" (where inside there is .git folder and other files), file htpasswd with approppriate data, empty file tokens.dat, empty file webhooks.json, rbgateway-1.0-windows-amd64.exe and config.json, which contains:

{
   "port":8888,
   "htpasswdPath":"htpasswd",
   "tokenStorePath":"tokens.dat",
   "webhookStorePath":"webhooks.json",
   "repositories":[
      {
         "name":"repo1",
         "path":"testingForReviewBoard",
         "scm":"git"
      }
   ]
}

When I run .exe file in cmd, I get:
C:\Users\M0097932\Desktop\rb-gateway>rbgateway-1.0-windows-amd64.exe
2019/11/27 15:03:11 Could not create API: json: cannot unmarshal object into Go value of type []*hooks.Webhook

config.json should be ok, I used online JSON validator on it.

Why do I get the error? I know nothing of GO and unmarshaling objects.

Valentin Kragelj

unread,
Nov 29, 2019, 1:43:15 AM11/29/19
to Review Board Community
Any help, please?

Valentin Kragelj

unread,
Dec 2, 2019, 2:32:58 AM12/2/19
to Review Board Community
Solved the issue by putting empty array '[]' in webhooks.json file, thanks to Christian.
Reply all
Reply to author
Forward
0 new messages