-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What is the bug?
When the user reaches level 10, stat points become available for allocation. But first, the user has to select a class, otherwise the API throws the following error:
Error: Request failed for https://habitica.com/ returned code 401.
Truncated server response:
{
"success": false,
"error": "NotAuthorized",
"message": "You must select Class before you can assign Stat Points."
}
Additional context
This error appears on every call of onTrigger and blocks execution of the other functions.
How often does this happen?
Since onTrigger is called every 10 minutes, the error appears that often.
Script version
v1.0.0
Script settings
const AUTO_CRON = true; // true or false
const AUTO_ACCEPT_QUEST_INVITES = true;
const FORCE_START_QUESTS = false; // party leaders only
const FORCE_START_QUESTS_AFTER_HOURS = 1; // eg. if set to 1, quests will force start after 1h
const NOTIFY_MEMBERS_EXCLUDED_FROM_QUEST = false;
const AUTO_INVITE_GOLD_QUESTS = false;
const AUTO_INVITE_UNLOCKABLE_QUESTS = false;
const AUTO_INVITE_PET_QUESTS = false;
const AUTO_INVITE_HOURGLASS_QUESTS = false;
const PM_WHEN_OUT_OF_QUEST_SCROLLS = false;
const NOTIFY_ON_QUEST_END = false;
const AUTO_CAST_SKILLS = true;
const AUTO_PAUSE_RESUME_DAMAGE = false;
const MAX_PLAYER_DAMAGE = 20;
const MAX_PARTY_DAMAGE = 5;
const AUTO_ALLOCATE_STAT_POINTS = false;
const STAT_TO_ALLOCATE = "str"; // str, int, con, per
const AUTO_PURCHASE_GEMS = true; // subscribers only
const AUTO_PURCHASE_ARMOIRES = true;
const RESERVE_GOLD = 10000;
const AUTO_SELL_EGGS = false;
const RESERVE_EGGS = 999;
const AUTO_SELL_HATCHING_POTIONS = false;
const RESERVE_HATCHING_POTIONS = 999;
const AUTO_SELL_FOOD = false;
const RESERVE_FOOD = 999;
const AUTO_HATCH_FEED_PETS = false;
const ONLY_USE_DROP_FOOD = true;
const HIDE_PARTY_NOTIFICATIONS = false;
const HIDE_ALL_GUILD_NOTIFICATIONS = false;
const HIDE_NOTIFICATIONS_FROM_SPECIFIC_GUILDS = [ // only used if HIDE_ALL_GUILD_NOTIFICATIONS is false
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // enter a guild ID between the quotes to hide notifications from that guild
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // repeat for as many guilds as you want
]
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working