Status Update
Comments
vi...@gmail.com <vi...@gmail.com> #2
Generated Metadata
- Summary: The Apps Script application is not working as expected. The first page works, but the second page does not. It is difficult to determine the root cause without additional information.
- Tags:
Additional resources:
https://developers.google.com/apps-script/guides/support/troubleshooting https://developers.google.com/apps-script/support https://stackoverflow.com/.../how-to-debug-or-view-logs-in-google-app-scr... https://stackoverflow.com/.../appscript-webapp-hyperlink-not-working-the-... https://stackoverflow.com/.../serve-separate-html-pages-google-apps-script-...
You can
bl...@google.com <bl...@google.com> #3
st...@gmail.com <st...@gmail.com> #4
Facing the same issue with my web app. Customers open a link leading to the web app via iOS instagram browser and are unable to proceed due to due undefined
being shown. Possible workaround is to open the page in an external browser, but that is a non-obvious solution for the user.
jp...@google.com <jp...@google.com> #5
Can you share the output of the Apps Script Web HTTP request, specifically the headers and the body of the response after redacting any personal information? Does it return the same response if you spoof the agent in the HTTP call to match the instagram browser?
st...@gmail.com <st...@gmail.com> #6
Device: iPhone 13 Pro iOS Version 17.1.2
My setup: The Google Web App is embedded as iFrame in the website. Tried spoofing user agent to the Safari Browser agent if the Instagram Browser agent is detected, but results remains the same.
Logs for Instagram Browser in iOS (Web App returns "undefined")
2|app | Request Headers: {
2|app | connection: 'upgrade',
2|app | host: 'myRedactedWebsite.com',
2|app | 'sec-fetch-site': 'cross-site',
2|app | 'accept-encoding': 'gzip, deflate, br',
2|app | 'if-none-match': 'W/"40d-Yo4aoXJWxlKJb0RDqgp4bxquM9w"',
2|app | 'sec-fetch-mode': 'navigate',
2|app | accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
2|app | 'user-agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 17_1_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148',
2|app | referer: 'https://l.instagram.com/',
2|app | 'sec-fetch-dest': 'document',
2|app | 'accept-language': 'en-GB,en;q=0.9'
2|app | }
2|app | Request Body: undefined
Logs for Safari Browser on iOS (Web App serves content)
2|app | Request Headers: {
2|app | connection: 'upgrade',
2|app | host: 'myRedactedWebsite.com',
2|app | 'sec-fetch-site': 'none',
2|app | 'upgrade-insecure-requests': '1',
2|app | 'sec-fetch-mode': 'navigate',
2|app | accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
2|app | 'user-agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 17_1_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1.2 Mobile/15E148 Safari/604.1',
2|app | 'accept-language': 'en-GB,en;q=0.9',
2|app | 'sec-fetch-dest': 'document',
2|app | 'accept-encoding': 'gzip, deflate'
2|app | }
2|app | Request Body: undefined
vi...@gmail.com <vi...@gmail.com> #7
ah...@gmail.com <ah...@gmail.com> #8
jp...@google.com <jp...@google.com>
ma...@yslab.pl <ma...@yslab.pl> #9
any workaround or solution? I have same problem now
Description
Here's the example of a simple code 1:
function doGet(e) {
return HtmlService.createHtmlOutputFromFile('page');
}
I get 'undefined' error only in Instagram iOS Browser. Any other browser (Computer or Android) works fine
(WhatsApp Image 2023-11-30 at 22.49.01.jpeg)
I've tried to use ContentService instead of HtmlService just to test and this worked, code and screen below
function doGet(e) {
return ContentService.createTextOutput("TESTE!");
}
(WhatsApp Image 2023-11-30 at 23.11.17.jpeg)
To reproduce the error you have to open the script with iOS Instagram browser - you can do it by sharing the link with someones inbox and clicking directly on it.
Additiona info: it started on Nov 1st, I saw there was an update from Instagram iOS App...
Thanks in advance