Embedded Script (Tasks List API Sample) throws “'Tasks' is not defined” error (works when run in Scripts) The Next CEO of Stack OverflowHow to add Google Drive Scripts project into Google Sites?How to add Google Drive Scripts project into Google Sites?Google Apps Script Gadget URL parameters are ignored when embedded in a Google SiteGoogle Apps Script Web App on my DomainUsing Google Tasks API in Google Apps Script - Access not ConfiguredError running Google App scriptGoogle apps script and execution API: latest version of script throws errorHow do I embed a Facebook Feed in the new Google Sites (using Apps Script)?Embedding web app in Google Sites doesn't workClickable URL in anchor/image not working via Google Scripts embedded into Google Classic Sites

Do scriptures give a method to recognize a truly self-realized person/jivanmukta?

Why don't programming languages automatically manage the synchronous/asynchronous problem?

Cannot shrink btrfs filesystem although there is still data and metadata space left : ERROR: unable to resize '/home': No space left on device

Man transported from Alternate World into ours by a Neutrino Detector

Why do we say 'Un seul M' and not 'Une seule M' even though M is a "consonne"

Can I board the first leg of the flight without having final country's visa?

Is there a reasonable and studied concept of reduction between regular languages?

What flight has the highest ratio of timezone difference to flight time?

Why is information "lost" when it got into a black hole?

How do I fit a non linear curve?

My ex-girlfriend uses my Apple ID to login to her iPad, do I have to give her my Apple ID password to reset it?

What difference does it make using sed with/without whitespaces?

Is a distribution that is normal, but highly skewed, considered Gaussian?

What does "shotgun unity" refer to here in this sentence?

Airplane gently rocking its wings during whole flight

Could a dragon use its wings to swim?

Do I need to write [sic] when including a quotation with a number less than 10 that isn't written out?

Which one is the true statement?

Strange use of "whether ... than ..." in official text

The Ultimate Number Sequence Puzzle

Players Circumventing the limitations of Wish

What is the process for purifying your home if you believe it may have been previously used for pagan worship?

It is correct to match light sources with the same color temperature?

Film where the government was corrupt with aliens, people sent to kill aliens are given rigged visors not showing the right aliens



Embedded Script (Tasks List API Sample) throws “'Tasks' is not defined” error (works when run in Scripts)



The Next CEO of Stack OverflowHow to add Google Drive Scripts project into Google Sites?How to add Google Drive Scripts project into Google Sites?Google Apps Script Gadget URL parameters are ignored when embedded in a Google SiteGoogle Apps Script Web App on my DomainUsing Google Tasks API in Google Apps Script - Access not ConfiguredError running Google App scriptGoogle apps script and execution API: latest version of script throws errorHow do I embed a Facebook Feed in the new Google Sites (using Apps Script)?Embedding web app in Google Sites doesn't workClickable URL in anchor/image not working via Google Scripts embedded into Google Classic Sites










2















When attempting to embed Google’s sample provided for the Tasks API (code found here) into Google's Classic Sites I get the dreaded “script.google.com refused to connect”. The logging error is "Tasks" is not defined at getTasksLists(simpleTasks:15). Details:
Tasks error details



When I embed this same script into Google's New Sites, the UI does show, but the drop-down continues to display “Loading…” (see screenshot below), however if I click on the link provided to view my “Google Tasks” it does go to my Tasks in a new window.
Tasks UI



This runs successfully directly from Google Apps Scripts, showing the “Authorization required” pop-up and allowing me to sign in and accept permissions. However, when embedded into both New and Classic sites, it does not request any authorization.



Steps I've taken embedding into Classic Sites (where it needs to be):




  1. from URL provided above: copied code exactly as is into a new Scripts project (nothing altered or added).


  2. from Scripts: deployed it as a Web App, copied the URL provided (the code provided in the link above has not been altered in any way by me)


  3. from Scripts: enabled Tasks API though Resources, Advanced Google Services


  4. from Sites: edit page, Insert Apps Script, pasted URL (i.e. https//script.google.com/macros/s/...5Ym41qn/exec)

Other things I've tried:



  • from Sites: embedding URL as an iFrame gadget (same results)

  • solution given here: How to add Google Drive Scripts project into Google Sites? (same results)

  • days of research into Google's documentation (for Sites, APIs, Scripts, Cloud Platform, you name it)... (various results but nothing productive)

I am very new to working with Sites, Scripts, the Cloud Platform, etc. so apologies if I am missing some obvious steps here. Any guidance would be truly appreciated!



Leora



UPDATE [03-21-19]:



I was able to get this working finally! Although not posting as answer just yet as I haven't figured out the exact change that was brought success.



I thought it was by changing the option within Sites' Publish / Deploy as web app... / Execute the app as: from 'ME' to 'USER' (after doing that it worked), but when I changed it back to make sure that was it, it still worked?



I will play around with it more this weekend and update when I come to a definitive solution.



Thanks to anyone who took the time to help me out here, and if anyone does have any guidance on what's happening here, I'd love to know.










share|improve this question
























  • I've been messing with Tasks lately and got their snippet to work without problems (although I didn't embed it). Are you sure that you published your script before you embedded it? does it work on the test URL? Are you on a personal gmail account or a work one?

    – J. G.
    Mar 19 at 22:25











  • I did publish my script before embedding it, it does work in the test URL via scripts, and I am working through a work G Suite Enterprise account.

    – leoraelkins
    Mar 20 at 16:29















