Intermittent ERR_SSL_PROTOCOL_ERROR error for cross domain request

586 views
Skip to first unread message

Harry Lime via StackOverflow

unread,
Apr 27, 2015, 5:23:34 AM4/27/15
to google-appengin...@googlegroups.com

The users of my website are seeing intermittent ERR_SSL_PROTOCOL_ERROR when making cross domain requests to api.flickr.com

By intermittent I mean that I've seen this happen 4 times out of ~1200 requests to the api yesterday.

Failed to load resource: net::ERR_SSL_PROTOCOL_ERROR     https://api.flickr.com/services/rest/?method=flickr.photos.getInfo&api_key=.....

My site is and AngularJS application running on Google App Engine and is exclusivley avalable on HTTPS.

sslchecker shows that my site's certificate & certificate chain is installed correctly. Well, I think it looks ok!

sslchecker for api.flickr.com shows that ROOT 1 of the certificate chain is missing. Is that the problem? Is there any way around that for me?

Any other ideas? Is the problem that our certificates are issues by different authorities maybe?

Edit - Some other possibly relevant info gleaned from google analytics

  • Have seen it happen for different OSes - Android, iOS, Windows
  • Different browsers - Android, Chrome, Safari
  • Different Network Domains


Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/29891619/intermittent-err-ssl-protocol-error-error-for-cross-domain-request

Mekap via StackOverflow

unread,
Apr 29, 2015, 9:40:46 AM4/29/15
to google-appengin...@googlegroups.com

This might be the answer, but i'm guessing that this is probably not a client issue, so i would suggest you to update your api's server with that line added in the header :

Access-Control-Allow-Origin: https://api.flickr.com/*

This should fix the troubles some of your users are facing.



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/29891619/intermittent-err-ssl-protocol-error-error-for-cross-domain-request/29945346#29945346

Dave Alperovich via StackOverflow

unread,
May 1, 2015, 7:54:59 PM5/1/15
to google-appengin...@googlegroups.com

