My Emacs crashed, and now it seems like my url cache is poisoned:
error in process filter: Opening input file: No such file or directory, c:/Users/zeta/.emacs.d/url/cache/zeta/http/localhost/ffa50f273d94812bd23dff56a1ca0757 [2 times]
error in process filter: Opening input file: No such file or directory, c:/Users/zeta/.emacs.d/url/cache/zeta/http/localhost/dc0cdf4984e3f18ede59d4de6a263e14 [2 times]
error in process filter: Opening input file: No such file or directory, c:/Users/zeta/.emacs.d/url/cache/zeta/http/localhost/ffa50f273d94812bd23dff56a1ca0757 [2 times]
How can I force url to forget its cache in order to get rid of those messages?
For completeness, here is the accompanying backtrace (with multiline enables and all ellipsis expanded):
Debugger entered--Lisp error: (file-missing "Opening input file" "No such file or directory" "c:/Users/zeta/.emacs.d/url/cache/zeta/http/localhost/ffa50f273d94812bd23dff56a1ca0757")
insert-file-contents-literally("c:/Users/zeta/.emacs.d/url/cache/zeta/http/localhost/ffa50f273d94812bd23dff56a1ca0757")
url-cache-extract("c:/Users/zeta/.emacs.d/url/cache/zeta/http/localhost/ffa50f273d94812bd23dff56a1ca0757")
url-http-parse-headers()
url-http-wait-for-headers-change-function(1 124 123)
url-http-generic-filter(#<process localhost> "HTTP/1.1 304 NOT MODIFIED\15\nServer: Werkzeug/2.1.2 Python/3.9.13\15\nDate: Fri, 02 Jun 2023 10:38:32 GMT\15\nConnection: close\15\n\15\n")
url? – roomworoof Jun 01 '23 at 08:42global-activity-watch-modeis active. But I'm more interested in a generic solution if possible. – Zeta Jun 01 '23 at 08:50~/.emacs.d/urldirectory before asking this question but after experiencing the issue :). I have no idea howurlstill thinks there is some cache. – Zeta Jun 01 '23 at 09:17request-backendis set to'url-retrieveto ensure that Windows' owncurldoes not break stuff. Everything worked fine until the crash today :/ – Zeta Jun 01 '23 at 09:20url-cache.elindicates that the test for whether a URL is in the cache or not is simply whether the hashed filename exists, so it makes little sense that an attempt was then made to go ahead and read a file which would have failed that initial test by virtue of not existing (race conditions aside). Maybe changeurl-cache-directoryand check whether or not the errors still refer to the old directory. If so, then the url cache probably isn't the problem. (Something elsewhere may be hanging onto those filenames.) – phils Jun 01 '23 at 09:21M-x toggle-debug-on-errorget you a backtrace? If so, add that to your question. – phils Jun 01 '23 at 09:24url-cache-extractthough. What is that? From the naming it's old-schooldefadviceso you may need toM-x rgrepyour config forurl-cache-extractto find out where that's being defined. – phils Jun 02 '23 at 07:53url-http-generic-filterruns the cached file wouldn't be present, unless maybe there was a file permissions problem preventing it from being cached in the first place. I do note thaturl-http-parse-headersisn't testingurl-is-cachedthough, but I also don't know whether it has options for proceeding if the cache file isn't there. I've not looked at this in-depth though, so I'm unsure of what should be happening here. – phils Jun 02 '23 at 08:07datatourl-http-generic-filterwith the http status code outside of this backtrace. – roomworoof Jun 02 '23 at 10:16restclientautoload. I've adjusted the backtrace after removing the package. – Zeta Jun 02 '23 at 10:39