"Could not send Message" error with Anonymous Apex

Issue #1112 resolved
Cary Freeman created an issue

I was able to successfully run some anonymous apex code against one connection. I changed to a different connection and received the error "Could not send Message". Received the same error against a third connection. All three connections test ok and otherwise work fine. The anonymous apex was 179 lines of code.

Comments (2)

  1. Scott Wells repo owner

    Here's the issue, Cary:

    Caused by: org.apache.cxf.transport.http.HTTPException: HTTP response '411: Length Required' when communicating with https://trade--eventtest.my.salesforce.com/services/Soap/s/43.0/00Dr00000001A4S
    

    In the connection settings there's a checkbox labeled Enable workaround for HTTP 411 issue. Just check that for these connections and you'll be good to go. I've still never gotten a good answer from Salesforce as to why/when an org decides that it needs chunked data vs. not.

  2. Log in to comment