URLConnection for Console Projects

I can get a basic API get with URLConnection and my test Desktop app, but I keep getting an exception error when I try to use URLConnection in a test console app. I can’t find anywhere about URLConnection only being for Desktop. Am I missing something?

Error: -1012
Msg: The operation couldn’t be completed. (NSURLErrorDomain error -1012.)

Off the top of my head, I think it’s this:
https://developer.apple.com/documentation/cfnetwork/cfnetworkerrors/kcfurlerrorusercancelledauthentication?language=objc

Which would indicate that the URL is requesting authorization but perhaps you haven’t implemented the event?

you may need to install the NSAppTransportSecurity using the info.plist file.
https://documentation.xojo.com/api/networking/urlconnection.html

[quote=450311:@Greg O’Lone]Off the top of my head, I think it’s this:
https://developer.apple.com/documentation/cfnetwork/cfnetworkerrors/kcfurlerrorusercancelledauthentication?language=objc

Which would indicate that the URL is requesting authorization but perhaps you haven’t implemented the event?[/quote]
Greg thank you as you were spot on. I switched over to Chilkat’s rest plugin and i was able to get more verbose error messages to help my token auth issue I was having. URLConnection just didn’t give me much in the form of error messaging.

Thanks Greg!