WaelHamze / dyn365-ce-vsts-tasks

VSTS Extension for Dynamics 365 Customer Engagement
https://marketplace.visualstudio.com/items?itemName=WaelHamze.xrm-ci-framework-build-tasks
GNU General Public License v3.0
115 stars 54 forks source link

Connection failure - Unable to connect to CRM: Need a non-empty authority #294

Open jmonce opened 10 months ago

jmonce commented 10 months ago

When connecting to my Dynamics 365 CE environment using ClientId/Secret, I sometimes encountered errors that seemed to occur at random, always with the following error message:

##[warning]One or more errors occurred. => An error occurred while sending the request. => Unable to connect to the remote server => A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond xx.xxx.xx.xx:443ERROR REQUESTING Token FROM THE Authentication context ERROR REQUESTING Token FROM THE Authentication contextNeed a non-empty authority Parameter name: AuthorityUnable to connect to CRM: Need a non-empty authority Parameter name: Authority Need a non-empty authority Parameter name: AuthorityUnable to Login to Dynamics CRM Unable to Login to Dynamics CRM tasklog.log

I used to restart the process a few times and it always ended up working. But since yesterday, I can't connect at all. All the tasks fail.

Do you have any idea where this could be coming from? Is it possible to force a TLS 1.2 connection only?