Sorry, I didn’t mean to suggest that any objects/files were deleted when they shouldn’t be. My program intentionally sent delete requests for all the objects/files under a path. Here is an actual browser console session:
Works as expected:
> await raw_rsclient.getListing('/never_used_path/')
[requests fetch] Response {type: 'cors', url: 'https://storage.5apps.com/dustinw/chatgptweb/never_used_path/', redirected: false, status: 200, ok: true, …}
remotestoragejs.js?v=90824a05:225 [WireClient] Successful request 43f7c78e19b08750294798ed695b6e5c
< {}
An apparently-corrupt path:
> await raw_rsclient.getListing('/approxModtime4/')
remotestoragejs.js?v=90824a05:225 [requests fetch] Response {type: 'cors', url: 'https://storage.5apps.com/dustinw/chatgptweb/approxModtime4/', redirected: false, status: 500, ok: false, …}
remotestoragejs.js?v=90824a05:225 [WireClient] Successful request null
Uncaught Folder description at https://storage.5apps.com/dustinw/chatgptweb/approxModtime4/ is not JSON
getAll('/approxModtime4/')
fails with the same error. storeObject
and getObject
are working for me now for paths rooted at the problematic /approxModtime4/
, so I may have been mistaken when I said I can’t store to a subpath of such a path.
The reason that folder is named /approxModtime4
is because /approxModtime3
, /approxModtime2
, etc were previously corrupted, and I’ve just been kicking this problem down the road while focusing on other dev tasks. The problems with those paths later “resolved” at some point (I don’t know why), in the sense that they no longer show up in getListing('/')
, and getListing('/approxModtime3/')
no longer errors.
Maybe the Redis issue resulted in an incomplete execution of the workflow for removing metadata associted with the folder after all the documents under it are deleted?
Anyway, thanks so much for your help and providing the service!