On macOS my default machine name was Steven’s-MacBook-Pro This was causing split.io to emit SDK_READY_TIMED_OUT. I assume due to the ’ in the name.
What did not work was:
const config: INodeSettings = {
...
sync: {
requestOptions: {
getHeaderOverrides: (context) => {
context.headers.SplitSDKMachineName = 'StevensMacBookPro';
return context.headers;
},
},
},
...
}
What did work was:
- changing my machines name via
sudo scutil --set HostName "stevensmacbookpro"