5 Replies Latest reply on Oct 10, 2017 10:32 AM by paule12345

    Using cfhttp with unsplash api is showing a “Received fatal alert: protocol version” error message

    partTimeCrazy Level 1

      I am connecting to the unsplash api (it allows free images to be used in websites) and the problem is that up until today everything was working fine. The user would enter a keyword and it was then sent using the following code:

      <cfhttp url="https://api.unsplash.com/search/photos" method="get" result="fetchSplash"> <cfhttpparam type="url" name="client_id" value="xxx"> <cfhttpparam type="url" name="query" value="#url.unsplashme#"> <cfhttpparam type="url" name="page" value="1"> <cfhttpparam type="url" name="per_page" value="20"> </cfhttp>

      JSON was being sent back with image information without any problems but now I get the following error:

      error.jpg

      I'm at a loss as to what the problem could be as nothing has changed on our server and if I test their url like this in a browser I get results ((ID number has been removed):

      https://api.unsplash.com/search/photos?client_id=xxx&page=1&query=office

      Any help appreciated!