danger / danger/swift

http in DANGER_GITLAB_API_BASE_URL ignored

Open
#445 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
1.1k
Forks
152
Avg merge
9h 54m
Merged PRs (30d)
2

Description

I have a local installation of GitLab and therefore do not use any encryption. Danger JS had no issues with this setup.
danger swift ignores the http definition in DANGER_GITLAB_API_BASE_URL and changes the address to https.

How can I force the http connection?

# Environment Variables
``` bash
$ printenv
...
DANGER_GITLAB_API_BASE_URL=http://*****.local/api/v4
DANGER_GITLAB_API_TOKEN=*********
...
```

# danger-swift ci
``` bash
$ danger-swift ci
184Error: FetchError: request to https://*****.local/api/v4/projects/******/merge_requests/21/changes failed, reason: connect ECONNREFUSED ******:443
185 at ClientRequest. (/snapshot/danger-js/node_modules/node-fetch/lib/index.js:1444:11)
186 at ClientRequest.emit (events.js:210:5)
187 at TLSSocket.socketErrorListener (_http_client.js:406:9)
188 at TLSSocket.emit (events.js:210:5)
189 at emitErrorNT (internal/streams/destroy.js:92:8)
190 at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
191 at processTicksAndRejections (internal/process/task_queues.js:80:21) {
192 message: 'request to https://****.local/api/v4/projects/******/merge_requests/21/changes failed, reason: connect ECONNREFUSED *****:443',
193 type: 'system',
194 errno: 'ECONNREFUSED',
195 code: 'ECONNREFUSED'
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.