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

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 help

http request:{shift_id:{ $eq: "553de5b333b01887fd86e41c" }}
PratikPratik (Salesforce Developers) 

Please check if this helps:

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?
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('{shift_id:{ $eq: "553de5b9e4b01887fd86e41c" }}');
          req1.setHeader('Authorization', authorizationHeader1);

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