We are trying to get Github copilot working with RStudio on Windows 11 desktop and we are failing on the ghost text. We are getting this message in the detailed log:
RESPONSE
{"jsonrpc":"2.0","method":"LogMessage","params":{"level":3,"message":"[ERROR] [ghostText] [2025-04-24T18:25:18.378Z] Error on ghost text request: (FetchError) The pending stream has been canceled (caused by: unable to get local issuer certificate)","metadataStr":"[ERROR] [ghostText] [2025-04-24T18:25:18.378Z]","extra":["Error on ghost text request: (FetchError) The pending stream has been canceled (caused by: unable to get local issuer certificate)"]}}
Note that VScode running R on the same workstation works fine so this is related to getting RStudio to recognize the certificates.
I have found several other issues related to this error and they end up setting environment variables pointing to a certificate bundle. We have tried those with no success.
Is there an environment variable specific to github?
What else can we try ?
This is working on linux and ubuntu servers, it is only the windows desktop with the certificate errors.
Thank you