function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
WorkaholicWorkaholic 

505 HTTP version not supported

Hi All
I am sending a http request from salesforce to appery.I am getting 
Status=HTTP Version Not Supported, StatusCode=505

The same url is working when i did a test on hurl.it.Please help

http request:  https://api.appery.io/rest/1/db/collections/Locations?where={shift_id:{ $eq: "553de5b333b01887fd86e41c" }}
PratikPratik (Salesforce Developers) 
Hi,

Please check if this helps:
https://success.salesforce.com/answers?id=90630000000gwVKAAY

Thanks,
Pratik
WorkaholicWorkaholic
Hi Prathik

I already checked it and tried as mentioned in the link like removing spaces and stuff but still i am getting the same issue.But the same request is working in hurl.
Sagar PareekSagar Pareek
This status code is returned when the HTTP version indicated in the request is not supported. The response should indicate which HTTP versions are supported.Can you post the callout code here. What version of HTTP you are using?
WorkaholicWorkaholic
I am no where mentioning http version in my callouts.Do i have to mention it.If yes can you give me an example.

 HttpRequest req1 = new HttpRequest();
        req1.setEndpoint('https://api.appery.io/rest/1/db/collections/Locations?where={shift_id:{ $eq: "553de5b9e4b01887fd86e41c" }}');
        req1.setMethod('GET');
          req1.setHeader('Authorization', authorizationHeader1);
        system.debug('....'+authorizationHeader1);
        req1.setHeader('X-Appery-Database-Id','54a42b32e4b08ad5d670e676');


This is my post can you advice me how to mention http version here