# API connection problem (SSL version)

**URL:** <https://forums.ordoro.com/t/api-connection-problem-ssl-version/239>\
**Category:** Bug Reports\
**Created:** [May 23, 2018, 3:10pm UTC](https://forums.ordoro.com/t/api-connection-problem-ssl-version/239 "2018-05-23T15:10:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![IvanO](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/ivano/32/42_2.png) [@IvanO](https://forums.ordoro.com/u/IvanO)\
**Post date:** [May 23, 2018, 3:10pm UTC](https://forums.ordoro.com/t/api-connection-problem-ssl-version/239/1 "2018-05-23T15:10:28Z")

</div>

We are having API connection problem from today (May 23, 2018)

Issue: ALPN, server did not agree to a protocol

> **Details**
>
> - Trying 34.216.42.11…
> - TCP\_NODELAY set
> - Connected to [api.ordoro.com](http://api.ordoro.com) (34.216.42.11) port 443 (#0)
> - ALPN, offering http/1.1
> - Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
> - successfully set certificate verify locations:
> - CAfile: xampp\apache\bin\curl-ca-bundle.crt  
> CApath: none
> - SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
> - ALPN, server did not agree to a protocol
> - Server certificate:
> - subject: OU=Domain Control Validated; OU=EssentialSSL Wildcard; CN=\*.ordoro.com
> - start date: Jan 3 00:00:00 2018 GMT
> - expire date: Feb 2 23:59:59 2019 GMT
> - issuer: C=GB; ST=Greater Manchester; L=Salford; O=COMODO CA Limited; CN=COMODO RSA Domain Validation Secure Server CA
> - SSL certificate verify ok.
> 
> > POST /supplier HTTP/1.1  
> > Host: [api.ordoro.com](http://api.ordoro.com)  
> > User-Agent: GuzzleHttp/6.3.2 curl/7.54.1 PHP/7.1.7  
> > Content-Type: application/json  
> > Authorization: Secret  
> > Content-Length: 73
> 
> - upload completely sent off: 73 out of 73 bytes  
> \< HTTP/1.1 301 MOVED PERMANENTLY  
> \< cache-control: no-cache,max-age=0,must-revalidate  
> \< Content-Type: text/html; charset=utf-8  
> \< Date: Wed, 23 May 2018 15:00:36 GMT  
> \< Location: [http://api.ordoro.com/supplier/](http://api.ordoro.com/supplier/)  
> \< pragma: no-cache  
> \< Server: gunicorn/19.7.1  
> \< X-API-REQUEST-ID: 1d98f05f-ca33-4840-a79c-06a8698454ca  
> \< X-Ordoro-API-Server: i-052fccfce46c0a9ac 1.557.0  
> \< X-ORDORO-HANDLED-BY: ip-172-31-44-40  
> \< Content-Length: 269  
> \< Connection: keep-alive  
> \<
> - Connection #0 to host [api.ordoro.com](http://api.ordoro.com) left intact
> - Trying 34.216.42.11…
> - TCP\_NODELAY set
> - Connected to [api.ordoro.com](http://api.ordoro.com) (34.216.42.11) port 443 (#0)
> - ALPN, offering http/1.1
> - Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
> - successfully set certificate verify locations:
> - CAfile: xampp\apache\bin\curl-ca-bundle.crt  
> CApath: none
> - SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
> - ALPN, server did not agree to a protocol
> - Server certificate:
> - subject: OU=Domain Control Validated; OU=EssentialSSL Wildcard; CN=\*.ordoro.com
> - start date: Jan 3 00:00:00 2018 GMT
> - expire date: Feb 2 23:59:59 2019 GMT
> - issuer: C=GB; ST=Greater Manchester; L=Salford; O=COMODO CA Limited; CN=COMODO RSA Domain Validation Secure Server CA
> - SSL certificate verify ok.
> 
> > GET /product/?search=_8_\_ HTTP/1.1  
> > Host: [api.ordoro.com](http://api.ordoro.com)  
> > User-Agent: GuzzleHttp/6.3.2 curl/7.54.1 PHP/7.1.7  
> > Content-Type: application/json  
> > Authorization: Secret  
> > Content-Length: 2
> 
> - upload completely sent off: 2 out of 2 bytes  
> \< HTTP/1.1 200 OK  
> \< cache-control: no-cache,max-age=0,must-revalidate  
> \< Content-Type: application/json  
> \< Date: Wed, 23 May 2018 15:00:40 GMT  
> \< pragma: no-cache  
> \< Server: gunicorn/19.7.1  
> \< X-API-REQUEST-ID: 5ba9e2a1-3bca-4dfb-9ef8-330075f2f8d4  
> \< X-Ordoro-API-Server: i-0ff9c7919bcda0eca 1.557.0  
> \< X-ORDORO-HANDLED-BY: ip-172-31-11-157  
> \< Content-Length: 53  
> \< Connection: keep-alive  
> \<
> - Connection #0 to host [api.ordoro.com](http://api.ordoro.com) left intact

---

<div class="post-metadata">

**Author:** ![sophie](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/sophie/32/19_2.png) [@sophie](https://forums.ordoro.com/u/sophie)\
**Post date:** [May 25, 2018, 9:51pm UTC](https://forums.ordoro.com/t/api-connection-problem-ssl-version/239/2 "2018-05-25T21:51:46Z")

</div>

Hi @IvanO

Is this still an issue?

---

<div class="post-metadata">

**Author:** ![IvanO](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.ordoro.com/ivano/32/42_2.png) [@IvanO](https://forums.ordoro.com/u/IvanO)\
**Post date:** [June 26, 2018, 2:51pm UTC](https://forums.ordoro.com/t/api-connection-problem-ssl-version/239/3 "2018-06-26T14:51:24Z")

</div>

The issue was in backslash at the end of URL for API v2.

If there is no backslash at the end of URL, the server will redirect to the URL with.  
But also the redirect from HTTPS to HTTP.  
And on HTTP server will not respond.