2















When attempting to embed Google’s sample provided for the Tasks API (code found here) into Google's Classic Sites I get the dreaded “script.google.com refused to connect”. The logging error is "Tasks" is not defined at getTasksLists(simpleTasks:15). Details:
Tasks error details



When I embed this same script into Google's New Sites, the UI does show, but the drop-down continues to display “Loading…” (see screenshot below), however if I click on the link provided to view my “Google Tasks” it does go to my Tasks in a new window.
Tasks UI



This runs successfully directly from Google Apps Scripts, showing the “Authorization required” pop-up and allowing me to sign in and accept permissions. However, when embedded into both New and Classic sites, it does not request any authorization.



Steps I've taken embedding into Classic Sites (where it needs to be):




  1. from URL provided above: copied code exactly as is into a new Scripts project (nothing altered or added).


  2. from Scripts: deployed it as a Web App, copied the URL provided (the code provided in the link above has not been altered in any way by me)


  3. from Scripts: enabled Tasks API though Resources, Advanced Google Services


  4. from Sites: edit page, Insert Apps Script, pasted URL (i.e. https//script.google.com/macros/s/...5Ym41qn/exec)

Other things I've tried:



  • from Sites: embedding URL as an iFrame gadget (same results)

  • solution given here: How to add Google Drive Scripts project into Google Sites? (same results)

  • days of research into Google's documentation (for Sites, APIs, Scripts, Cloud Platform, you name it)... (various results but nothing productive)

I am very new to working with Sites, Scripts, the Cloud Platform, etc. so apologies if I am missing some obvious steps here. Any guidance would be truly appreciated!



Leora



UPDATE [03-21-19]:



I was able to get this working finally! Although not posting as answer just yet as I haven't figured out the exact change that was brought success.



I thought it was by changing the option within Sites' Publish / Deploy as web app... / Execute the app as: from 'ME' to 'USER' (after doing that it worked), but when I changed it back to make sure that was it, it still worked?



I will play around with it more this weekend and update when I come to a definitive solution.



Thanks to anyone who took the time to help me out here, and if anyone does have any guidance on what's happening here, I'd love to know.










share|improve this question
























  • I've been messing with Tasks lately and got their snippet to work without problems (although I didn't embed it). Are you sure that you published your script before you embedded it? does it work on the test URL? Are you on a personal gmail account or a work one?

    – J. G.
    Mar 19 at 22:25











  • I did publish my script before embedding it, it does work in the test URL via scripts, and I am working through a work G Suite Enterprise account.

    – leoraelkins
    Mar 20 at 16:29













2












2








2








When attempting to embed Google’s sample provided for the Tasks API (code found here) into Google's Classic Sites I get the dreaded “script.google.com refused to connect”. The logging error is "Tasks" is not defined at getTasksLists(simpleTasks:15). Details:
Tasks error details



When I embed this same script into Google's New Sites, the UI does show, but the drop-down continues to display “Loading…” (see screenshot below), however if I click on the link provided to view my “Google Tasks” it does go to my Tasks in a new window.
Tasks UI



This runs successfully directly from Google Apps Scripts, showing the “Authorization required” pop-up and allowing me to sign in and accept permissions. However, when embedded into both New and Classic sites, it does not request any authorization.



