# Sequoia URLConnection errors for first few requests

**URL:** <https://forum.xojo.com/t/sequoia-urlconnection-errors-for-first-few-requests/82700>\
**Category:** macOS\
**Created:** [October 3, 2024, 11:33am UTC](https://forum.xojo.com/t/sequoia-urlconnection-errors-for-first-few-requests/82700 "2024-10-03T11:33:40Z")\
**Posts on this page:** 17\
**Page:** 2

<div class="post-metadata">

**Author:** ![Mike\_D](https://forum.xojo.com/user_avatar/forum.xojo.com/mike_d/32/266_2.png) [@Mike\_D](https://forum.xojo.com/u/Mike_D)\
**Post date:** [October 18, 2024, 1:52pm UTC](https://forum.xojo.com/t/sequoia-urlconnection-errors-for-first-few-requests/82700/21 "2024-10-18T13:52:41Z")

</div>

Anyone testing this on the 15.1 beta channel? (Uncharacteristically of Apple, they were running simultaneous betas on 15.0 and 15.1). One imagines 15.1 shall be out soon.

---

<div class="post-metadata">

**Author:** ![Beatrix\_Willius](https://forum.xojo.com/user_avatar/forum.xojo.com/beatrix_willius/32/282_2.png) [@Beatrix\_Willius](https://forum.xojo.com/u/Beatrix_Willius)\
**Post date:** [October 18, 2024, 1:57pm UTC](https://forum.xojo.com/t/sequoia-urlconnection-errors-for-first-few-requests/82700/22 "2024-10-18T13:57:01Z")

</div>

Give me something to test and I can run a test. But so far I haven’t seen any problems with my mostly IMAP and SMTP connections.

---

<div class="post-metadata">

**Author:** ![Rick\_Araujo](https://forum.xojo.com/user_avatar/forum.xojo.com/rick_araujo/32/251_2.png) [@Rick\_Araujo](https://forum.xojo.com/u/Rick_Araujo)\
**Post date:** [October 19, 2024, 11:45pm UTC](https://forum.xojo.com/t/sequoia-urlconnection-errors-for-first-few-requests/82700/23 "2024-10-19T23:45:29Z")

</div>

> [@Mike\_D](#):
>
> 15.1 shall be out soon

Next week. Max Oct, 28.

---

<div class="post-metadata">

**Author:** ![foof\_foof](https://forum.xojo.com/letter_avatar_proxy/v4/letter/f/e9c0ed/32.png) [@foof\_foof](https://forum.xojo.com/u/foof_foof)\
**Post date:** [October 29, 2024, 2:59pm UTC](https://forum.xojo.com/t/sequoia-urlconnection-errors-for-first-few-requests/82700/24 "2024-10-29T14:59:04Z")

</div>

Setup a mysql server on another computer on your **local** network.

Try to connect to it using the commands found in any example (db.connect). It will fail unless you db.connect, Thread.SleepCurrent(100), then db.connect again.

I have a dozen apps that use mysql and all of them fail on 15.0.1, whether compiled or run in the debugger.

It could be the local network part that’s the problem. Looks like Apple doesn’t want apps talking to each other locally. I found the same connection problems using MS Remote Desktop. Have to constantly toggle the app in Privacy\>Local Network Access to get it to connect.

Haven’t tried 15.1 as I just went through all the trouble to roll back to 14.

---

<div class="post-metadata">

**Author:** ![Greg\_O](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o/32/22785_2.png) [@Greg\_O](https://forum.xojo.com/u/Greg_O)\
**Post date:** [October 30, 2024, 12:40am UTC](https://forum.xojo.com/t/sequoia-urlconnection-errors-for-first-few-requests/82700/25 "2024-10-30T00:40:50Z")

</div>

I’d like to point out that since using 24r3 and 3.1, I’ve been the same startup issues with URLConnection on macOS 14 as well. The problem is definitely worse in 15, but definitely present in 14 for the first 2 or 3 seconds of app runtime.

---

<div class="post-metadata">

**Author:** ![Rick\_Araujo](https://forum.xojo.com/user_avatar/forum.xojo.com/rick_araujo/32/251_2.png) [@Rick\_Araujo](https://forum.xojo.com/u/Rick_Araujo)\
**Post date:** [October 30, 2024, 5:46am UTC](https://forum.xojo.com/t/sequoia-urlconnection-errors-for-first-few-requests/82700/26 "2024-10-30T05:46:41Z")

</div>

So, you mean that URLConnection from 24r2 on Sequoia works ok, but from 24r3.x is flaky?

---

<div class="post-metadata">

**Author:** ![Greg\_O](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o/32/22785_2.png) [@Greg\_O](https://forum.xojo.com/u/Greg_O)\
**Post date:** [October 30, 2024, 10:15am UTC](https://forum.xojo.com/t/sequoia-urlconnection-errors-for-first-few-requests/82700/27 "2024-10-30T10:15:04Z")

</div>

I’m saying that URLConnection from 24r2 works properly on **Sonoma** and from 24r3.1 it does not.

---

<div class="post-metadata">

**Author:** ![Rick\_Araujo](https://forum.xojo.com/user_avatar/forum.xojo.com/rick_araujo/32/251_2.png) [@Rick\_Araujo](https://forum.xojo.com/u/Rick_Araujo)\
**Post date:** [October 30, 2024, 12:06pm UTC](https://forum.xojo.com/t/sequoia-urlconnection-errors-for-first-few-requests/82700/28 "2024-10-30T12:06:41Z")

</div>

Anyway, that isolates the URLConnection problem to Xojo, not the OS. The 24r3.x seems compromised.  
Also, there are reports of MySQL flaws too, but seems only on R3.1, not on R3.  
Weird how small patches fixing few things introduces new bugs in Xojo. I was expecting R3.1 as a R3, but better, but it isn’t.

---

<div class="post-metadata">

**Author:** ![Thom\_McGrath](https://forum.xojo.com/user_avatar/forum.xojo.com/thom_mcgrath/32/192_2.png) [@Thom\_McGrath](https://forum.xojo.com/u/Thom_McGrath)\
**Post date:** [October 30, 2024, 12:49pm UTC](https://forum.xojo.com/t/sequoia-urlconnection-errors-for-first-few-requests/82700/29 "2024-10-30T12:49:45Z")

</div>

I’m not convinced. I’ve had LOTS of networking problems. I couldn’t even finish a large transfer from my NAS (in Finder) until I turned off my firewall. And my connection issues still happen in 2023r4.

---

<div class="post-metadata">

**Author:** ![Anthony\_Dellos](https://forum.xojo.com/user_avatar/forum.xojo.com/anthony_dellos/32/208_2.png) [@Anthony\_Dellos](https://forum.xojo.com/u/Anthony_Dellos)\
**Post date:** [October 30, 2024, 12:55pm UTC](https://forum.xojo.com/t/sequoia-urlconnection-errors-for-first-few-requests/82700/30 "2024-10-30T12:55:44Z")

</div>

Is there a case for this? (I looked and didn’t see one)

I _think_ here:

> [@Rick\_Araujo](#):
>
> Also, there are reports of MySQL flaws too, but seems only on R3.1, not on R3.

Rick is referring to an issue I was having with in 2024r3.1 with MySQL.

I put in a case of the MySQL bug and it’s marked as fixed and scheduled for 2024r4:

[https://tracker.xojo.com/xojoinc/xojo/-/issues/77712](https://tracker.xojo.com/xojoinc/xojo/-/issues/77712)

---

<div class="post-metadata">

**Author:** ![Rick\_Araujo](https://forum.xojo.com/user_avatar/forum.xojo.com/rick_araujo/32/251_2.png) [@Rick\_Araujo](https://forum.xojo.com/u/Rick_Araujo)\
**Post date:** [October 30, 2024, 1:52pm UTC](https://forum.xojo.com/t/sequoia-urlconnection-errors-for-first-few-requests/82700/31 "2024-10-30T13:52:06Z")

</div>

> [@Anthony\_Dellos](#):
>
> Is there a case for this?

I think no one created a sample and reported one.  
Would be great if someone could make one.

The closest to the subject (URLConnection) was closed by the bot as “not replied in 2 weeks”, but it was about another weird thing, uncatchable exceptions.  
[https://tracker.xojo.com/xojoinc/xojo/-/issues/77586](https://tracker.xojo.com/xojoinc/xojo/-/issues/77586)

---

<div class="post-metadata">

**Author:** ![Anthony\_Dellos](https://forum.xojo.com/user_avatar/forum.xojo.com/anthony_dellos/32/208_2.png) [@Anthony\_Dellos](https://forum.xojo.com/u/Anthony_Dellos)\
**Post date:** [October 30, 2024, 2:15pm UTC](https://forum.xojo.com/t/sequoia-urlconnection-errors-for-first-few-requests/82700/32 "2024-10-30T14:15:59Z")

</div>

@Rick_Araujo Agreed. (it would be great if someone who had a sense of the issue could make a case)

@Greg_O - seems like you _might_ have an inkling of what’s going on? (especially given your deeper knowledge of the inner working of Xojo).

> [@Greg\_O](#):
>
> I’m saying that URLConnection from 24r2 works properly on **Sonoma** and from 24r3.1 it does not.

Do you think you have enough info to put together a decent case?

---

<div class="post-metadata">

**Author:** ![Greg\_O](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o/32/22785_2.png) [@Greg\_O](https://forum.xojo.com/u/Greg_O)\
**Post date:** [October 31, 2024, 3:38am UTC](https://forum.xojo.com/t/sequoia-urlconnection-errors-for-first-few-requests/82700/33 "2024-10-31T03:38:53Z")

</div>

> [@Anthony\_Dellos](#):
>
> seems like you _might_ have an inkling of what’s going on? (especially given your deeper knowledge of the inner working of Xojo).

Wish I did. I think I could easily reproduce it though and that might be enough. I’m beginning to believe that _signed apps_ are taking longer to finish launching than unsigned ones do though. That would be explain why it seems so intermittent to me. I sign most but not all things.

---

<div class="post-metadata">

**Author:** ![Thom\_McGrath](https://forum.xojo.com/user_avatar/forum.xojo.com/thom_mcgrath/32/192_2.png) [@Thom\_McGrath](https://forum.xojo.com/u/Thom_McGrath)\
**Post date:** [October 31, 2024, 3:49am UTC](https://forum.xojo.com/t/sequoia-urlconnection-errors-for-first-few-requests/82700/34 "2024-10-31T03:49:49Z")

</div>

I haven’t done extensive testing, but I _think_ I’m not seeing it on 15.1.

---

<div class="post-metadata">

**Author:** ![Greg\_O](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o/32/22785_2.png) [@Greg\_O](https://forum.xojo.com/u/Greg_O)\
**Post date:** [October 31, 2024, 4:18am UTC](https://forum.xojo.com/t/sequoia-urlconnection-errors-for-first-few-requests/82700/35 "2024-10-31T04:18:38Z")

</div>

Unfortunately I am seeing it on my M1 under 15.1 for my recent development of APT. My solution was to introduce an artificial 3 second delay before the first socket is created.

---

<div class="post-metadata">

**Author:** ![Rick\_Araujo](https://forum.xojo.com/user_avatar/forum.xojo.com/rick_araujo/32/251_2.png) [@Rick\_Araujo](https://forum.xojo.com/u/Rick_Araujo)\
**Post date:** [October 31, 2024, 5:12am UTC](https://forum.xojo.com/t/sequoia-urlconnection-errors-for-first-few-requests/82700/36 "2024-10-31T05:12:38Z")

</div>

> [@Thom\_McGrath](#):
>
> I _think_ I’m not seeing it on 15.1

> [@Greg\_O](#):
>
> URLConnection from 24r2 works properly on **Sonoma** and from 24r3.1 it does not.

That puts the problem on the Xojo 24r3.x field, not the OS.

If I’m not mistaken, one difference introduced by R3.x, maybe involved, were some sleep(n) inconsistencies. Like r3 having n = 999 acting like n = 1, and R3.1 “fixed” it, but not, just changed the behavior, and it maybe introduced extra problems in some other place now sleeping inconsistently.

[https://tracker.xojo.com/xojoinc/xojo/-/issues/77567](https://tracker.xojo.com/xojoinc/xojo/-/issues/77567)

[https://tracker.xojo.com/xojoinc/xojo/-/issues/77691](https://tracker.xojo.com/xojoinc/xojo/-/issues/77691)

A test case is necessary to avoid the problem (and maybe others correlated but not detected yet) slipping into the R4.

---

<div class="post-metadata">

**Author:** ![Joe\_Huber](https://forum.xojo.com/user_avatar/forum.xojo.com/joe_huber/32/475_2.png) [@Joe\_Huber](https://forum.xojo.com/u/Joe_Huber)\
**Post date:** [September 27, 2026, 3:15am UTC](https://forum.xojo.com/t/sequoia-urlconnection-errors-for-first-few-requests/82700/37 "2026-09-27T03:15:50Z")

</div>

FYI I’m having similar problems and since it’s 2 years later I thought it better to start a new thread here. [urlconnection-1009-errors-for-local-connections](https://forum.xojo.com/t/urlconnection-1009-errors-for-local-connections/88937)

[Previous page](https://forum.xojo.com/t/sequoia-urlconnection-errors-for-first-few-requests/82700.md?page=1)
