Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protocol support for batching? #1002

Open
AndreiVNita opened this issue Nov 23, 2023 · 0 comments
Open

Protocol support for batching? #1002

AndreiVNita opened this issue Nov 23, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@AndreiVNita
Copy link

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?

@silesky silesky added the bug Something isn't working label Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants