You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

Lukag's avatar
Lukag
Collaborator | Level 8
2 months ago

The request was aborted: Could not create SSL/TLS secure channel.

The first time that i enter in my page i have this error "The request was aborted: Could not create SSL/TLS secure channel."

If i reload the page this don't appare and it works.

This is the code : 

Dim _command As String
_command = "https://www.dropbox.com/oauth2/authorize?client_id=" & _App_key 
_command += "&response_type=code"
_command += "&redirect_uri=https://xxxxxx.xxxxx.xx/Test.aspx"

 

Dim Request As HttpWebRequest
Request = HttpWebRequest.Create(_command)
Request.Method = "GET"
Request.KeepAlive = True
ServicePointManager.Expect100Continue = True
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 Or SecurityProtocolType.Tls11 Or SecurityProtocolType.Tls Or SecurityProtocolType.Ssl3

Request.ContentType = "application/x-www-form-urlencoded" '"application/json" ' application/x-www-form-urlencoded"
Request.AllowAutoRedirect = True
Dim Response As HttpWebResponse = Request.GetResponse()

 

Is anything about timeout ? 

Why if i reload the page this works ?  

Thank you

Luca

 

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    Based on the error message, your machine is having trouble establishing a secure connection to Dropbox. The Dropbox servers are being served with valid SSL/TLS configurations though, and I'm not aware of any current service disruptions that should be causing this. You may want to check if you have any firewall, proxy, VPN, anti-virus, or other security software, etc. that may be interfering with your connections.

     

    Regardless, I see you're attempting to load the contents of the www.dropbox.com/oauth2/authorize page programmatically though. That is a web page that should be loaded directly in the user's system web browser. You should not retrieve it via code. Please refer to the OAuth Guide for more information.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,882 PostsLatest Activity: 3 years ago
325 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!