argocd-bot
argocd-bot copied to clipboard
GHE_HOST left empty as the doc said bot should use github.com but it does not do that
If we left GHE_HOST empty we hitting the issue as below
rgocd-bot-597b9df857-slcpw argocd-bot > probot run ./lib/index.js
argocd-bot-597b9df857-slcpw argocd-bot [before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4
argocd-bot-597b9df857-slcpw argocd-bot 07:25:21.079Z INFO probot: Listening on http://localhost:8080
argocd-bot-597b9df857-slcpw argocd-bot 07:25:21.097Z DEBUG github: GitHub request: GET /app/installations - 500 Internal Server Error (installation=undefined)
argocd-bot-597b9df857-slcpw argocd-bot params: {
argocd-bot-597b9df857-slcpw argocd-bot "per_page": 100,
argocd-bot-597b9df857-slcpw argocd-bot "baseUrl": "",
argocd-bot-597b9df857-slcpw argocd-bot "request": {
argocd-bot-597b9df857-slcpw argocd-bot "timeout": 0
argocd-bot-597b9df857-slcpw argocd-bot }
argocd-bot-597b9df857-slcpw argocd-bot }
argocd-bot-597b9df857-slcpw argocd-bot 07:25:21.098Z ERROR probot: Only absolute URLs are supported
argocd-bot-597b9df857-slcpw argocd-bot HttpError: Only absolute URLs are supported
argocd-bot-597b9df857-slcpw argocd-bot at fetch.then.then.catch.error (/home/argocd/argocd-bot/node_modules/@octokit/rest/lib/request/request.js:105:13)
Ran into this same issue. I removed this from the deployment spec to fix it
# if using github.com, this is not needed
- name: GHE_HOST
valueFrom:
secretKeyRef:
name: argocd-bot-secret
key: GHE_HOST