T
Twenty2mo ago
Raph

How to tell if new contacts are being generated from email?

Hey All, I'm suspicious about my email generating new people from email and calendar activity. I know the message are coming in, but I'm not sure if the process that creates a new person from those activities is working as it should. I've sent and received email that should have generated new people in the app but so far nothing has been created. Any ideas on how to see if that is working properly?
26 Replies
charles
charles2mo ago
Hi @Raph, could you double check your Messaging / Calendar contact creation settings from the Settings / Accounts / Emails or Calendars page I don't remember, are you on cloud or self-hosting?
Raph
RaphOP2mo ago
Hi @charles I’m self hosted. I’ll take a look at the settings. Last I looked it said “importing”.
charles
charles2mo ago
I think the import is stuck what statuses do you see in your messagingChannel and calendarChannel tables?
Raph
RaphOP2mo ago
Thanks @charles I'll take a look.
Raph
RaphOP4w ago
@charles
No description
Raph
RaphOP2w ago
This si what I have. What am I looking for specifically? @charles I'm coming back to this. It looks like the sync status is set to
ONGOING
ONGOING
The calendar sync is working as it should. @charles I'm still having an issue with contacts from message syncing. No new contacts are being generated. The messageChannel. I can't seem to get contacts created from emails. The calendarChannel.syncStatus is set to ONGOING and the calendarChannel.syncedAt is set to [null]. I see a calendarChannel.syncCursor set to 1095818. Any ideas on what gives her? I'm suspecting that the calendarChannel.syncedAt should have a value other than null? All crons are good. @thomast any ideas? trying to get this figured out. ¯\_(ツ)_/¯
thomast
thomast2w ago
I am not familiar with messaging. @charles or @Raphaël will be the best to answer
Raphaël
Raphaël2w ago
Hello @Raph ! Are you on the latest version of twenty? The import seems to be stuck, did you launch the ongoing stale crons?
Raph
RaphOP2w ago
Hey, @Raphaël . Yes, I did reset the cron and I'm using v.0.32 I have the scripts in a bash script triggered by cron every 30 mins.
Raphaël
Raphaël2w ago
Could you try removing your google account and reconnecting it?
Raph
RaphOP2w ago
Sure! It was working great for a while and then all of a sudden it stopped.
Raphaël
Raphaël2w ago
Otherwise you can try to edit your syncStage in the db to PARTIAL_MESSAGE_LIST_FETCH_PENDING And same for your calendar channel if it's stuck
Raph
RaphOP2w ago
Let me take a quick look. the syncedAt state is NULL syncState is set to MESSAGES_IMPORT_ONGOING I'll disconnect and reauth the account.
Raphaël
Raphaël2w ago
You can try to put in back to MESSAGES_IMPORT_PENDING manually Before you disconnect your account
Raph
RaphOP2w ago
Oh! shoot, I just disconnected it 😬
Raphaël
Raphaël2w ago
No problem !
Raph
RaphOP2w ago
I'll reconnect it and see what happens.
Raphaël
Raphaël2w ago
Tell me if it works 🙂
Raph
RaphOP2w ago
The record is gone, reconnecting now. ok - the syncedAt state is now again [null] and the syncStage state is now set to MESSAGES_IMPORT_PENDING I'll trigger the commands to import the message and watch the logs. Hmm. I'm seeing a 403 in the logs. hitting googleapis.com Is the google peopleAPI a new requirement?
Raph
RaphOP2w ago
No description
Raph
RaphOP2w ago
GaxiosError: People API has not been used in project XXXXXXXXXX before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/people.googleapis.com/overview?project=XXXXXXXXXXX then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
GaxiosError: People API has not been used in project XXXXXXXXXX before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/people.googleapis.com/overview?project=XXXXXXXXXXX then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
charles
charles2w ago
@Raph you are right it's a new requirement we use it to also support import on different email aliases good troubleshooting
Raph
RaphOP2w ago
Ah, might be a good idea to update the upgrade page to include that. I've since added the scope so we're all good there. I'm still testing the import. Something is wonky there too. Just haven't had time to get to it.
charles
charles2w ago
GitHub
Add People API upgrade instruction to upgrade guide by charlesBoche...
I'm updating the docs as we now require the People API to be available to use messaging sync. This has been reported by a user self-hosting the app on discord.
charles
charles2w ago
I've just tested the Import feature and it seems to be working as expected (the feature is still quite limited though)
Raph
RaphOP2w ago
Thanks, @charles
Want results from more Discord servers?
Add your server