cozy / cozy-photos-v2

Deprecated - New : https://github.com/cozy/cozy-drive/tree/master/src/photos - Personal Photo Gallery Manager
http://cozy.io
GNU Affero General Public License v3.0
27 stars 25 forks source link

TypeError: path must be absolute or specify root to res.sendFile #175

Closed clochix closed 8 years ago

clochix commented 8 years ago
TypeError: path must be absolute or specify root to res.sendFile
    at ServerResponse.sendFile (/usr/local/cozy/apps/photos/node_modules/americano/node_modules/express/lib/response.js:389:11)
    at /usr/local/cozy/apps/photos/build/server/controllers/photo.js:236:18
    at Object.module.exports.checkPermissionsPhoto (/usr/local/cozy/apps/photos/build/server/controllers/sharing.js:110:12)
    at doPipe (/usr/local/cozy/apps/photos/build/server/controllers/photo.js:194:18)
    at module.exports.thumb (/usr/local/cozy/apps/photos/build/server/controllers/photo.js:248:10)
    at Layer.handle [as handle_request] (/usr/local/cozy/apps/photos/node_modules/americano/node_modules/express/lib/router/layer.js:82:5)
    at next (/usr/local/cozy/apps/photos/node_modules/americano/node_modules/express/lib/router/route.js:110:13)
    at Route.dispatch (/usr/local/cozy/apps/photos/node_modules/americano/node_modules/express/lib/router/route.js:91:3)
    at Layer.handle [as handle_request] (/usr/local/cozy/apps/photos/node_modules/americano/node_modules/express/lib/router/layer.js:82:5)
    at /usr/local/cozy/apps/photos/node_modules/americano/node_modules/express/lib/router/index.js:267:22
clochix commented 8 years ago

This error were thrown when the server is unable to access the photo (error in DS). The path of the error photo was wrong.

poupotte commented 8 years ago

Thanks @clochix