Skip to content

Invalid request headers due to machine name #847

@StevenJohnston

Description

@StevenJohnston

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions