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
SForceBeWithYouSForceBeWithYou 

Error: SFDC_STACK_DEPTH is not a valid HTTP header name

I'm making a call to an external RESTful web service from Apex code via Http, HttpRequest, and HttpResponse classes.

 

Here is my response:

{"response":{"error_id":"SYSTEM","error":"SFDC_STACK_DEPTH is not a valid HTTP header name","error_description":null,"error_code":null,"service":"auth","method":"POST","dbg_info":{"instance":"11.hbapi.sand-08.nym1","slave_hit":false,"db":"master","awesomesauce_cache_used":false,"warnings":[],"time":18.586874008179,"start_microtime":1359518018.7667,"version":"1.13.12.3"}}}

 

It's obvious that it's not liking the request header:

SFDC_STACK_DEPTH: 1

 

 

Any way I can not include this in the request?  Can I change the HTTP version (1.1 instead?)

 

Thanks,

 

Nathan

Patrick AounPatrick Aoun
Hello,

I have the same problem. Have you a response for this problem ?

Thanks a lot.