2
votes

The add on was running finely. At some point of time , this error started showing up only for one user. Other users dont experience this.

function buildAddOn(e) { //Add on trigger function
  var card = CardService.newCardBuilder();
  card.setHeader(CardService.newCardHeader().setTitle('Home'));
  var section = CardService.newCardSection();
  section.addWidget(CardService.newTextParagraph().setText("hello world"));
  return card.build();
}

I do not have a file called Storage, though.

"SyntaxError: Unexpected token: u [line: 60, function: , file: Storage]"

enter image description here

Update This has something to do with this

 GmailApp.setCurrentMessageAccessToken(e.messageMetadata.accessToken)

Update 2: Gmail UI object e is undefined

This is not supposed to be undefined. This is an object that is provided by the Gmail UI.

console.log(e) //undefined

Update 3 The same addon runs perfectly for other users.

1
do you have access to the code in the storage file? - Liora Haydont
I do not have access to it. That might probably be stored in the google servers. - hhsb
Then we probably can't help you, since we aren't affiliated with google. You should check their support - Liora Haydont
I have logged an issue here at issuetracker.google.com/issues/112159120. - hhsb
are you the developer of this add-on? have tried the obvious like clearing cache & cookies? - a-change

1 Answers

-2
votes

Empty cache and Hard reload browser this error will disappear (But keep in mind that it's not proper way to skip error for user end)