# HTTP request failed in 1C: causes and fixes

Source: https://checkcraft.ru/en/guides/1c-http-request-error.html · updated 2026-11-24

What the Internet error messages Couldn’t resolve host name, Failed to connect, Timeout was reached…

Practical workflow

Checkcraft is a desktop app for checking APIs and logs without code, with a free edition. [Download, no sign-up →](https://checkcraft.ru/en/download-checkcraft.html#free-download)

An HTTP request error in 1C is almost always a network problem, not a code problem: the host is not found, the port is closed, the server did not answer in time or the certificate check failed. The text after the colon comes from the network library and names the cause. Below is a breakdown by text and step-by-step checks.

Checkcraft · 24 November 2026

Get help with your first test →

## First tell a network error from a server response

If Get or Post threw an exception, there was no response at all: the request did not arrive or did not come back. If an HTTPResponse with 400, 401, 404 or 500 came back, the network is fine and the server refused, so look at the code and body.

## Check from the same server

The HTTP request runs where the code runs: on the 1C server for server calls and scheduled jobs. A check from your own browser says nothing about the 1C server. Run curl or ping from the 1C server machine under the same service account.

Repeating checks like this by hand? Checkcraft saves them and reruns them in one click. [Download Free →](https://checkcraft.ru/en/download-checkcraft.html#free-download)

## When the error is intermittent

If the request sometimes passes and sometimes times out, the usual causes are service load, a small HTTPConnection timeout or a proxy. Log the request time and response to the event log to see whether the time grows before failures.

## By error text

| Text after the Internet error prefix | Meaning | Check |
|---|---|---|
| Couldn't resolve host name | Host name not found | Typo, https:// in the server name, DNS on the 1C server |
| Couldn't connect to server, Failed to connect | Port closed or unreachable | Port, firewall, VPN, proxy |
| Timeout was reached | No answer in time | HTTPConnection timeout, service load |
| SSL connect error | HTTPS handshake failed | OpenSSLSecureConnection present, TLS version |
| Peer certificate cannot be authenticated | Server certificate not trusted | CA certificates from the OS |

The exact text varies by platform version, but it is always a message from the network library that runs the request.

## If a proxy is needed

```
Прокси = Новый ИнтернетПрокси(Истина); // настройки прокси системы
Соединение = Новый HTTPСоединение("api.example.com", 443, , , Прокси, 60,
    Новый ЗащищенноеСоединениеOpenSSL(, Новый СертификатыУдостоверяющихЦентровОС));
```

Scheduled jobs run under the 1C server service account, which may have different proxy settings than the user. That is why a manual request from the client works and the job does not.

## Logging to see the cause

```
Начало = ТекущаяУниверсальнаяДатаВМиллисекундах();
Попытка
    Ответ = Соединение.Получить(Запрос);
Исключение
    ЗаписьЖурналаРегистрации("Обмен.HTTP", УровеньЖурналаРегистрации.Ошибка, , ,
        СтрШаблон("Сеть: %1, адрес %2, %3 мс", КраткоеПредставлениеОшибки(ИнформацияОбОшибке()),
            Запрос.АдресРесурса, ТекущаяУниверсальнаяДатаВМиллисекундах() - Начало));
    ВызватьИсключение;
КонецПопытки;
```

## Status codes when the network is fine

| Code | Exchange cause |
|---|---|
| 400 | Wrong body or parameters: BOM, date format, empty field |
| 401 | Missing or wrong auth, expired token |
| 403 | Account lacks permissions |
| 404 | Wrong path, service not published |
| 500, 502, 503 | Error or outage on the service side |

More on codes in [401 error](https://checkcraft.ru/en/guides/api-401-error.html) and [500 error](https://checkcraft.ru/en/guides/api-500-error.html).

## More on 1C

Section overview and all guides: [1C integration via API: options, architecture and examples](https://checkcraft.ru/en/guides/1c-api-integration.html).

- [OData in 1C: setup, queries and REST integration with examples](https://checkcraft.ru/en/guides/1c-odata.html)
- [1C web services (SOAP): create, publish, WSDL and calls with examples](https://checkcraft.ru/en/guides/1c-web-service.html)
- [Publishing 1C on IIS and Apache: step by step and common errors](https://checkcraft.ru/en/guides/1c-web-publish.html)
- [JSON in 1C:Enterprise: read, write, HTTP requests and common errors](https://checkcraft.ru/en/guides/1c-json.html)
- [Unexpected character when reading JSON in 1C: causes and fixes](https://checkcraft.ru/en/guides/1c-json-unexpected-character.html)

Next step

## Repeat this on your own API

Checkcraft is a desktop app that saves API response checks without code and shows what did not match. Start with a sample, then use your own sanitized data. Free runs on Windows and Linux with no time limit.

[Download Free](https://checkcraft.ru/en/download-checkcraft.html#free-download) · [Download and first run](https://checkcraft.ru/en/download-checkcraft.html)

No sign-up or email needed, the archive is ready in a couple of minutes. See the [edition limits](https://checkcraft.ru/en/pricing.html).

## References

[RFC 9110: HTTP semantics](https://www.rfc-editor.org/rfc/rfc9110)

## Continue with a related task

[HTTP requests from 1C: GET, POST, headers, auth and timeouts with examples](https://checkcraft.ru/en/guides/1c-http-request.html) · [1C HTTP services: create, publish, test and debug with examples](https://checkcraft.ru/en/guides/1c-http-service.html) · [Unexpected character when reading JSON in 1C: causes and fixes](https://checkcraft.ru/en/guides/1c-json-unexpected-character.html) · [API error 500: server problem or bad request](https://checkcraft.ru/en/guides/api-500-error.html) · [401 Unauthorized in an API and Postman: why access is denied](https://checkcraft.ru/en/guides/api-401-error.html)

Start with the linked example and compare its result with your own test requirement.

Ask a person

## Get help with your first test

Tell us what you want to test or where you got stuck. We can help you start Checkcraft, choose an example and understand your first run. You can ask before downloading.

[Ask in Telegram](https://t.me/checkcraftchat)Send an email

The Telegram group is public: do not post passwords, tokens or confidential work data. A description of your task is enough to start.

You can also email us support@checkcraft.ru

Page card: /ai/pages/en/guides/1c-http-request-error.md
