Sekoree
Sekoree
CC#
Created by Sekoree on 6/21/2024 in #help
Every HttpClient request has a 5 second delay before execution
Also while being there I could replicate it on my PC, so this is where this is from
29 replies
CC#
Created by Sekoree on 6/21/2024 in #help
Every HttpClient request has a 5 second delay before execution
I'm still insanely confused by this, for the time being I just switched to calling cURL. I made a mini program that just created a HttpClient and then called the URL, same result Ran it through dotTrace but all I can I see it that it waiting 4.2 seconds on a Montor.Wait internally. Maybe its really just BitFocus Companion's way of how it uses Node's Express or something, I'll try with a local instance soon, but its really weird how every other way works fine, except the call from my code
29 replies
CC#
Created by Sekoree on 6/21/2024 in #help
Every HttpClient request has a 5 second delay before execution
That’s the plan
29 replies
CC#
Created by Sekoree on 6/21/2024 in #help
Every HttpClient request has a 5 second delay before execution
Maybe something on the windows side gets tripped up as well, maybe it’s AOT but it’s all just guesswork and it’s probably just something incredibly simple
29 replies
CC#
Created by Sekoree on 6/21/2024 in #help
Every HttpClient request has a 5 second delay before execution
I tried both true/default and false, always the same. It’s was really just a desperation effort to add that. When I’m there and have time I’ll see if I can profile a bit, also I made a second Test version that uses Commands instead of directly binding to the method, maybe that helps
29 replies
CC#
Created by Sekoree on 6/21/2024 in #help
Every HttpClient request has a 5 second delay before execution
I'm not at the machine until a few hours, but someone there will try it in a bit
29 replies
CC#
Created by Sekoree on 6/21/2024 in #help
Every HttpClient request has a 5 second delay before execution
29 replies
CC#
Created by Sekoree on 6/21/2024 in #help
Every HttpClient request has a 5 second delay before execution
https://github.com/Sekoree/ButtonGridder https://github.com/Sekoree/ButtonGridder/blob/3ca5d1d2f847b589b2ad87d6b59429df27ba76c1/ButtonGridder/Models/TriggerButtonModel.cs#L150 Parts a very ugly because time, should've been finished today I'll try with a empty Ava app that just has a button that uses that code
29 replies
CC#
Created by Sekoree on 6/21/2024 in #help
Every HttpClient request has a 5 second delay before execution
Yea one sec
29 replies
CC#
Created by Sekoree on 6/21/2024 in #help
Every HttpClient request has a 5 second delay before execution
I was just desperate at that point, with or without, its the same
29 replies
CC#
Created by Sekoree on 6/21/2024 in #help
Every HttpClient request has a 5 second delay before execution
They previously used a simple HTML page with a JS fetch that didn't have this issue, so i doubt its that The server is a whatever "Bitfocus Companion" uses, probably just node express
29 replies
CC#
Created by Sekoree on 6/21/2024 in #help
Every HttpClient request has a 5 second delay before execution
I guess to add, my dev machine is running Win11 23H2 and the target is running some version of Win10
29 replies
CC#
Created by Sekoree on 6/21/2024 in #help
Every HttpClient request has a 5 second delay before execution
This is an earlier try that is essentially the same as the code screenshot just without the CWs + console window
29 replies
CC#
Created by Sekoree on 6/21/2024 in #help
Every HttpClient request has a 5 second delay before execution
No description
29 replies
CC#
Created by Sekoree on 6/21/2024 in #help
Every HttpClient request has a 5 second delay before execution
Here is a Video of what's happening , the really weird part is, from the response times everything seems fine. But the request doesn't actually go out hence the low time measures, it sort of does everything, then waits 5 second and actually everything happens including the UI Update
29 replies
CC#
Created by Sekoree on 5/31/2024 in #help
✅ Trimming/NativeAOT preserve specific constructor(s) in ClassLibrary
Thank you so much! I think in my desperation I didn't quite enable the trimming warnings/analyzers right. Also didn't know I could put Attributes in front of the T. I currently went back to having a static Create method on the IManagerComponent interface (that I literally just committed lol), but I'm not that happy about it. Thanks again for the help, I'll play around with it a bit
13 replies
CC#
Created by Sekoree on 8/23/2023 in #help
✅ P/Invoke, changing values in a struct overwrites overwrites other values
It worked woohfast and yea, I just used nint/IntPtr now cause thats what the Marshal class gives me Thank you so much for your help!
18 replies
CC#
Created by Sekoree on 8/23/2023 in #help
✅ P/Invoke, changing values in a struct overwrites overwrites other values
Ah hecc, thank you, is there any specific reason it has to be an unsigned one? Or are there any docs I could read about it?
18 replies