bumbleshoot / list-quest-invites

Gathers Habitica quest invite emails from the user's Gmail account and lists them in a Google Sheet, with columns for quest name, date/time invited, username, quest type, and email subject.
https://habitica.fandom.com/wiki/List_Quest_Invites
0 stars 0 forks source link

TypeError: Cannot read properties of undefined (reading 'type') #1

Open Ayrenne opened 1 year ago

Ayrenne commented 1 year ago

What is the bug? TypeError: Cannot read properties of undefined (reading 'type') listQuestInvites @ listQuestInvites.gs:121

Additional context The script output 3 rows of data to the spreadsheet before the error popped up. The type that seemed to cause the issue was "Other" (for Find The Cub quest).

How often does this happen? Every time the script is run. (In other words, the script isn't usable right now.)

Script version v0.2.7 (beta)

Script settings

const LABEL_NAME = "02 Habitica_QuestInvites/2017"; // required
const START_DATE = ""; // yyyy-mm-dd, leave blank for no start date
const END_DATE = ""; // yyyy-mm-dd, leave blank for no end date

Additional info: I also set the script to run on the quest emails from 2019, and it stopped with the same error, also just before the "Find The Cub" Quest.

bumbleshoot commented 4 months ago

Hi @Ayrenne, can you please let me know if you are still getting this error? If so, I will look into it now! Thanks!