-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Content Encoding Error #668
Comments
Yes, the gulpfile.js needs some work. I was getting a corrupt gzipped font file and the final ".gz.h" byte array files were all coming out broken in some way resulting in the browser error you mentioned. You can take a look at my currently working gulpfile.js (note: there are extra functions because it is from the esp32-rfid fork): https://github.com/tctlrd/esp32-actl/blob/dev/tools/webfilesbuilder/gulpfile.js Here is a functional file to byte array creator:
|
Wow, I was not expecting to get any answer from the developers and yet there is an answer and solution for the problem now. You made my day, Thank you so much for your kindness. I will grab your code and give you a feedback soon ~ kemploe ~ |
Hey @tctlrd , would you be up for opening a pull request? Would be nice to merge efforts! I'm interested in supporting also ESP32, but I would prefer to keep also 8266 compatibility. |
Reading this a bit more, I see that you are on Windows. I cannot test Windows right now, so if you can open a PR here with the code that works for you, if it works for me too we can get it merged quite quickly :) |
@matjack1 yes, I plan to open a pull request; thank you! It will take some time since I am still working through the gulpfile. I am using linux and will not be testing on other operating systems. |
I have the same issue in Ubuntu 22.04 Desktop as well. ~ kemploe ~ |
Awesome! Thanks, I'll try it very soon, hopefully tomorrow :) |
@kemploe the code is now merged on stable, if you have time to test, it would be very nice, thanks! |
I tried to recompile websrc/index.html without success.
Here are the steps I have done:
Successfully downloaded the latest (v2.0.0) source code from https://github.com/esprfid/esp-rfid
Uncompress source code
Fire up VS Code and subsequently the Platform IO extention then open the esp-rfid
In tools/webfilesbuilder executed:
a. npm install gulp
b. npm install gulp-cli -g
c. npm install gulp -D
d. gulp
Back to VS Code in Platform IO I executed 'build' then 'upload'
Connected my laptop via Wi-Fi to 192.168.4.1
Fire up Firefox and open http://192.168.4.1
Firefox returned an error:
Did I missed something here?
My setup is:
Thanks a lot
The text was updated successfully, but these errors were encountered: