Hello, I just started to get errors when sending e...
# support
a
Hello, I just started to get errors when sending events to heap,io earlier this month. Do I need to drop / add heap as a destination or do I need to change what I send to rudderstack? I'm wondering if heap changed their api or something because nothing on my side changed
m
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
Hi Courtney, let me check with the team and update you.
Can you provide the destination_id where you are seeing this error?
Can you provide the sample payload that you are sending?
a
2Zb3JRJ1iQeiZNdrKFlPz97UbMB
this is the error I get...
Copy code
{
  "response": "postBody.events[0].identity should NOT be shorter than 1 characters",
  "firstAttemptedAt": "2024-03-19T16:36:17.963Z",
  "content-type": "text/html; charset=utf-8"
}
Copy code
{
  "body": {
    "XML": {},
    "FORM": {},
    "JSON": {
      "event": "www_gc_landing",
      "app_id": "xxx",
      "identity": "",
      "timestamp": "2024-03-19T16:36:16.000Z",
      "properties": {
        "ip": "x.x.x.x",
        "os": "Linux",
        "app": "",
        "asn": "7018",
        "aso": "ATT-INTERNET4",
        "tid": "tid_6897Q6Rjv653jfMFJ88PpgCc",
        "url": "https://www.autogive.com/",
        "zip": "92110",
        "page": "homepage",
        "funnel": "Group_Create",
        "userId": "",
        "browser": "Chrome 122.0.0.0",
        "country": "US",
        "groupId": "",
        "language": "en",
        "location": "San Diego, CA",
        "osFamily": "Linux",
        "platform": "desktop",
        "referrer": "https://www.autogive.com/",
        "osVersion": "",
        "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36",
        "appVersion": "",
        "internalId": "ane_6897Q6RqrWQxCprHmwJpqgQW",
        "browserEngine": "Blink",
        "browserFamily": "Chrome",
        "createdAt.date": "2024-03-19 16:36:16.996945",
        "referrerDomain": "www.autogive.com",
        "createdAt.timezone": "UTC",
        "createdAt.timezone_type": 3,
        "exposures.sms_is_down.id": 74667,
        "exposures.show_pay_pad.id": 80363,
        "exposures.sms_is_down.value": "",
        "exposures.pay_pad_amounts.id": 80362,
        "exposures.show_pay_pad.value": null,
        "exposures.sms_is_down.enabled": false,
        "exposures.show_debug_footer.id": 74586,
        "exposures.show_pay_pad.enabled": false,
        "exposures.pay_pad_amounts.value": "[25, 50, 100, 150, 200, 300]",
        "exposures.join_group_redesign.id": 82306,
        "exposures.pay_pad_amounts.enabled": false,
        "exposures.show_debug_footer.value": "",
        "exposures.join_group_redesign.value": null,
        "exposures.show_debug_footer.enabled": false,
        "exposures.show_create_group_links.id": 74671,
        "exposures.join_group_redesign.enabled": false,
        "exposures.show_create_group_links.value": null,
        "exposures.show_create_group_links.enabled": true
      }
    },
    "JSON_ARRAY": {}
  },
  "type": "REST",
  "files": {},
  "method": "POST",
  "params": {},
  "userId": "tid_6897Q6Rjv653jfMFJ88PpgCc",
  "headers": {
    "Accept": "application/json",
    "Content-Type": "application/json"
  },
  "version": "1",
  "endpoint": "https://heapanalytics.com/api/track"
}
m
Hi Courtney, the team pointed out that you seem to be sending only the anonymousId and not the userId. Can you try to send the event with both the parameters?
s
Copy code
{
  "anonymousId": "78c53c15-32a1-4b65-adac-bec2d7bb8fab",
  "channel": "web",
  "context": {
    "campaign": {
      "name": "sales campaign",
      "source": "google",
      "medium": "medium",
      "term": "event data",
      "content": "Make sense of the modern data stack"
    },
    "ip": "192.0.2.0",
    "library": {
      "name": "RudderLabs JavaScript SDK",
      "version": "2.9.1"
    },
    "locale": "en-US",
    "page": {
      "path": "/best-seller/1",
      "initial_referrer": "https://www.google.com/search",
      "initial_referring_domain": "google.com",
      "referrer": "https://www.google.com/search?q=estore+bestseller",
      "referring_domain": "google.com",
      "search": "estore bestseller",
      "title": "The best sellers offered by EStore",
      "url": "https://www.estore.com/best-seller/1"
    },
    "screen": {
      "density": 420,
      "height": 1794,
      "width": 1080,
      "innerHeight": 200,
      "innerWidth": 100
    },
    "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)"
  },
  "event": "Product Reviewed",
  "integrations": {
    "All": true
  },
  "messageId": "1578564113557-af022c68-429e-4af4-b99b-2b9174056383",
  "properties": {
    "review_id": "review_id_1",
    "product_id": "product_id_1",
    "rating": 5,
    "review_body": "It's the greatest!"
  },
  "originalTimestamp": "2020-01-09T10:01:53.558Z",
  "type": "track",
  "userId": "abcd1234",
  "sentAt": "2020-01-09T10:02:03.257Z"
}
a
I can. Can you confirm did something change this all worked up until just recently
The reason for anonymousId and not userId is because the event was captured for unauthenticated user
I can stick a sessionId or equiv in there but not sure it makes sense
m
Yes actually a change was made from our side and in the new repo the userId was not made a mandatory field. This caused the events being sent to the destination and failing at the destination. What surprises me is that these events were not failing before? Also 2 other customers use this destination and they did not see any errors
a
It's been failing for a little while and I didn't have alerting so just caught it when I went to pull some heap reports
m
The reason for anonymousId and not userId is because the event was captured for unauthenticated user
I will get back to you on this.
a
cool thx
Not sure if there is any update on using userId for anonymous traffic or not
@shy-kite-21035 were you able to find anything out? Thanks!