jczic / MicroWebSrv2

The last Micro Web Server for IoTs (MicroPython) or large servers (CPython), that supports WebSockets, routes, template engine and with really optimized architecture (mem allocations, async I/Os). Ready for ESP32, STM32 on Pyboard, Pycom's chipsets (WiPy, LoPy, ...). Robust, efficient and documented!
https://github.com/jczic/MicroWebSrv2
MIT License
662 stars 97 forks source link

pyhtml tot being served in lopy #25

Closed note5 closed 4 years ago

note5 commented 4 years ago

I have installed the server on lopy But the files apart from index.html are not being served, I get a 404, even the png image is not being loaded (404 from the network tab of chrome dev tools. Is it a file format issue with lopy, is there a fix for this?

jczic commented 4 years ago

Hello, MicroWebSrv2 works on Pycom LoPy. Could you publish the debug-logs please? Do you have checked your files system by FTP on your LoPy?

note5 commented 4 years ago

This is what I get when I click the pdf link [image: image.png]

this is the files I see when using ftp [image: image.png] I have only cloned the repo and added boot.py and wifi connection code in the main.py file

On Fri, Feb 7, 2020 at 2:21 AM J-Christophe Bos notifications@github.com wrote:

Hello, MicroWebSrv2 works on Pycom LoPy. Could you publish the debug-logs please? Do you have checked your files system by FTP on your LoPy?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jczic/MicroWebSrv2/issues/25?email_source=notifications&email_token=AEFPX6H66R3CMJZDFZFAA4LRBSLOVA5CNFSM4KQH6TDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELBE4AQ#issuecomment-583159298, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEFPX6AGMWUXRK4Y3YTVTGTRBSLOVANCNFSM4KQH6TDA .

note5 commented 4 years ago

This is my project file

On Mon, Feb 10, 2020 at 7:04 AM Note 3 note5mn@gmail.com wrote:

This is what I get when I click the pdf link [image: image.png]

this is the files I see when using ftp [image: image.png] I have only cloned the repo and added boot.py and wifi connection code in the main.py file

On Fri, Feb 7, 2020 at 2:21 AM J-Christophe Bos notifications@github.com wrote:

Hello, MicroWebSrv2 works on Pycom LoPy. Could you publish the debug-logs please? Do you have checked your files system by FTP on your LoPy?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jczic/MicroWebSrv2/issues/25?email_source=notifications&email_token=AEFPX6H66R3CMJZDFZFAA4LRBSLOVA5CNFSM4KQH6TDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELBE4AQ#issuecomment-583159298, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEFPX6AGMWUXRK4Y3YTVTGTRBSLOVANCNFSM4KQH6TDA .

jczic commented 4 years ago

Hello @note5 and sorry for the late. Your messages are not visible on github : https://github.com/jczic/MicroWebSrv2/issues/25 (Don't forget to publish the term/repl logs).

theBASTI0N commented 4 years ago

Hey,

I had this same issue on a WiPy if you are using pymakr to upload your files, you will need to go to Pymakr Global Settings and add ico and pyhtml files to "Upload File Types"

jczic commented 4 years ago

@theBASTI0N 👍

note5 commented 4 years ago

thank you it, has really saved me