I'm working on the basic trello power-up here with a very basic:
var Promise = TrelloPowerUp.Promise;
var btnCallback = function (t, opts) {
return t.popup({
title: 'Change Snooze Time',
url: './estimate.html',
args: { myArgs: 'You can access these with t.arg()' },
height: 278
});
};
TrelloPowerUp.initialize({
'card-buttons': function(t, options){
return [{
icon: 'https://cdn.glitch.com/1b42d7fe-bda8-4af8-a6c8-eff0cea9e08a%2Frocket-ship.png?1494946700421',
text: 'Claim Ether',
callback: btnCallback
}];
}
});
When I run it I get the following error:
PluginRunner::NotHandled: attempt to run callback on plugin 5a5af7ae0718dcac32a8946b (Ca-Ching) failed
Which doesn't give me any information about why the error occurred, and is next to impossible to debug.
Is it possible to get better error messages, or is it obvious what I'm doing wrong?