Open haraldschilly opened 5 years ago
I just tried unzipping a zip file (on my ipad with cocalc) and it seemed to work fine. How does one reproduce this? Is it a heisenbug? Or Safari only or something? @DrXyzzy ?
I haven't seen errors unzipping .zip archives from the Files list lately on macOS & ChromeOS. @haraldschilly, can you provide context?
well, all the context I have is above. I tried to replicate it, in various ways, but no luck. Hmm …
NOTE: I've changed the text of this error in app-framework.ts to be clearer:
- throw Error("store_name of spec *must* be defined");
+ throw Error(
+ "WARNING: redux spec is invalid because it contains 'undefined' as a key. " + JSON.stringify(spec)
+ );
well, after that change I'm not much wiser:
Error: WARNING: redux spec is invalid because it contains 'undefined' as a key. {"undefined":{}}
at Function.mapToProps (https://cocalc.com/static/smc-9172f4cb34eb6ab47f54.cacheme.js?9172f4cb34eb6ab47f54:5:8438)
at n (https://cocalc.com/static/0-9172f4cb34eb6ab47f54.cacheme.js?9172f4cb34eb6ab47f54:6:7409586)
at Function.n.mapToProps (https://cocalc.com/static/0-9172f4cb34eb6ab47f54.cacheme.js?9172f4cb34eb6ab47f54:6:7409704)
at n (https://cocalc.com/static/0-9172f4cb34eb6ab47f54.cacheme.js?9172f4cb34eb6ab47f54:6:7409568)
at https://cocalc.com/static/0-9172f4cb34eb6ab47f54.cacheme.js?9172f4cb34eb6ab47f54:6:7410950
at https://cocalc.com/static/0-9172f4cb34eb6ab47f54.cacheme.js?9172f4cb34eb6ab47f54:6:7410988
at Object.run (https://cocalc.com/static/0-9172f4cb34eb6ab47f54.cacheme.js?9172f4cb34eb6ab47f54:6:7407522)
at s.c.initSelector (https://cocalc.com/static/0-9172f4cb34eb6ab47f54.cacheme.js?9172f4cb34eb6ab47f54:6:7407703)
at new s (https://cocalc.com/static/0-9172f4cb34eb6ab47f54.cacheme.js?9172f4cb34eb6ab47f54:6:7406471)
at ai (https://cocalc.com/static/0-9172f4cb34eb6ab47f54.cacheme.js?9172f4cb34eb6ab47f54:6:4539085)
well, after that change I'm not much wiser:
I didn't change anything else to prevent this -- I just changed the error message.
This is the sort of thing maybe Typescript could detect at compile time some day... Hmm... @johnjeng -- any ideas?
This happens for "zip" files
chrome:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36
smc_git_rev: 102fc19a0a586c0b4557af63ab9bb5124228f24e
Date: 2019-04-21 09:26:26.402092
store_name of spec *must* be defined