Skip to content

Creating empty payload with comma's while uploading  #819

Description

@prudhvi-kumar-android

Hi, I'm facing one weird issue, while sending the logs to my AWS lambda I saw the payload is either malformed or sending with empty array comma separated payload. Attaching you the payload references.
{"batch":[,,,,,,,,,,,,,,,,,,,,,,],"sentAt":"2022-12-17T17:30:03.292Z"}
and
{"batch":[{"channel":"mobile","type":"identify","messageId":"e2217b05-8716-4ea6-aeb3-7cd8b34d5828","timestamp":"2022-12-17T17:31:04.354Z","context":{"app":{"build":"2022121704","version":"3.7.1.debug"},"traits":{"anonymousId":"50815729-53eb-4ac0-839a-b0ed772822ee","utm_campaign":"none","utm_medium":"none","deeplink":"none","hs_site":"android","utm_term":"none","advertisingIdType":"AAID","utm_date":"2022-12-17 11:01:04","utm_gender":"none","utm_source":"none","utm_content":"none"},"library":{"name":"analytics-android"},"os":{"name":"Android","version":"12"},"timezone":"Asia/Kolkata","screen":{"density":2.75,"width":1080,"height":2160},"userAgent":"Dalvik/2.1.0 (Linux; U; Android Tiramisu Build/TPP2.220218.008)","locale":"en-US","device":{"id":"5ce9cbf2c77b2bb36710166831609bb56daabc198f4de7362a958e2c42b3ca7d","manufacturer":"Google","model":"sdk_gphone64_x86_64","name":"emu64xa","type":"android","adTrackingEnabled":true},"network":{"wifi":true,"carrier":"T-Mobile","bluetooth":false,"cellular":false}},"integrations":{},"anonymousId":"50815729-53eb-4ac0-839a-b0ed772822ee","traits":{"anonymousId":"50815729-53eb-4ac0-839a-b0ed772822ee","utm_campaign":"none","utm_medium":"none","deeplink":"none","advertisingId":"d0e13632-38e4-439f-8546-7cf434744625","hs_site":"android","utm_term":"none","advertisingIdType":"AAID","utm_date":"2022-12-17 11:01:04","hs_device_id":"931288c1a2bd7e99","utm_gender":"none","utm_source":"none","utm_content":"none"}},{"channel":"mobile","type":"track","messageId":"4e859f2d-551a-438d-be8c-2af5254c5ba0","timestamp":"2022-12-17T17:31:13.843Z","context":{"app":{"build":"2022121704","version":"3.7.1.debug"},"traits":{"anonymousId":"50815729-53eb-4ac0-839a-b0ed772822ee","days_since_last_visit":7,"utm_campaign":"none","utm_medium":"none","deeplink":"none","utm_term":"none","user_type":"GU","advertisingIdType":"AAID","utm_date":"2022-12-17 11:01:07","utm_gender":"none","last_visit_date":"2022-12-17 22:59:30","utm_source":"none","utm_content":"none","visitor_type":"repeat visitor"},"library":{"name":"analytics-android"},"os":{"name":"Android","version":"12"},"timezone":"Asia/Kolkata","screen":{"density":2.75,"width":1080,"height":2160},"userAgent":"Dalvik/2.1.0 (Linux; U; Android Tiramisu Build/TPP2.220218.008)","locale":"en-US","device":{"id":"5ce9cbf2c77b2bb36710166831609bb56daabc198f4de7362a958e2c42b3ca7d","manufacturer":"Google","model":"sdk_gphone64_x86_64","name":"emu64xa","type":"android","advertisingId":"d0e13632-38e4-439f-8546-7cf434744625","advertisingIdType":"AAID","adTrackingEnabled":true},"network":{"wifi":true,"carrier":"T-Mobile","bluetooth":false,"cellular":false}},"integrations":{"Amplitude":{"session_id":"1671298170411"}},"anonymousId":"50815729-53eb-4ac0-839a-b0ed772822ee","event":"app_launched","properties":{"from_source":"none","[time] hour_of_day":23,"from_screen":"Discover","[time] month_of_year":12,"[time] day_of_week":7,"tti":12229,"[time] day_of_month":17,"[time] week_of_year":"202251","ttl":8196,"install_type":"none"}}�V{"channel":"mo],"sentAt":"2022-12-17T17:37:06.208Z"}

See at the end there's some garbage value appened to it.

I'm using 4.10.4 and my project is targetted to 31 ( Android 12 ).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions