How to add sid to a Bosh xmpp connection?

I’m having trouble connection to my bosh server, it says it needs “sid”:

org.igniterealtime.jbosh.BOSHException: Connection Manager session creation response did not include required ‘sid’ attribute

this is how I’m trying to connect / login:

>         BOSHConfiguration.Builder configBuilder = BOSHConfiguration.builder(); configBuilder.setUsernameAndPassword(USERNAME, PASSWORD); configBuilder.setHost(HOST); configBuilder.setPort(PORT); configBuilder.setFile(FILE_PATH); configBuilder.setUseHttps(true); configBuilder.setServiceName(SERVICE);
        AbstractXMPPConnection connection = new XMPPBOSHConnection(configBuilder.build());

try { connection.connect(); } catch (SmackException e) {