PostHog / posthog-plugin-migrator3000

Migrate your events to a new PostHog instance.
MIT License
7 stars 10 forks source link

Issue running the migrator plugin #6

Open macobo opened 2 years ago

macobo commented 2 years ago

User reported this:

Any ideas on how to solve this bug with the migrator?:

[___7] 19:46:40 🔔 TypeError: el.attr__class?.split is not a function                                                                                                                                              │
│     at /home/posthog/code/plugin-server/dist/utils/db/utils.js:179:40                                                                                                                                              │
│     at Array.map (<anonymous>)                                                                                                                                                                                     │
│     at extractElements (/home/posthog/code/plugin-server/dist/utils/db/utils.js:175:21)                                                                                                                            │
│     at EventsProcessor.capture (/home/posthog/code/plugin-server/dist/worker/ingestion/process-event.js:324:56)                                                                                                    │
│     at EventsProcessor.processEvent (/home/posthog/code/plugin-server/dist/worker/ingestion/process-event.js:125:67)                                                                                               │
│     at runMicrotasks (<anonymous>)                                                                                                                                                                                 │
│     at processTicksAndRejections (internal/process/task_queues.js:95:5)                                                                                                                                            │
│     at async ingestEvent (/home/posthog/code/plugin-server/dist/worker/ingestion/ingest-event.js:35:24)                                                                                                            │
│     at async Object.ingestEvent (/home/posthog/code/plugin-server/dist/worker/tasks.js:38:16)                                                                                                                      │
│     at async /home/posthog/code/plugin-server/dist/worker/worker.js:49:49  

Might be related to autocapture?

Slack thread (asking for more details there): https://posthogusers.slack.com/archives/C01PPBY3G6Q/p1642166866060200

cc @yakkomajuri

yakkomajuri commented 2 years ago

I've seen this. It's triggered at the destination instance and does seem related to how we're parsing elements in autocaptured events.

I did look at the user's instance though without any immediate pointers. Will revisit.