Persistent SSL Protocol Errors may be caused by problems like

  • the destination server expects a different protocol (e.g. SSLv1, SSLv2, SSLv3)

  • a violation of a security policy (e.g. some servers don't honor certificate requests made from client)

  • Firewall impedance filtering / ciphering

Intermittent SSL Protocol Errors are very hard to diagnose. They can be the result of expired session, expired key, connectivity hiccup, lost packets, etc

Even worse, they can be caused by Server Side issues like date-time sync, server connection pool full, etc.

Flickr switched their API to SSL-only on June 27th, 2014. In the past few months many users have reported (check thread) occasional SSL Protocol Errors.

These Protocol Errors have been reported across all device types (laptop, desktop, mobile, Linux, Windows, etc) and are singular (usually a re-try is successful). The commonality and highly infrequent nature of these problems indicates there is some issue on the host side completely unrelated to anything on the client.

Since a re-fresh or 2nd attempt is usually successful, I suggest trapping the error, and making 1-3 more attempts:

var promise = flickrService.get(...);

promise.success(function (data, status, headers, config) {
    // Big Party
}.
  error(function(data, status, headers, config) {

   if (status == 107) {
      promise = flickrService.get(...);

      promise.success(function (data, status, headers, config) {
         // Big Party
     }.
       error(function (data, status, headers, config) {
          AlertService.RaiseErrorAlert("Flickr temporarily unavailable.
           Please try again later");

        }

 }

If you continue to get a "Protocol Error", then inform the user that Flickr is temporarily unavailable and to try again later.

In this case, a real "SOLUTION" is not in your hands.



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/29891619/intermittent-err-ssl-protocol-error-error-for-cross-domain-request/29996698#29996698

Dave Alperovich via StackOverflow

unread,
May 1, 2015, 8:09:57 PM5/1/15
to google-appengin...@googlegroups.com

Persistent SSL Protocol Errors may be caused by problems like

  • the destination server expects a different protocol (e.g. SSLv1, SSLv2, SSLv3)

  • a violation of a security policy (e.g. some servers don't honor certificate requests made from client)

  • Firewall impedance filtering / ciphering

Intermittent SSL Protocol Errors are very hard to diagnose. They can be the result of expired session, expired key, connectivity hiccup, lost packets, etc

Even worse, they can be caused by Server Side issues like date-time sync, server connection pool full, etc.


Flickr switched their API to SSL-only on June 27th, 2014 (a little under a year). Their Forum has blown up with SSL related problems since then.

In the past few months many users have reported (check thread) sporadic SSL Protocol Errors.

These Protocol Errors appear across all device types (laptops, desktops, mobile, Linux, Windows, etc) and usually an immediate re-try is successful. The commonality and highly infrequent nature of these problems indicates there is some issue on the host side completely unrelated to anything on the client.

Since a re-fresh or 2nd attempt is usually successful, I suggest trapping the error, and making 1-3 more attempts:

var promise = flickrService.get(...);

promise.success(function (data, status, headers, config) {
    // Big Party
}.
  error(function(data, status, headers, config) {

   if (status == 107) {
      promise = flickrService.get(...);

      promise.success(function (data, status, headers, config) {
         // Big Party
     }.
       error(function (data, status, headers, config) {
          AlertService.RaiseErrorAlert("Flickr temporarily unavailable.
           Please try again later");

        }

 }

If you continue to get a "Protocol Error", then inform the user that Flickr is temporarily unavailable and to try again later.



Dave Alperovich via StackOverflow

unread,
May 4, 2015, 12:43:26 PM5/4/15
to google-appengin...@googlegroups.com

Persistent SSL Protocol Errors may be caused by problems like

  • the destination server expects a different protocol (e.g. SSLv1, SSLv2, SSLv3)

  • a violation of a security policy (e.g. some servers don't honor certificate requests made from client)

  • Firewall impedance filtering / ciphering

Intermittent SSL Protocol Errors are very hard to diagnose. They can be the result of expired session, expired key, connectivity hiccup, lost packets, etc

Even worse, they can be caused by Server Side issues like date-time sync, server connection pool full, etc.

Best practice is to re-send the request: because such issues are often a temporary glitch, and usually succeed at 2nd attempt.

Harry Lime via StackOverflow

unread,
May 5, 2015, 9:19:44 PM5/5/15
to google-appengin...@googlegroups.com

The users of my website are seeing intermittent ERR_SSL_PROTOCOL_ERROR when making cross domain requests to api.flickr.com

By intermittent I mean that I've seen this happen 4 times out of ~1200 requests to the api yesterday.

Failed to load resource: net::ERR_SSL_PROTOCOL_ERROR     https://api.flickr.com/services/rest/?method=flickr.photos.getInfo&api_key=.....

My site is and AngularJS application running on Google App Engine and is exclusivley avalable on HTTPS.

sslchecker shows that my site's certificate & certificate chain is installed correctly. Well, I think it looks ok!

sslchecker for api.flickr.com shows that ROOT 1 of the certificate chain is missing. Is that the problem? Is there any way around that for me?

Any other ideas? Is the problem that our certificates are issues by different authorities maybe?

Edit - Some other possibly relevant info gleaned from google analytics

  • Have seen it happen for different OSes - Android, iOS, Windows
  • Different browsers - Android, Chrome, Safari
  • Different Network Domains


Dave Alperovich via StackOverflow

unread,
May 5, 2015, 9:19:46 PM5/5/15
to google-appengin...@googlegroups.com

Persistent SSL Protocol Errors may be caused by problems like

  • the destination server expects a different protocol (e.g. SSLv1, SSLv2, SSLv3)

  • a violation of a security policy (e.g. some servers don't honor certificate requests made from client)

  • Firewall impedance filtering / ciphering


Intermittent SSL Protocol Errors are very hard to diagnose. They can be the result of expired session, expired key, connectivity hiccup, lost packets, etc

Even worse, they can be caused by Server Side issues like date-time sync, server connection pool full, etc.

Best practice is to re-send the request: because such issues are often a temporary glitch, and usually succeed at 2nd attempt.


Flickr switched their API to SSL-only on June 27th, 2014 (a little under a year). Their Forum has blown up with SSL related problems since then.

In the past few months many users have reported (check thread) sporadic SSL Protocol Errors.

These Protocol Errors appear across all device types (laptops, desktops, mobile, Linux, Windows, etc) and usually an immediate re-try is successful. The commonality and highly infrequent nature of these problems indicates there is some issue on the host side completely unrelated to anything on the client.

Since a re-fresh or 2nd attempt is usually successful, I suggest trapping the error, and making 1-3 more attempts:

var promise = flickrService.get(...);

promise.success(function (data, status, headers, config) {
        // Big Party
    })
    .error(function(data, status, headers, config) {
        if (status == 107) {
            promise = flickrService.get(...);

            promise.success(function (data, status, headers, config) {
                    // Big Party
                })
                .error(function (data, status, headers, config) {
                    AlertService.RaiseErrorAlert("Flickr temporarily unavailable.Please try again later");
                });
        }
    });

If you continue to get a "Protocol Error", then inform the user that Flickr is temporarily unavailable and to try again later.



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/29891619/intermittent-err-ssl-protocol-error-error-for-cross-domain-request/29996698#29996698
Reply all
Reply to author
Forward
0 new messages