[GH-ISSUE #20] Error when starting sync #2

Closed
opened 2026-02-27 04:58:40 +03:00 by kerem · 6 comments
Owner

Originally created by @meneses-pt on GitHub (Oct 19, 2022).
Original GitHub issue: https://github.com/guyzyl/whatsapp-contact-sync/issues/20

I installed the app locally and tried to run it. When starting sync, got this error on server and it didn't move any further:

TypeError: Cannot read properties of undefined (reading '0')
    at /Users/meneses/git/whatsapp-contact-sync/server/src/gapi.ts:48:36
    at Array.map (<anonymous>)
    at /Users/meneses/git/whatsapp-contact-sync/server/src/gapi.ts:44:8
    at Generator.next (<anonymous>)
    at fulfilled (/Users/meneses/git/whatsapp-contact-sync/server/src/gapi.ts:5:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
[nodemon] app crashed - waiting for file changes before starting...

Can you please help?
(Will buy you a coffee if this works)

Originally created by @meneses-pt on GitHub (Oct 19, 2022). Original GitHub issue: https://github.com/guyzyl/whatsapp-contact-sync/issues/20 I installed the app locally and tried to run it. When starting sync, got this error on server and it didn't move any further: ``` TypeError: Cannot read properties of undefined (reading '0') at /Users/meneses/git/whatsapp-contact-sync/server/src/gapi.ts:48:36 at Array.map (<anonymous>) at /Users/meneses/git/whatsapp-contact-sync/server/src/gapi.ts:44:8 at Generator.next (<anonymous>) at fulfilled (/Users/meneses/git/whatsapp-contact-sync/server/src/gapi.ts:5:58) at processTicksAndRejections (node:internal/process/task_queues:95:5) [nodemon] app crashed - waiting for file changes before starting... ``` Can you please help? (Will buy you a coffee if this works)
kerem closed this issue 2026-02-27 04:58:40 +03:00
Author
Owner

@guyzyl commented on GitHub (Oct 21, 2022):

On what page did you get this error?

<!-- gh-comment-id:1286758206 --> @guyzyl commented on GitHub (Oct 21, 2022): On what page did you get this error?
Author
Owner

@andre-meneses-fivestars commented on GitHub (Oct 21, 2022):

Right when I started the sync process. Where it was supposed to show the progress.

<!-- gh-comment-id:1286769738 --> @andre-meneses-fivestars commented on GitHub (Oct 21, 2022): Right when I started the sync process. Where it was supposed to show the progress.
Author
Owner

@guyzyl commented on GitHub (Oct 21, 2022):

Is it possible that you have a contact in Google that doesn't have a name?
There might be a bug in the code due to that, I'll fix it this weekend and hopefully it will fix your issue.

<!-- gh-comment-id:1286818549 --> @guyzyl commented on GitHub (Oct 21, 2022): Is it possible that you have a contact in Google that doesn't have a name? There might be a bug in the code due to that, I'll fix it this weekend and hopefully it will fix your issue.
Author
Owner

@andre-meneses-fivestars commented on GitHub (Oct 21, 2022):

It is possible that I do... Can you please let me know when you fix that?

<!-- gh-comment-id:1286911618 --> @andre-meneses-fivestars commented on GitHub (Oct 21, 2022): It is possible that I do... Can you please let me know when you fix that?
Author
Owner

@guyzyl commented on GitHub (Oct 22, 2022):

@andre-meneses-fivestars just merged a possible fix, see if #21 works for you.

<!-- gh-comment-id:1287860168 --> @guyzyl commented on GitHub (Oct 22, 2022): @andre-meneses-fivestars just merged a possible fix, see if #21 works for you.
Author
Owner

@meneses-pt commented on GitHub (Oct 24, 2022):

Worked perfectly! Thank you!

<!-- gh-comment-id:1288743761 --> @meneses-pt commented on GitHub (Oct 24, 2022): Worked perfectly! Thank you!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whatsapp-contact-sync#2
No description provided.