holochain / dev-camp-playground

10 stars 5 forks source link

Access to localhost was denied 403 on Windows #1

Open krisrandall opened 5 years ago

krisrandall commented 5 years ago

Running this tutoria (day1) l in a large group - all the Mac users successfully see the app at http://localhost:3000/ and all the Windows users (4 of them) instead see "Access to localhost was denied", getting a 403 returned.
This is in Chrome. In other browsers (Water on one machine, Firefox on another) it instead comes up with a blank page, however the favicon icon is displaying.

There is nothing in the terminal output which is suggesting an error to me :

$ sh run-windows-gnu.sh                                                                                                                      
Using config path: ./conductor-config.toml                                                                                                   
Reading DNA from dna/events-goer-4000.hcpkg                                                                                                  
adding ui interface ui-interface                                                                                                             
Successfully loaded 1 instance configurations                                                                                                
Starting all of them...                                                                                                                      
Starting instance "events-goer-4000"...                                                                                                      
Starting interfaces...                                                                                                                       
2019-02-18 13:25:33:events-goer-4000: debug/net/handle: HandleStoreEntry: EntryData { dna_address: HashString("QmZf8uSBN4NSWMi1DqFTdM8VdXwTyz
GjiMfowG5zEJLsVd"), provider_agent_id: "sandwich--------------------------------------------------------------------------AAAEqzh28L", entry_
address: HashString("sandwich--------------------------------------------------------------------------AAAEqzh28L"), entry_content: Object({"
entry": Object({"AgentId": Object({"nick": String("HoloTester1"), "key": String("sandwich----------------------------------------------------
----------------------AAAEqzh28L")})}), "header": Object({"entry_type": String("AgentId"), "entry_address": String("sandwich-----------------
---------------------------------------------------------AAAEqzh28L"), "provenances": Array([Array([String("sandwich-------------------------
-------------------------------------------------AAAEqzh28L"), String("TODO")])]), "link": String("Qmeart72XoDYTHNRbS34KqwDtCN8TZTSBK2SKUdLVc
dPPZ"), "link_same_type": Null, "link_crud": Null, "timestamp": String("1970-01-01T00:00:00+00:00")})}) }                                    
2019-02-18 13:25:33:events-goer-4000: debug/conductor:  instantiated                                                                         
Done.                                                                                                                                        
Starting UI servers                                                                                                                          
Starting all servers                                                                                                                         
About to serve path "./ui" at http://127.0.0.1:3000                                                                                          
Server started for "ui-interface"                                                                                                            
Listening on http://127.0.0.1:3000                                                                                                           
2019-02-18 13:25:33:events-goer-4000: debug/net/handle: HandleStoreMeta: DhtMetaData { dna_address: HashString("QmZf8uSBN4NSWMi1DqFTdM8VdXwTy
zGjiMfowG5zEJLsVd"), provider_agent_id: "sandwich--------------------------------------------------------------------------AAAEqzh28L", entry
_address: HashString("sandwich--------------------------------------------------------------------------AAAEqzh28L"), attribute: "crud-status
", content_list: [String("live")] }                                                                                                          
2019-02-18 13:25:33:events-goer-4000: debug/net/handle: HandleStoreMeta: got CRUD status. processing...                                      
2019-02-18 13:25:34:events-goer-4000: debug/net/handle: HandleSendMessage: MessageData { dna_address: HashString("QmZf8uSBN4NSWMi1DqFTdM8VdXw
TyzGjiMfowG5zEJLsVd"), request_id: "puid-2-0", to_agent_id: "sandwich------------------------------------------------------------------------
--AAAEqzh28L", from_agent_id: "sandwich--------------------------------------------------------------------------AAAEqzh28L", content: Object
({"RequestValidationPackage": String("sandwich--------------------------------------------------------------------------AAAEqzh28L")}) }     
2019-02-18 13:25:34:events-goer-4000: debug/net/handle: SendMessageResult: MessageData { dna_address: HashString("QmZf8uSBN4NSWMi1DqFTdM8VdXw
TyzGjiMfowG5zEJLsVd"), request_id: "puid-2-0", to_agent_id: "sandwich------------------------------------------------------------------------
--AAAEqzh28L", from_agent_id: "sandwich--------------------------------------------------------------------------AAAEqzh28L", content: Object
({"ValidationPackage": Object({"chain_header": Object({"entry_type": String("AgentId"), "entry_address": String("sandwich--------------------
------------------------------------------------------AAAEqzh28L"), "provenances": Array([Array([String("sandwich----------------------------
----------------------------------------------AAAEqzh28L"), String("TODO")])]), "link": String("Qmeart72XoDYTHNRbS34KqwDtCN8TZTSBK2SKUdLVcdPP
Z"), "link_same_type": Null, "link_crud": Null, "timestamp": String("1970-01-01T00:00:00+00:00")}), "source_chain_entries": Null, "source_cha
in_headers": Null, "custom": Null})}) }      
Connoropolous commented 5 years ago

Hi Kris!

We've seen the same report come in on the forums as well. We have prioritized investigation into this internally, and will be working on a solution for you!

In case you haven't seen it, the related forum post is here: https://devcamp.holo.host/mod/forum/discuss.php?d=350#p1316

zippy commented 5 years ago

Turns out that the issue here is that you just have to type in the full url:: http://localhost:3000/index.html Not sure yet why this is required on windows and not linux/mac.

Connoropolous commented 5 years ago

We will update the instructions in the README for windows