echoing-rain-18959
04/13/2023, 1:01 PMmillions-activity-52391
04/13/2023, 1:01 PMgentle-petabyte-80785
04/13/2023, 1:20 PMechoing-rain-18959
04/13/2023, 1:23 PMquiet-wolf-72320
04/13/2023, 2:03 PMechoing-rain-18959
04/14/2023, 6:08 AManalytics.track(
:user_id => 'USER-1',
:event => 'Item Sold',
:properties => { :revenue => 9.95, :shipping => 'Free' }
)
The event is successfully dispatched.
[rudderanalytics-ruby] Sending request for 1 items
[rudderanalytics-ruby] Response status code: 200
[rudderanalytics-ruby] Response error: OK
In Rudderstack I tried 2 different setups and I got the following results in live events mode:
• Source + 1 destination (http dump)
◦ Source: 0 events
Destination (http dump): 1 event with error
• Source + 2 destinations (http dump, pipedream)
◦ Source: 0 events
◦ Destination 1 (http dump): 1 event with error
◦ Destination 2 (pipedream): 1 event with error
I tried dispatching the track event several times and the results in live mode were inconsistent:
• Source: Event was never visible.
• Destinations: Event was visible sometimes, but not always. Sometimes it was only visible in 1 destination.
In event ingestion/delivery view all events are logged.
The error was always the same which makes me believe that it was not caused by the destination as they are 2 different services. The actual webhook destinations never recieved any hits.
{
"error": "Message type is not present. Aborting message.: Workflow: procWorkflow, Step: validateInput, ChildStep: undefined, OriginalError: Message type is not present. Aborting message."
}
Below is the payload of the event
{
"json_size": 348,
"max_message_count": 100,
"messageId": "2fbb7124-eeb9-4474-b5bb-5e789df65b42",
"messages": [
{
"channel": "server",
"context": {
"library": {
"name": "rudderanalytics-ruby",
"version": "2.0.1"
}
},
"event": "Item Sold",
"integrations": {
"All": true
},
"messageId": "36e8379c-cfe2-49d1-9878-9ee762a9e42e",
"properties": {
"revenue": 9.95,
"shipping": "Free"
},
"sentAt": "2023-04-14T05:46:53.178Z",
"timestamp": "2023-04-14T05:46:53.178Z",
"type": "track",
"userId": "USER-1"
}
],
"originalTimestamp": "2023-04-14T05:46:55.062Z",
"receivedAt": "2023-04-14T05:46:53.775Z",
"request_ip": "146.212.67.110",
"rudderId": "853ae90f-0351-424b-973e-a615e6487517",
"sentAt": "2023-04-14T05:46:55.062Z",
"timestamp": "2023-04-14T05:46:53.774Z"
}quiet-wolf-72320
04/14/2023, 3:11 PMechoing-rain-18959
04/14/2023, 3:55 PManalytics = Rudder::Analytics.new(
write_key: ENV['WRITE_KEY'],
data_plane_url: ENV['DATA_PLANE_URL'],
on_error: proc { |error_code, error_body, exception, response| }
)
analytics.identify(
:user_id => '1hKOmRA4GRlm',
:traits => { :email => "alex@example.com", :friends => 1 },
:context => {:ip => '10.81.20.10'}
)
analytics.track(
:user_id => '1hKOmRA4GRlm',
:event => 'Item Sold',
:properties => { :revenue => 9.95, :shipping => 'Free' }
)
Here are the results from destination live view.
{
"json_size": 408,
"max_message_count": 100,
"messageId": "3a9d8b02-c84c-4bd9-b12c-fc83f121e351",
"messages": [
{
"channel": "server",
"context": {
"ip": "10.81.20.10",
"library": {
"name": "rudderanalytics-ruby",
"version": "2.0.1"
},
"traits": {
"email": "alex@example.com",
"friends": 1
}
},
"integrations": {
"All": true
},
"messageId": "44ea7968-9056-46ce-b6a6-59f783cac085",
"sentAt": "2023-04-14T15:32:24.752Z",
"timestamp": "2023-04-14T15:32:24.752Z",
"traits": {
"email": "alex@example.com",
"friends": 1
},
"type": "identify",
"userId": "1hKOmRA4GRlm"
}
],
"originalTimestamp": "2023-04-14T15:32:25.984Z",
"receivedAt": "2023-04-14T15:32:25.248Z",
"request_ip": "146.212.67.110",
"rudderId": "853ae90f-0351-424b-973e-a615e6487517",
"sentAt": "2023-04-14T15:32:25.984Z",
"timestamp": "2023-04-14T15:32:25.247Z"
}
{
"json_size": 354,
"max_message_count": 100,
"messageId": "a6a4e3f2-bb59-4bb2-b890-c56b616d0a7d",
"messages": [
{
"channel": "server",
"context": {
"library": {
"name": "rudderanalytics-ruby",
"version": "2.0.1"
}
},
"event": "Item Sold",
"integrations": {
"All": true
},
"messageId": "37d81b79-6b0a-4f44-a6b5-7ffee89f5334",
"properties": {
"revenue": 9.95,
"shipping": "Free"
},
"sentAt": "2023-04-14T15:32:34.948Z",
"timestamp": "2023-04-14T15:32:34.948Z",
"type": "track",
"userId": "1hKOmRA4GRlm"
}
],
"originalTimestamp": "2023-04-14T15:32:36.118Z",
"receivedAt": "2023-04-14T15:32:35.325Z",
"request_ip": "146.212.67.110",
"rudderId": "853ae90f-0351-424b-973e-a615e6487517",
"sentAt": "2023-04-14T15:32:36.118Z",
"timestamp": "2023-04-14T15:32:35.324Z"
}
{
"json_size": 354,
"max_message_count": 100,
"messageId": "a6a4e3f2-bb59-4bb2-b890-c56b616d0a7d",
"messages": [
{
"channel": "server",
"context": {
"library": {
"name": "rudderanalytics-ruby",
"version": "2.0.1"
}
},
"event": "Item Sold",
"integrations": {
"All": true
},
"messageId": "37d81b79-6b0a-4f44-a6b5-7ffee89f5334",
"properties": {
"revenue": 9.95,
"shipping": "Free"
},
"sentAt": "2023-04-14T15:32:34.948Z",
"timestamp": "2023-04-14T15:32:34.948Z",
"type": "track",
"userId": "1hKOmRA4GRlm"
}
],
"originalTimestamp": "2023-04-14T15:32:36.118Z",
"receivedAt": "2023-04-14T15:32:35.325Z",
"request_ip": "146.212.67.110",
"rudderId": "853ae90f-0351-424b-973e-a615e6487517",
"sentAt": "2023-04-14T15:32:36.118Z",
"timestamp": "2023-04-14T15:32:35.324Z"
}
{
"json_size": 354,
"max_message_count": 100,
"messageId": "a6a4e3f2-bb59-4bb2-b890-c56b616d0a7d",
"messages": [
{
"channel": "server",
"context": {
"library": {
"name": "rudderanalytics-ruby",
"version": "2.0.1"
}
},
"event": "Item Sold",
"integrations": {
"All": true
},
"messageId": "37d81b79-6b0a-4f44-a6b5-7ffee89f5334",
"properties": {
"revenue": 9.95,
"shipping": "Free"
},
"sentAt": "2023-04-14T15:32:34.948Z",
"timestamp": "2023-04-14T15:32:34.948Z",
"type": "track",
"userId": "1hKOmRA4GRlm"
}
],
"originalTimestamp": "2023-04-14T15:32:36.118Z",
"receivedAt": "2023-04-14T15:32:35.325Z",
"request_ip": "146.212.67.110",
"rudderId": "853ae90f-0351-424b-973e-a615e6487517",
"sentAt": "2023-04-14T15:32:36.118Z",
"timestamp": "2023-04-14T15:32:35.324Z"
}echoing-rain-18959
04/14/2023, 3:57 PMechoing-rain-18959
04/17/2023, 5:20 AMquiet-wolf-72320
04/17/2023, 5:34 AMGzip requires rudder-server v1.4 or higher. Otherwise, your events might fail.Can you check your rudder-server version? https://www.rudderstack.com/docs/sources/event-streams/sdks/rudderstack-ruby-sdk/#gzipping-requests
echoing-rain-18959
04/17/2023, 6:54 AMquiet-wolf-72320
04/18/2023, 4:55 PMechoing-rain-18959
04/19/2023, 5:17 AM