« first day (17 days earlier)      last day (1378 days later) » 

12:05 AM
@OlegValter For both "XMLHttpRequest" and "fetch", when "{Authorization: Bearer ${token}}" is used to the headers, the error of "Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource." occurs.
@OlegValter When "?access_token=###" is used, in most cases, no error occurs for both "XMLHttpRequest" and "fetch". I think that "access_token=###" is sent as one of the query parameters. But the log cannot be seen at Apps Script Dashboard, while only one time, I could confirm the log. But I'm not sure about the reason.
 
@Tanaike thank you for confirming, afaik that is an expected behaviour (no "options" method, hence error 405). What is sad is that requests for allowing all request types (or at least "options") are around for years and could make web apps a viable alternative to Function Apps and AWS Lambda - do you happen to have any info on why this is such a low-priority part of the platform, btw, seems odd?
@Tanaike hm, anything specific about the run when you did get the log you can think of? Recent redeployment, for example?
 
@OlegValter Thank you. Yes. Although this might be my selfishness, in order to take more advantage of Web Apps, I think that it is required to modify the specification. For example, in the current stage, the request headers cannot be retrieved.
@OlegValter About that situation, I had used the same scripts for both client and server and no redeployed the Web Apps. I just tested with same client and same server while several times are requested.
 
12:20 AM
@Tanaike you sure aren't alone in that desire :) afaik allowing access to request headers is a feature sought after for several years : issuetracker.google.com/issues/67764685
 
@OlegValter Thank you for the information. I had never seen it. When the request header can be retrieved, the method of Changes in Drive API can be used for the Web Apps. 👍
 
hopefully this will get implemented some time (this might be stalled due to GAE infrastructure being more popular and well-developed, but everything's possible, especially due to rise in GAS usage), but alas...
Pretty sure I've seen another issue tracker thread that is even older, btw
 
@OlegValter I would like to expect it! By the way, now I noticed the workaround for showing the log at Apps Script Dashboard without using the access token. After several tests, I publish it in my blog soon.
 
12:36 AM
@Tanaike hope we will all live to see it implemented :) Re:workaround - do tell if we can help out with testing or looking into - looking forward to the results
 
12:50 AM
In this case, "key=ok" is used at the client side. About this, of course, "key=ok" can be used in the server side.
 
 
4 hours later…
5:08 AM
@Tanaike Nice workaround. Calling the script again from the inside.
 
5:27 AM
@TheMaster Thank you. Yes. It's the recursive loop using UrlFetch.
When this workaround is used, it is not required to use the access token at the client side.
 
 
3 hours later…
8:05 AM
Good evening!
I confirmed that the recursive loop using UrlFetch cannot be achieved the infinite loop. The time out error occurs after 6 minutes from the execution of the script.
 
 
2 hours later…
9:59 AM
@Tanaike why though? Try adding return UrlfetchApp.fetch()?
As per vote:

 [VOTE] [google-apps-script-simple-tri

This is a room to vote on whether to synonimize [google-apps-s...
2
tags synonimization to claim created. Cast your official vote below:
 
Oof, don't have the score in the tags
 
@RafaGuillermo You only need 5 score in . Since we already have made a unanimous decision, You can change any of your answers tagged with or or any other answers related to triggers to
 
@TheMaster Yeah just did, can vote in the morning if it's not been synonymised by then
 
 
7 hours later…
 
4 hours later…
8:44 PM
Hello ! Anyone around ?
 
 
2 hours later…
11:06 PM
@TheMaster When return UrlfetchApp.fetch() is used, unfortunately, the error of timeout occurred.
Good morning!
 

« first day (17 days earlier)      last day (1378 days later) »