Skip to content

Protocol support for batching? #1002

@AndreiVNita

Description

@AndreiVNita

Hello! We have a backend that's processing batches of events. While I was doing some debugging locally, I noticed that if the delivery strategy is set to batching, specifying the protocol as 'http' doesn't have any effect, and the calls are still sent through HTTPS.
Once I disabled batching, specifying the protocol as 'http' started working.

AnalyticsBrowser.load(
      {
        writeKey: 'VALUE_NOT_REQUIRED',
        cdnURL: baseUrl,
        cdnSettings: { integrations: {['Segment.io']: {}}},
      },
      {
        integrations: {
          'Segment.io': {
            apiHost: baseUrl,
            protocol: "http",
            deliveryStrategy: {
              strategy: "batching",
              config: {
                size: 10,
                timeout: 5000
              }
            },
            addBundledMetadata: false
          }
        }
      }
    );

Is this by design or can something be done here to allow batches to go through http?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions