Datasource: HTTP Event Stream

Use HTTP Event Stream for long-lived HTTP connections that continuously produce events.

This datasource automatically handles reconnect logic and message decoding for JSON, XML, and plain text streams.


Best Use Cases

  • Camera alert streams
  • Continuous event feeds from gateways
  • Real-time external system notifications over persistent HTTP

Configuration Fields

FieldRequiredTypeDefaultPurpose
urlYesstring-Stream endpoint URL
authTypeNoselectnoneAuth mode: none, basic, digest, token
usernameConditionalstring-Required when auth is basic or digest
passwordConditionalpassword-Required when auth is basic or digest
tokenConditionalstring-Required when auth is token
timeoutNonumber30Connection timeout (seconds)
reconnectDelayNonumber5Initial reconnect delay (seconds)
maxReconnectDelayNonumber60Reconnect backoff ceiling (seconds)
encodingNostringutf-8Stream text encoding
maxBufferSizeNonumber10000Maximum buffered lines
keepRawMessageNobooleanfalseInclude unparsed raw line payload

How to Configure Correctly

  1. Select HTTP Event Stream datasource type.
  2. Set url to the stream endpoint.
  3. Choose authType and complete dependent fields.
  4. Set timeout and reconnect values for network stability.
  5. Use keepRawMessage=true only when debugging parsing behavior.
  6. Connect datasource to workflow and validate stream events.

Example Config (Digest Auth)

{
  "url": "http://camera-ip/ISAPI/Event/notification/alertStream",
  "authType": "digest",
  "username": "admin",
  "password": "<secret>",
  "timeout": 30,
  "reconnectDelay": 5,
  "maxReconnectDelay": 60,
  "encoding": "utf-8",
  "maxBufferSize": 10000,
  "keepRawMessage": false
}

Reliability Notes

  • Prefer exponential reconnect windows to avoid connection storms.
  • Keep buffer size aligned with expected event volume.
  • Validate event schema before heavy downstream processing.

Common Problems

  • Frequent reconnects: unstable network or timeout too low
  • Auth failures: wrong auth mode or invalid credentials
  • Parsing issues: mismatched encoding or malformed stream lines

Related Pages

  • Continue with Datasource - Webhook for push-style HTTP integration.
  • Continue with Workflows for validation and fallback branch design.