Error trying to contact resources on Posit Connect from local workstation

I am having two issues that I think are related. I have a plumber API deployed to Posit Connect that works fine when I test it using the Swagger UI, but when I try to hit the API locally using Curl, I get the following error:

curl -X GET "https://<my app URL>/content/1276dd5b-f16d-4cb2-a40f-48c714db31fa/spline?xs=1%2C%202%2C%203%2C%204&ys=0.5%2C%200.7%2C%202%2C%204.1&at=1.8" -H "accept: application/json
curl: (35) schannel: next InitializeSecurityContext failed: SEC_E_UNSUPPORTED_FUNCTION (0x80090302) - The function requested is not supported

On a related note, when I try to deploy shiny apps to Posit Connect from my local machine, I get the following error (some identifying data redacted):

Set RETICULATE_PYTHON_FALLBACK = "C:/Anaconda3/python.exe"
[2023-08-30 11:20:23] Deployment log started
Deploy command: 
 rsconnect::deployApp(appDir = "~/Work/Sandbox/local_rsconnect_deploy",      appFileManifest = "C:/Users/maa98/AppData/Local/Temp/d94b-b9e5-86bd-0f42",      account = "MAA98", server = "rhlrconnectp01.mmacct.root.mds",      appName = "local_rsconnect_deploy", appTitle = "local_rsconnect_deploy",      launch.browser = function(url) {         message("Deployment completed: ", url)     }, lint = FALSE, metadata = list(asMultiple = FALSE, asStatic = FALSE),      logLevel = "verbose") 

Session information: 
R version 4.1.3 (2022-03-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252 
[2] LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_4.1.3    cli_3.6.1         rsconnect_1.0.2   tools_4.1.3      
[5] rstudioapi_0.15.0 lifecycle_1.0.3   rlang_1.1.1      
-- Preparing for deployment ----------------------------------------------------
----- Deployment error -----
Error in curl::curl_fetch_memory(url, handle = handle) : 
  schannel: next InitializeSecurityContext failed: SEC_E_UNSUPPORTED_FUNCTION (0x80090302) - The function requested is not supported
Calls: <Anonymous> ... listApplicationsRequest -> GET -> httpRequest -> http -> <Anonymous>
 
----- Error stack trace -----
10: rsconnect::deployApp(appDir = "~/Work/Sandbox/local_rsconnect_deploy", 
        appFileManifest = "C:/Users/maa98/AppData/Local/Temp/d94b-b9e5-86bd-0f42", 
        account = "MAA98", server = <enterprise server name>, 
     ...
9: deploymentTarget(recordPath = recordPath, appId = appId, appName = appName, 
       appTitle = appTitle, envVars = envVars, account = account, 
       server = server, forceUpdate = forceUpdate)
8: applications(fullAccount$name, fullAccount$server)
7: client$listApplications(accountDetails$accountId)
6: listApplicationsRequest(service, authInfo, path, query, "applications")
5: GET(service, authInfo, path, queryWithList)
4: httpRequest(service, authInfo, "GET", path, query, headers, timeout)
3: http(protocol = service$protocol, host = service$host, port = service$port, 
       method = method, path = path, headers = headers, timeout = timeout, 
       certificate = certificate)
2: curl::curl_fetch_memory(url, handle = handle)
1: (function (e) 
   {
       cat("----- Deployment error -----\n")
    ...
Error in curl::curl_fetch_memory(url, handle = handle) : 
  schannel: next InitializeSecurityContext failed: SEC_E_UNSUPPORTED_FUNCTION (0x80090302) - The function requested is not supported
Calls: <Anonymous> ... listApplicationsRequest -> GET -> httpRequest -> http -> <Anonymous>
Execution halted

So, how do I resolve these issues? Is this something my admin needs to take care of?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.