# The AI Tools Test Runner internally enables SSL for http URLs

**URL:** https://meta.discourse.org/t/der-ai-tools-test-runner-macht-bei-http-urls-intern-ssl/404705
**Category:** Support
**Tags:** rest-api, ai
**Created:** [June 7, 2026, 9:24pm UTC](https://meta.discourse.org/t/der-ai-tools-test-runner-macht-bei-http-urls-intern-ssl/404705 "2026-06-07T21:24:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![anon24023246](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@anon24023246](https://meta.discourse.org/u/anon24023246)
#### Post date: [June 7, 2026, 9:24pm UTC](https://meta.discourse.org/t/der-ai-tools-test-runner-macht-bei-http-urls-intern-ssl/404705/1 "2026-06-07T21:24:53Z")

</div>

Hello,

I wanted to test the following AI tool:

```javascript
/* eslint-disable no-unused-vars */
function invoke(params) {
  const target = "http://stable-diffusion:7860/";
  try {
    const r = http.get(target);
    return { ok: true, status: r.status, len: (r.body||"").length };
  } catch (e) {
    return { ok: false, target, error: String(e) };
  }
}

```

where `http://stable-diffusion:7860/` is an internal endpoint.

Unfortunately, `http.get` or `http.post` internally uses SSL, even though it is called with only `http://`:

```plaintext
Test result
ok: false
target: http://stable-diffusion:7860/
error: Error: SSL_connect returned=1 errno=0 peeraddr=172.18.0.40:7860 state=error: wrong version number

```

Although `stable-diffusion` is correctly resolved to `172.18.0.40`, a “handshake” error occurs in between.

In the settings under “Allowed internal hosts”, “stable-diffusion” is already listed.

Could you please take a look at this? Thank you very much.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [June 8, 2026, 10:14pm UTC](https://meta.discourse.org/t/der-ai-tools-test-runner-macht-bei-http-urls-intern-ssl/404705/2 "2026-06-08T22:14:44Z")

</div>

Currently the code only supports HTTP to port 80. All other ports default to HTTPS.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [July 8, 2026, 10:15pm UTC](https://meta.discourse.org/t/der-ai-tools-test-runner-macht-bei-http-urls-intern-ssl/404705/3 "2026-07-08T22:15:14Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
