# Api Error : 500

**URL:** <https://forum.infinityfree.com/t/api-error-500/122052>\
**Category:** Hosting Support\
**Created:** [November 20, 2026, 11:58pm UTC](https://forum.infinityfree.com/t/api-error-500/122052 "2026-11-20T23:58:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yehasun](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/yehasun/32/69002_2.png) [@yehasun](https://forum.infinityfree.com/u/yehasun)\
**Post date:** [November 20, 2026, 11:58pm UTC](https://forum.infinityfree.com/t/api-error-500/122052/1 "2026-11-20T23:58:09Z")

</div>

### Website URL

[https://moviehut.web1337.net](https://moviehut.web1337.net)

### Error Message

Error: 500 (http\_request\_failed - cURL error 6: Could not resolve host: patient-recipe-cf21.yehasunabid3636.workers.dev)

### Other Information

Subject: Please allow outgoing connection to [api.telegram.org](http://api.telegram.org)

Hello Support Te

I am using the “WP Telegram” WordPress plugin. When it tries to connect to the Telegram API, I get this error:

cURL error 6: Could not resolve host: [api.telegram.org](http://api.telegram.org)

Please:

Fix the server DNS so that [api.telegram.org](http://api.telegram.org) can be resolved.  
Allow outgoing HTTPS (TCP port 443) connections to [api.telegram.org](http://api.telegram.org) in the server firewall.  
If outgoing connections are not allowed on my plan, please tell me which plan supports it.

Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [November 20, 2026, 11:58pm UTC](https://forum.infinityfree.com/t/api-error-500/122052/2 "2026-11-20T23:58:10Z")

</div>

Welcome to the InfinityFree community forum! Good to have you here.

- Most people answering here are volunteers. They’re often the fastest source of help. Admin (the only staff member) checks in about once a day for issues on our end.
- Volunteers can’t see your account or website. Share what you actually see, like error messages and what happens when you try something. That’s more useful than your theory of what’s wrong.
- AI tools often get InfinityFree wrong. If a volunteer’s advice differs from what an AI told you, please try the volunteer’s suggestion first.
- Solving an issue is a joint effort. Try the suggestions you get and report back what happened.

---

<div class="post-metadata">

**Author:** ![Lemni](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/lemni/32/68303_2.png) [@Lemni](https://forum.infinityfree.com/u/Lemni)\
**Post date:** [November 20, 2026, 11:58pm UTC](https://forum.infinityfree.com/t/api-error-500/122052/3 "2026-11-20T23:58:22Z")

</div>

_Beep boop, I’m a bot! I dug through the forum to get you started. I sometimes get things wrong though, so do with this what you will until a human has a look._

This is a limit on free hosting, not a DNS fault. Telegram, including bots, is blocked entirely on InfinityFree. So `api.telegram.org` won’t resolve, and the firewall can’t be opened for it.

Your error names `patient-recipe-cf21.yehasunabid3636.workers.dev`, which is a Cloudflare Workers address. Cloudflare Workers is on the same blocked list, so routing the plugin through a Worker as a proxy fails the same way.

The article says connections to blocked services “may not resolve at all”, and that’s the `cURL error 6: Could not resolve host` you’re seeing. It also says to upgrade to [premium hosting](https://www.infinityfree.com/premium/) if you need these services, or to use an alternative service. It doesn’t say which premium plan.

Here is the article:

> [@Can I connect to other servers from my website? (Sockets, cURL and APIs)](https://forum.infinityfree.com/docs?topic=49348):
>
> Your website can connect to other servers, for example to call an API, load data from another website or send email through an external SMTP server. This works with functions like cURL, file\_get\_contents() and fsockopen(). However, to prevent abuse, outbound connections are limited to a small set of ports and services. Which ports can I use? Port Used for 80 HTTP 443 HTTPS 587 SMTP (sending email) All other ports are blocked. This means you cannot connect to things like: APIs …

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [November 21, 2026, 10:15pm UTC](https://forum.infinityfree.com/t/api-error-500/122052/4 "2026-11-21T22:15:32Z")

</div>

Access to the Telegram API is blocked on our hosting due to abuse. Connecting to services commonly used to bypass the block to the Telegram API is also blocked, because we do not want you to connect to the Telegram API.

The block is working as intended, so there is nothing to fix, and no exceptions will be made.

You can migrate to [premium hosting](https://www.infinityfree.com/premium/) to bypass it. Any premium plan is fine, this restriction is only on free hosting.