Steps I've taken embedding into Classic Sites (where it needs to be):




  1. from URL provided above: copied code exactly as is into a new Scripts project (nothing altered or added).


  2. from Scripts: deployed it as a Web App, copied the URL provided (the code provided in the link above has not been altered in any way by me)


  3. from Scripts: enabled Tasks API though Resources, Advanced Google Services


  4. from Sites: edit page, Insert Apps Script, pasted URL (i.e. https//script.google.com/macros/s/...5Ym41qn/exec)

Other things I've tried:



  • from Sites: embedding URL as an iFrame gadget (same results)

  • solution given here: How to add Google Drive Scripts project into Google Sites? (same results)

  • days of research into Google's documentation (for Sites, APIs, Scripts, Cloud Platform, you name it)... (various results but nothing productive)

I am very new to working with Sites, Scripts, the Cloud Platform, etc. so apologies if I am missing some obvious steps here. Any guidance would be truly appreciated!



Leora



UPDATE [03-21-19]:



I was able to get this working finally! Although not posting as answer just yet as I haven't figured out the exact change that was brought success.



I thought it was by changing the option within Sites' Publish / Deploy as web app... / Execute the app as: from 'ME' to 'USER' (after doing that it worked), but when I changed it back to make sure that was it, it still worked?



I will play around with it more this weekend and update when I come to a definitive solution.



Thanks to anyone who took the time to help me out here, and if anyone does have any guidance on what's happening here, I'd love to know.










share|improve this question
















When attempting to embed Google’s sample provided for the Tasks API (code found here) into Google's Classic Sites I get the dreaded “script.google.com refused to connect”. The logging error is "Tasks" is not defined at getTasksLists(simpleTasks:15). Details:
Tasks error details



When I embed this same script into Google's New Sites, the UI does show, but the drop-down continues to display “Loading…” (see screenshot below), however if I click on the link provided to view my “Google Tasks” it does go to my Tasks in a new window.
Tasks UI



This runs successfully directly from Google Apps Scripts, showing the “Authorization required” pop-up and allowing me to sign in and accept permissions. However, when embedded into both New and Classic sites, it does not request any authorization.



Steps I've taken embedding into Classic Sites (where it needs to be):




  1. from URL provided above: copied code exactly as is into a new Scripts project (nothing altered or added).


  2. from Scripts: deployed it as a Web App, copied the URL provided (the code provided in the link above has not been altered in any way by me)


  3. from Scripts: enabled Tasks API though Resources, Advanced Google Services


  4. from Sites: edit page, Insert Apps Script, pasted URL (i.e. https//script.google.com/macros/s/...5Ym41qn/exec)

Other things I've tried:



  • from Sites: embedding URL as an iFrame gadget (same results)

  • solution given here: How to add Google Drive Scripts project into Google Sites? (same results)

  • days of research into Google's documentation (for Sites, APIs, Scripts, Cloud Platform, you name it)... (various results but nothing productive)

I am very new to working with Sites, Scripts, the Cloud Platform, etc. so apologies if I am missing some obvious steps here. Any guidance would be truly appreciated!



Leora



UPDATE [03-21-19]:



I was able to get this working finally! Although not posting as answer just yet as I haven't figured out the exact change that was brought success.



I thought it was by changing the option within Sites' Publish / Deploy as web app... / Execute the app as: from 'ME' to 'USER' (after doing that it worked), but when I changed it back to make sure that was it, it still worked?



I will play around with it more this weekend and update when I come to a definitive solution.



Thanks to anyone who took the time to help me out here, and if anyone does have any guidance on what's happening here, I'd love to know.







google-apps-script google-sites google-tasks-api






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 21 at 18:39







leoraelkins

















asked Mar 19 at 2:05









leoraelkinsleoraelkins

931112




931112












  • I've been messing with Tasks lately and got their snippet to work without problems (although I didn't embed it). Are you sure that you published your script before you embedded it? does it work on the test URL? Are you on a personal gmail account or a work one?

    – J. G.
    Mar 19 at 22:25











  • I did publish my script before embedding it, it does work in the test URL via scripts, and I am working through a work G Suite Enterprise account.

    – leoraelkins
    Mar 20 at 16:29

















  • I've been messing with Tasks lately and got their snippet to work without problems (although I didn't embed it). Are you sure that you published your script before you embedded it? does it work on the test URL? Are you on a personal gmail account or a work one?

    – J. G.
    Mar 19 at 22:25











  • I did publish my script before embedding it, it does work in the test URL via scripts, and I am working through a work G Suite Enterprise account.

    – leoraelkins
    Mar 20 at 16:29
















I've been messing with Tasks lately and got their snippet to work without problems (although I didn't embed it). Are you sure that you published your script before you embedded it? does it work on the test URL? Are you on a personal gmail account or a work one?

– J. G.
Mar 19 at 22:25





I've been messing with Tasks lately and got their snippet to work without problems (although I didn't embed it). Are you sure that you published your script before you embedded it? does it work on the test URL? Are you on a personal gmail account or a work one?

– J. G.
Mar 19 at 22:25













I did publish my script before embedding it, it does work in the test URL via scripts, and I am working through a work G Suite Enterprise account.

– leoraelkins
Mar 20 at 16:29





I did publish my script before embedding it, it does work in the test URL via scripts, and I am working through a work G Suite Enterprise account.

– leoraelkins
Mar 20 at 16:29












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55232634%2fembedded-script-tasks-list-api-sample-throws-tasks-is-not-defined-error-w%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55232634%2fembedded-script-tasks-list-api-sample-throws-tasks-is-not-defined-error-w%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해