http://localhost/ now working in browser mac
Solution 1
Try running the following command:
netstat -an -p tcp | grep 80 | grep LISTEN
you should get a line like this one :
tcp4 0 0 *.80 *.* LISTEN
If you don't, your server is not started, whatever the reason is.
If you are trying to access is your Web sharing, check the System settings -> Sharing -> Personal Web Sharing is active.
Solution 2
The error log reveals that \xe2\x80\x9c
appears twice in the path. That means that you have used ”
rather than "
in your path, which will not be interpreted correctly.
Replace them both with " instead and you should be good to go!
Related videos on Youtube
Pety Rewt
Updated on September 18, 2022Comments
-
Pety Rewt almost 2 years
The problem with displaying google picker in apps script when placing the script in a iframe of another web site. When you call the picker, a white square is displayed.
Not in the frame of another web site, the picker works fine.
HtmlService google apps script
https://stackoverflow.com/questions/40842627/embedding-google-apps-script-in-an-iframe#answer-40843413function doGet() { return HtmlService.createTemplateFromFile('form.html') .evaluate() .setXFrameOptionsMode(HtmlService.XFrameOptionsMode.ALLOWALL);}
The picker is based on this documentation -
https://developers.google.com/apps-script/guides/dialogs#file-open_dialogs
https://ctrlq.org/code/19747-google-forms-upload-files
I decided to try a demo premium script File Upload Form.Will insert the script into the frame, but the result was similar - an empty white square.
https://script.google.com/macros/s/AKfycbxlX3r_dt_ZLZC9TqloaqtdextROJoIH9mUDu3MWOiXtI6ADhqb/execExample
Whether it is possible to solve this problem.
-
imtheman almost 12 yearsWhat happens if you do
http://127.0.0.1/
? -
Bhushan almost 12 yearssame not working
-
YK_NL almost 12 yearsWhat error message do you get in the browser?
-
Bhushan almost 12 yearsOops! Google Chrome could not connect to localhost
-
Rhys almost 12 yearsSilly question: is apache2 started and listening on port 80?
-
Bhushan almost 12 yearshow do I check that? if its not, how do I start it?
-
-
Bhushan almost 12 yearshow do I check if web-server is running and if not running how do I start it
-
Bhushan almost 12 yearsI tried stoping and restarting web server with
apachectl stop
andapachectl start
command but still not working -
Dmitri Shuralyov almost 12 yearsHow to check if a web-server is running depends on the web-server. Which web-server did you install? Did you try following the instructions they've laid out for getting started?
-
Bhushan almost 12 yearsthe that comes with snow leopard, i guess its apache web server
-
Bhushan almost 12 yearsI can't see anything. how do I fix this?
-
Julien Ch. almost 12 yearsWhat do you expect to find when you access localhost ? Did you check that "Personal web sharing" is active ?
-
Bhushan almost 12 yearsyes it is active. I expect to see
It Works
message. Actually I am trying to setup phpmuadmin -
Julien Ch. almost 12 yearsFrom your error string i woulg guess that you weongly copied and pasted left and right quotation marks ( like “,” or «,») when setting up phpmyadmin. Did you check that?
-
Pety Rewt about 7 yearsI tried to install in the parent page X-Frame-Options: ALLOW-FROM script.google.com, did not help. I found out that the error Invalid 'X-Frame-Options' header encountered when loading' docs.google.com/…) )&rpctoken=x7q7llusvmq1&rpcService=tsleem8si4fc&thirdParty= True ':' ALLOW-FROM script.google.com 'is not a recognized directive. The header will be ignored. appears always. When outside the frame everything works.
-
Pety Rewt about 7 yearsWhen working in a iframe, an error is added Uncaught Error: Incorrect origin value. Please set it to - (window.location.protocol + '//' + window.location.host) and the picker is not displayed, only the white square.
-
Pety Rewt about 7 yearsUncaught Error: Incorrect origin value. Please set it to - (window.location.protocol + '//' + window.location.host) of the top-most page at new cJ (docs.google.com/picker/...-picker_modularized_opc.js:940:94) at _createPicker (docs.google.com/picker/static/…) at init (docs.google.com/……%7D))&rpctoken=1whfx63vzx2v&rpcService=...=true:273:23) at onload (docs.google.com/……%7D))&rpctoken=...y=true:243:44)
-
365SplendidSuns about 7 years@PetyRewt, I'm having the same problem displaying a Google Sheet in an iFrame. The sheet shows fine but if you need to open the picker to import from another sheet or insert n image etc then the picker shows blank with the same error message. Since I don't have the google sheets code on my server is there somewhere I can put the setOrigin code?
-
Pety Rewt about 7 yearsPerhaps you need to implement a insert images as an add-on to the table using google apps script developers.google.com/apps-script/articles/… When implementing a picker change setOrigin in function createPicker. developers.google.com/apps-script/guides/…