-
• #2
It's this issue: https://www.techradar.com/news/slack-down-top-websites-see-outages-as-lets-encrypts-ca-certificate-expires
I believe everything is back to normal now?
-
• #3
Fri 2021.10.08 - 10:59am CST
'I believe everything is back to normal now?'
No
Just tried several times. However, this seems specific to the native app and not the online IDE.
I am able to build/run a local project with the content as a module, not all recent members may know of this technique, and that presumes the .js module had been previously saved to disk.
While I realize the online IDE will be the future, the native app
Web IDE version 0.70.6
is more stable for my use, as the online IDE is still a bit buggy on Windows.If the issue was related to link in post #2, I'm wondering what subtle difference exists that wont allow the native app making the same module .js fetch, errors in comparison to the online IDE making the similar browser request?
-
• #4
Are you still getting this exact same error:
error : Error: certificate has expired
Or is it something else? I guess possibly the NW.js version used for the Native IDE doesn't support the new HTTPS certificate style used for LetsEncrypt. Sounds odd but it's possible.
I believe a quick fix is just to go to Settings -> Communications -> Module URL and change
https://www.espruino.com/modules
to http://www.espruino.com/modules`Since you're native, the lack of HTTPS won't matter
-
• #5
Mon 2021.10.11
'Are you still getting this exact same error:'
Yes and now another as a prefix:
ERROR: Found module, but search took too long.
I'm just sending the single line require snippet as in post #1
nfo":"","Sound_Success":"","Sound_Warning":"","Speak_Error":false,"Speak_Info":false,"Speak_Success":false,"Speak_Warning":false,"UI_MODE":"Normal","WEBCAM_CONSTRAINTS":0,"projectEntry":"3283B07BECAAF13E2A9156A1F2A10BC4"} loadModule(AT24) ERROR: Found module, but search took too long. ERROR: getURL("https://www.espruino.com/modules/AT24.min.js") error : Error: certificate has expired ERROR: getURL("https://www.espruino.com/modules/AT24.js") error : Error: certificate has expired WARNING: [notify_warn] Module AT24 not found Found a prompt... great! >>> Sending... ---> "\u0010reset();\n\u0010\n\u0010\u001b[2dvar ee = require(\"AT24\").connect(i2c, pagesize, capacity, i2caddress);\n\n" Splitting for reset(), delay 250 >>> Sent SET chrome.storage.sync = {"AUTO_SAVE_CODE":true,"BAUD_RATE":"115200","BLOCKLY_EXTENSIONS":"|bluetooth|robot|","BLOCKLY_LANGUAGE":"en","BLOCKLY_TO_JS":false,"BOARD_JSON_URL":"http://www.espruino
'I believe a quick fix is just to go to Settings -> Communications -> Module URL'
Did that and success!
The first line below of the module is now fetched:
fo":"","Sound_Success":"","Sound_Warning":"","Speak_Error":false,"Speak_Info":false,"Speak_Success":false,"Speak_Warning":false,"UI_MODE":"Normal","WEBCAM_CONSTRAINTS":0,"projectEntry":"3283B07BECAAF13E2A9156A1F2A10BC4"} Config.MODULE_URL => http://www.espruino.com/modules - AT24 requires [] Found a prompt... great! >>> Sending... ---> "\u0010reset();\n\u0010Modules.addCached(\"AT24\",\" /* Copyright (C) 2014-2015 Spence Konde. See the file LICENSE for copying permission. */\\n /*\\nThis module interfaces with I2C EEPROMs, like the AT24C256. \\n\\nThis only supports EEPROMs with 16-
'Since you're native, the lack of HTTPS won't matter'
Learned something. I was under the impression that requests would be denied to the requester should the certificate not be active and the 's' URL request is not made. As (assumption) the native app .js module request doesn't appear as a browser request, we get away with it in this instance.
'I guess possibly the NW.js version used for the Native IDE'
Unknown what that file does or how to access it.
It is interesting that the browser request using the online ide is accepted, but the native app isn't. The certificate isn't changing, the URL request goes to the same location, just the request to a secure server is different.
-
• #6
ERROR: Found module, but search took too long.
comes because I believe you have enabled the Project mode and it seems you also have the module stored locally on your hard disk? We hit this ages ago with your system, and I ended up globally raising the time limit just for you - but it seems maybe your PC has got even slower recently? :)I don't know, but it's possible you might have copied all the modules into your local project folder for some reason? In which case maybe the overhead of searching them all is slowing it down?
Either way as long as the file can be found online I guess everything is good.
I was under the impression that requests would be denied
It's only when you make an HTTP request from an HTTPS webpage - but since the IDE is served off your local hard disk there is no such restriction
-
• #7
Sat 2021.10.16
'I believe you have enabled the Project mode and it seems you also have the module stored locally on your hard disk?'
Well, you know your stuff! I am working from a project, and when the cert error popped up, I quick grabbed a copy of AT24.js and saved it, in case the ability to recover never occurs. My main concern is that other recent end users may not have the knowledge on how to work that way, So I create this thread.
'I ended up globally raising the time limit just for you'
I had forgotten that, dug it up and re-read:
Placing module code in local modules folder doesn't appear
post #12 there http://forum.espruino.com/comments/14419110/
I re-read @Wilberforce #10 and link along with @allObjects #11 (there - above link) source reference and it appears post #22 that the order was never updated.
'but it's possible you might have copied all the modules into your local project folder'
No. I only have the one AT24.js file there. One thought that has popped up is that it appears most are developing within a Linux/Unix environment, as I seem to be one of a few that have ongoing devlopment, and on Windows10. I have noticed over the last two years, that at times, my PC comes to a dead stop. Often wondered what it was up to, and discovered that as I have the Windows Update feature set to download in background and allow the user to install option selected, was done as in automatic mode, my system would be taken prisoner until the update completed. At one point, it took over 48 hours to update! I had no access to the Internet, email, news etc until that was complete. Horrid! I have less headaches having the files d/l in the background, but at times the system locks up. When I check the WindowsUpdate.log file, I can see multiple failed attempts with the current time/date stamp, at gaining the ability to d/l files it requires. This seems to be the culprit.
Another thought, I was ping-pong'ing back-n-forth placing a prefix tilde on the AT24.js file so that it wouldn't be located to force a fetch across the web. Maybe the queue during the folder file retrieval somehow became corrupt?
'maybe the overhead of searching them all'
While I have only the one .js file in the modules folder, I do have around ten feature flavors for each of the projects or devices I'm working on, selectable by Settings >> Project all in the root. I've been under the impression that the WebIDE would only search within the modules folder of the currently selected project, which is how most apps function. Could it be that having multiple modules folders is somehow being traversed? Doesn't appear likely as from Wilberforce #10 and link git source above.
-
• #8
I've been under the impression that the WebIDE would only search within the modules folder of the currently selected project
That should be the case - however if there are lots of folders within the current project folder I guess that could slow things down?
-
• #9
Mon 2021.10.18
' if there are lots of folders within the current project folder'
What is the range for 'lots'? I feel this representation is 'several'.
Here is a sample from one project folder. That folder is what is loaded IDE >> Settings >> Project :: Select Directory for Sandbox
These are the folders there, created when the native IDE selects the project after clicking the button above.
Most are empty of files, 1-4 in modules, 1-~10 in projects, 1 in snippets.
C:\EspruinoMQTT \binary \firmware \modules \projects \snippets \testing \testinglog
At most a list of ~25 individual items beneath each project folder.
Sun 2021.010.03
Previously working code now produces the error:
Error: certificate has expired
WebIDE console output
Interestingly, the Chrome browser is able to fetch - cache maybe?
Clicking on padlock icon: SSL Expires Wednesday, November 17, 2021 6:42:34 PM