# Randomly started getting "error code: 1107"

**URL:** <https://community.hubspot.com/t/randomly-started-getting-error-code-1107/88447>\
**Category:** APIs & Integrations\
**Tags:** oauth\
**Created:** [August 28, 2023, 4:28pm UTC](https://community.hubspot.com/t/randomly-started-getting-error-code-1107/88447 "2023-08-28T16:28:48Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![manavo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/manavo/32/29220_2.png) [@manavo](https://community.hubspot.com/u/manavo)\
**Post date:** [August 28, 2023, 4:28pm UTC](https://community.hubspot.com/t/randomly-started-getting-error-code-1107/88447/1 "2023-08-28T16:28:48Z")

</div>

Hi everyone,

About 1.5 hours ago, I started getting 403 failures with the following response body:

error code: 1107

Searching around I can’t find a single reference to this error code.

The access token has expired, and I can’t refresh it, since it returns the same error.

Any ideas what it might be?

In the developer portal, in the “Monitoring” tab, I’m not even seeing the requests come in (last request I see was successful, at 10:57am EDT)

Thanks,

Phil

---

<div class="post-metadata">

**Author:** ![kscruggs](https://avatars.discourse-cdn.com/v4/letter/k/35a633/32.png) [@kscruggs](https://community.hubspot.com/u/kscruggs)\
**Post date:** [August 28, 2023, 5:13pm UTC](https://community.hubspot.com/t/randomly-started-getting-error-code-1107/88447/2 "2023-08-28T17:13:55Z")

</div>

I am having the exact same issue.

---

<div class="post-metadata">

**Author:** ![mainespotter](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mainespotter/32/59606_2.png) [@mainespotter](https://community.hubspot.com/u/mainespotter)\
**Post date:** [August 28, 2023, 6:43pm UTC](https://community.hubspot.com/t/randomly-started-getting-error-code-1107/88447/3 "2023-08-28T18:43:44Z")

</div>

Exact same issue, began at exact time as yours. Contacted support and they recommended I come here. Anyone have any thoughts?

---

<div class="post-metadata">

**Author:** ![mainespotter](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mainespotter/32/59606_2.png) [@mainespotter](https://community.hubspot.com/u/mainespotter)\
**Post date:** [August 28, 2023, 6:53pm UTC](https://community.hubspot.com/t/randomly-started-getting-error-code-1107/88447/4 "2023-08-28T18:53:19Z")

</div>

A little more info that makes this even more puzzling: when I make the call in Postman on my dev machine, it works fine. But when I make the exact same call on my live server via cURL on the command line, I get those 1107 errors

---

<div class="post-metadata">

**Author:** ![manavo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/manavo/32/29220_2.png) [@manavo](https://community.hubspot.com/u/manavo)\
**Post date:** [August 28, 2023, 7:08pm UTC](https://community.hubspot.com/t/randomly-started-getting-error-code-1107/88447/5 "2023-08-28T19:08:46Z")

</div>

That really is strange!

---

<div class="post-metadata">

**Author:** ![mainespotter](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mainespotter/32/59606_2.png) [@mainespotter](https://community.hubspot.com/u/mainespotter)\
**Post date:** [August 28, 2023, 6:59pm UTC](https://community.hubspot.com/t/randomly-started-getting-error-code-1107/88447/6 "2023-08-28T18:59:36Z")

</div>

Looks like it spontaneously fixed itself for me now, after throwing errors for past 4 hours

---

<div class="post-metadata">

**Author:** ![manavo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/manavo/32/29220_2.png) [@manavo](https://community.hubspot.com/u/manavo)\
**Post date:** [August 28, 2023, 7:09pm UTC](https://community.hubspot.com/t/randomly-started-getting-error-code-1107/88447/7 "2023-08-28T19:09:16Z")

</div>

Still broken for me unfortunately, but glad it’s working for you now!

---

<div class="post-metadata">

**Author:** ![kscruggs](https://avatars.discourse-cdn.com/v4/letter/k/35a633/32.png) [@kscruggs](https://community.hubspot.com/u/kscruggs)\
**Post date:** [August 28, 2023, 8:18pm UTC](https://community.hubspot.com/t/randomly-started-getting-error-code-1107/88447/8 "2023-08-28T20:18:31Z")

</div>

Still broken for me, as well.

---

<div class="post-metadata">

**Author:** ![jorritvginkel](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jorritvginkel/32/44503_2.png) [@jorritvginkel](https://community.hubspot.com/u/jorritvginkel)\
**Post date:** [August 29, 2023, 7:48am UTC](https://community.hubspot.com/t/randomly-started-getting-error-code-1107/88447/9 "2023-08-29T07:48:28Z")

</div>

We have exactly the same issue since yesterday 17:00 CEST.

---

<div class="post-metadata">

**Author:** ![lenartr](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lenartr/32/199772_2.png) [@lenartr](https://community.hubspot.com/u/lenartr)\
**Post date:** [August 29, 2023, 7:59am UTC](https://community.hubspot.com/t/randomly-started-getting-error-code-1107/88447/10 "2023-08-29T07:59:43Z")

</div>

Same for me - it seems like it could be related to Cloudflare blocking the IP address that requests are coming from. See the [error description here](https://developers.cloudflare.com/support/troubleshooting/cloudflare-errors/troubleshooting-cloudflare-1xxx-errors/#errors-1006-1007-1008-or-1106-access-denied-your-ip-address-has-been-banned).

---

<div class="post-metadata">

**Author:** ![manavo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/manavo/32/29220_2.png) [@manavo](https://community.hubspot.com/u/manavo)\
**Post date:** [August 29, 2023, 8:05am UTC](https://community.hubspot.com/t/randomly-started-getting-error-code-1107/88447/11 "2023-08-29T08:05:51Z")

</div>

Might be something like that, especially with somebody else here finding that it worked locally but not on the server.

but I can’t find that error code on the cloud flare page? (Error code 1107)

---

<div class="post-metadata">

**Author:** ![lenartr](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lenartr/32/199772_2.png) [@lenartr](https://community.hubspot.com/u/lenartr)\
**Post date:** [August 29, 2023, 8:14am UTC](https://community.hubspot.com/t/randomly-started-getting-error-code-1107/88447/12 "2023-08-29T08:14:41Z")

</div>

You are correct. I relied too heavily on google’s search - looking for 1107 but returned the 100x error page.

I’ve re-run the failing jobs and they’re still failing so, at least for me, the issue has not been resolved yet.

---

<div class="post-metadata">

**Author:** ![manavo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/manavo/32/29220_2.png) [@manavo](https://community.hubspot.com/u/manavo)\
**Post date:** [August 29, 2023, 9:14am UTC](https://community.hubspot.com/t/randomly-started-getting-error-code-1107/88447/13 "2023-08-29T09:14:56Z")

</div>

Odds are it is something like this, and it’s getting blocked before the request even gets to Hubspot, and that’s why it doesn’t even show up in the API logs? If Cloudflare (or something like that) is blocking it earlier in the chain, it would explain it.

Just frustrating and nothing we can do about it but wait? Do Hubspot staff look at these messages? Or is this just for community supporting each other, and in this case it looks like there’s actually nothing we can do?

---

<div class="post-metadata">

**Author:** ![jorritvginkel](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jorritvginkel/32/44503_2.png) [@jorritvginkel](https://community.hubspot.com/u/jorritvginkel)\
**Post date:** [August 29, 2023, 9:30am UTC](https://community.hubspot.com/t/randomly-started-getting-error-code-1107/88447/14 "2023-08-29T09:30:04Z")

</div>

I contacted Hubspot support via Phone. They asked for the call so they can reproduce the issue. Gave it to them and also referred to this community thread.  
It’s a weird issue, because we also ran the code locally and it worked just fine. Only when we run it from our server it gets its access denied.

Either Cloudflare or Hubspot is doing some blockage.

---

<div class="post-metadata">

**Author:** ![manavo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/manavo/32/29220_2.png) [@manavo](https://community.hubspot.com/u/manavo)\
**Post date:** [August 29, 2023, 9:31am UTC](https://community.hubspot.com/t/randomly-started-getting-error-code-1107/88447/15 "2023-08-29T09:31:54Z")

</div>

I’m currently trying to see if I can make my requests through a proxy and see what’s happening.

Thanks for talking to them and referring them to this thread too, really appreciate it!

---

<div class="post-metadata">

**Author:** ![jorritvginkel](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jorritvginkel/32/44503_2.png) [@jorritvginkel](https://community.hubspot.com/u/jorritvginkel)\
**Post date:** [August 29, 2023, 9:48am UTC](https://community.hubspot.com/t/randomly-started-getting-error-code-1107/88447/16 "2023-08-29T09:48:16Z")

</div>

Let me know what you find 🙂

---

<div class="post-metadata">

**Author:** ![manavo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/manavo/32/29220_2.png) [@manavo](https://community.hubspot.com/u/manavo)\
**Post date:** [August 29, 2023, 10:25am UTC](https://community.hubspot.com/t/randomly-started-getting-error-code-1107/88447/17 "2023-08-29T10:25:47Z")

</div>

With a proxy it seems to be working. The proxy I’m testing at the moment is being a bit unreliable, but when the proxy works the requests are getting through fine.

So overall it definitely feels like there’s some IP blocking going on, so other than figuring out how to get/use a different IP, it doesn’t feel like there’s much we can do (other than hope that the block magically goes away, as it did for @mainespotter)

---

<div class="post-metadata">

**Author:** ![fast\_support](https://avatars.discourse-cdn.com/v4/letter/f/e9c0ed/32.png) [@fast\_support](https://community.hubspot.com/u/fast_support)\
**Post date:** [August 29, 2023, 3:19pm UTC](https://community.hubspot.com/t/randomly-started-getting-error-code-1107/88447/18 "2023-08-29T15:19:31Z")

</div>

Hello!

I have an idea that it caused by fact that their CDN provider returns error “error code: 1107” when we do query via IPv6:

curl -6 [https://api.hubapi.com](https://api.hubapi.com)

HTTP/2 403  
\< date: Tue, 29 Aug 2023 15:04:55 GMT  
\< content-type: text/plain; charset=UTF-8  
\< server: cloudflare

When I disable IPv6 it works just fine:

curl -4 [https://api.hubapi.com](https://api.hubapi.com)  
\<html\>  
\<head\>\<title\>302 Found\</title\>\</head\>  
\<body\>  
\<center\>\<h1\>302 Found\</h1\>\</center\>  
\<hr\>\<center\>nginx\</center\>  
\</body\>  
\</html\>

It may be configuration error or some third party issue.

---

<div class="post-metadata">

**Author:** ![kscruggs](https://avatars.discourse-cdn.com/v4/letter/k/35a633/32.png) [@kscruggs](https://community.hubspot.com/u/kscruggs)\
**Post date:** [August 29, 2023, 3:59pm UTC](https://community.hubspot.com/t/randomly-started-getting-error-code-1107/88447/19 "2023-08-29T15:59:19Z")

</div>

Forcing IPv4 did the trick for me. Thank you!

---

<div class="post-metadata">

**Author:** ![manavo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/manavo/32/29220_2.png) [@manavo](https://community.hubspot.com/u/manavo)\
**Post date:** [August 30, 2023, 9:41am UTC](https://community.hubspot.com/t/randomly-started-getting-error-code-1107/88447/20 "2023-08-30T09:41:55Z")

</div>

I think you’ve got it, I added a new static IP on my server and had to force IPv4 in order to use it, so indirectly did exactly what you said.

Removing the new static IP but still forcing IPv4 connections fixes it too, looks like the IPv6 address is getting caught up for some reason.

I’ve updated the accepted solution to your post!
