You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The static file functions (listFiles, updateFile, deleteFile, createDirectory, uploadFile) return the got promise without await inside a try. A rejected request skips the catch, so err.statusCode is never set.
As a result, a missing path comes back from the platform API as a 400 "HTTPError: Response code 404 (Not Found)" instead of a 404, because the forge routes only map errors that have statusCode === 404.
Fix: await the requests and read err.response?.statusCode.
Activity