{"action":"created","issue":{"url":"https://api.github.com/repos/espressif/arduino-esp32/issues/2020","repository_url":"https://api.github.com/repos/espressif/arduino-esp32","labels_url":"https://api.github.com/repos/espressif/arduino-esp32/issues/2020/labels{/name}","comments_url":"https://api.github.com/repos/espressif/arduino-esp32/issues/2020/comments","events_url":"https://api.github.com/repos/espressif/arduino-esp32/issues/2020/events","html_url":"https://github.com/espressif/arduino-esp32/issues/2020","id":377528346,"node_id":"MDU6SXNzdWUzNzc1MjgzNDY=","number":2020,"title":"WebServer","user":{"login":"MartinDavidWaller","id":8803621,"node_id":"MDQ6VXNlcjg4MDM2MjE=","avatar_url":"https://avatars0.githubusercontent.com/u/8803621?v=4","gravatar_id":"","url":"https://api.github.com/users/MartinDavidWaller","html_url":"https://github.com/MartinDavidWaller","followers_url":"https://api.github.com/users/MartinDavidWaller/followers","following_url":"https://api.github.com/users/MartinDavidWaller/following{/other_user}","gists_url":"https://api.github.com/users/MartinDavidWaller/gists{/gist_id}","starred_url":"https://api.github.com/users/MartinDavidWaller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartinDavidWaller/subscriptions","organizations_url":"https://api.github.com/users/MartinDavidWaller/orgs","repos_url":"https://api.github.com/users/MartinDavidWaller/repos","events_url":"https://api.github.com/users/MartinDavidWaller/events{/privacy}","received_events_url":"https://api.github.com/users/MartinDavidWaller/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-05T18:35:39Z","updated_at":"2018-11-06T10:39:44Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI've recently moved some code from the NodeMCU environment to the ESP32 environment and I've found something very odd with the WebServer code. I've refreshed my sources from today and it still fails.\r\n\r\nI have an index.html file stored in SPIFFS that contains the header:\r\n\r\n    <link rel=\"stylesheet\" type=\"text/css\" href=\"styles.css\" media=\"all\" />\r\n    <script type=\"text/javascript\" src=\"jquery-3.2.1.min.js\"></script>\r\n\r\nThe server code makes use of the standard pattern:\r\n\r\n    server.onNotFound([]() {    \r\n\r\n      // Try to send the file requested\r\n      \r\n      if (!handleFileRead(server.uri())) {\r\n\r\n        // We have not located the file, return not found.\r\n        \r\n        server.send(404, \"text/plain\", \"404: Not Found\");  \r\n      }\r\n    });\r\n\r\nand the handlerFileRead method starts with:\r\n\r\nbool handleFileRead(String path) {\r\n\r\n  // A request has come in for a file, we can process that here.\r\n\r\n  Serial.println(\"\");\r\n  Serial.println(\"File requested:\" + path);\r\n\r\nThis all seems to work fine, the index.html file is served as expected and the styles.css file is severed as expected. The jquery-3.2.1.min.js request is never server when requested via the index.html page? Seemingly the request never gets as far as the handlerFileRead method.\r\n\r\nHowever, if I request the jquery-3.2.1.min.js file directly then it works.\r\n\r\nIt's almost as if it can't handle all the requests from the index.html page. Using Chrome to try and debug this I can see the request going out correctly from index.html but Chrome shows no response?\r\n\r\nI wonder if anyone else has similar issues. This worked fine on the NodeMCU device.\r\n\r\nAny help / guidance much appreciated.\r\n\r\nMartin"},"comment":{"url":"https://api.github.com/repos/espressif/arduino-esp32/issues/comments/436208356","html_url":"https://github.com/espressif/arduino-esp32/issues/2020#issuecomment-436208356","issue_url":"https://api.github.com/repos/espressif/arduino-esp32/issues/2020","id":436208356,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjIwODM1Ng==","user":{"login":"MartinDavidWaller","id":8803621,"node_id":"MDQ6VXNlcjg4MDM2MjE=","avatar_url":"https://avatars0.githubusercontent.com/u/8803621?v=4","gravatar_id":"","url":"https://api.github.com/users/MartinDavidWaller","html_url":"https://github.com/MartinDavidWaller","followers_url":"https://api.github.com/users/MartinDavidWaller/followers","following_url":"https://api.github.com/users/MartinDavidWaller/following{/other_user}","gists_url":"https://api.github.com/users/MartinDavidWaller/gists{/gist_id}","starred_url":"https://api.github.com/users/MartinDavidWaller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartinDavidWaller/subscriptions","organizations_url":"https://api.github.com/users/MartinDavidWaller/orgs","repos_url":"https://api.github.com/users/MartinDavidWaller/repos","events_url":"https://api.github.com/users/MartinDavidWaller/events{/privacy}","received_events_url":"https://api.github.com/users/MartinDavidWaller/received_events","type":"User","site_admin":false},"created_at":"2018-11-06T10:39:44Z","updated_at":"2018-11-06T10:39:44Z","author_association":"NONE","body":"The chip being used is the ESP32 chip with 2 CPU cores, WiFi/BT/BLE, silicon revision 1, 4MB external flash.\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"MartinDavidWaller"}}