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
zgcharley_09zgcharley_09 

Get http 411 error after enabling "Stabilize the Hostname for My Domain URLs in Sandboxes"

The critical update "Stabilize the Hostname for My Domain URLs in Sandboxes" seems indroduce defect af SF server side.  If I enabled this,  there will be 411 error when getting objects list by REST API. 

If disabled this feature, then i can get objects correctly.

Is this a bug af Salesforce side? I'm using Sandbox env. 
Raj VakatiRaj Vakati
It might be an issue with your endpoint URL ..  becasue if you enable this it will remove the instance name in the URI of rest end point .. please check that 


This critical update removes instance names from URLs. Prior to Summer ’18, My Domain URLs in sandboxes included the instance name of the org. After this update, My Domain URLs for sandboxes exclude instance names.

 
zgcharley_09zgcharley_09
The instance url i believe is correct since it is the one in OAuth result. 
Raj VakatiRaj Vakati
Can you give me your code for HTTP calls ??? 
zgcharley_09zgcharley_09
@raj vakati,

Found an issue at our side, during the call, "content-length" header is unexcepted set for GET request. By removing that, it works fine. 

But still can't explain why the error emerged only after enabling "Stabilize the Hostname for My Domain URLs in Sandboxes"  feature.