res.sendFile not receiving a path argument #437

Closed
opened 2018-05-08 00:25:45 +02:00 by bones7242 · 3 comments
bones7242 commented 2018-05-08 00:25:45 +02:00 (Migrated from github.com)
Error on /Ichigo.Chocola.Flavor
stack: 'TypeError: path argument is required to res.sendFile\n    at ServerResponse.sendFile (/home/lbry/www.spee.ch/node_modules/express/lib/response.js:411:11)\n    at serveFile (/home/lbry/www.spee.ch/node_modules/spee.ch/server/controllers/assets/utils/serveFile.js:11:19)\n    at getClaimId.then.then.then.fileRecord (/home/lbry/www.spee.ch/node_modules/spee.ch/server/controllers/assets/utils/getClaimIdAndServeAsset.js:26:7)'
message: 'path argument is required to res.sendFile'

It is happening very rarely, but I noticed this error in #speech. It looks like somehow sendFile is not receiving a filepath sometimes. Only saw this with this route.

``` Error on /Ichigo.Chocola.Flavor stack: 'TypeError: path argument is required to res.sendFile\n at ServerResponse.sendFile (/home/lbry/www.spee.ch/node_modules/express/lib/response.js:411:11)\n at serveFile (/home/lbry/www.spee.ch/node_modules/spee.ch/server/controllers/assets/utils/serveFile.js:11:19)\n at getClaimId.then.then.then.fileRecord (/home/lbry/www.spee.ch/node_modules/spee.ch/server/controllers/assets/utils/getClaimIdAndServeAsset.js:26:7)' message: 'path argument is required to res.sendFile' ``` It is happening very rarely, but I noticed this error in #speech. It looks like somehow `sendFile` is not receiving a filepath sometimes. Only saw this with this route.
bones7242 commented 2018-05-09 22:12:27 +02:00 (Migrated from github.com)

Another instance of this happening:

Error on /@lbryteam:6/mike-vine.jpg
stack: 'TypeError: path argument is required to res.sendFile\n    at ServerResponse.sendFile (/home/lbry/www.spee.ch/node_modules/express/lib/response.js:411:11)\n    at serveFile (/home/lbry/www.spee.ch/node_modules/spee.ch/server/controllers/assets/utils/serveFile.js:11:19)\n    at getClaimId.then.then.then.fileRecord (/home/lbry/www.spee.ch/node_modules/spee.ch/server/controllers/assets/utils/getClaimIdAndServeAsset.js:26:7)'
message: 'path argument is required to res.sendFile'
Another instance of this happening: ``` Error on /@lbryteam:6/mike-vine.jpg stack: 'TypeError: path argument is required to res.sendFile\n at ServerResponse.sendFile (/home/lbry/www.spee.ch/node_modules/express/lib/response.js:411:11)\n at serveFile (/home/lbry/www.spee.ch/node_modules/spee.ch/server/controllers/assets/utils/serveFile.js:11:19)\n at getClaimId.then.then.then.fileRecord (/home/lbry/www.spee.ch/node_modules/spee.ch/server/controllers/assets/utils/getClaimIdAndServeAsset.js:26:7)' message: 'path argument is required to res.sendFile' ```
tzarebczan commented 2018-07-31 19:38:28 +02:00 (Migrated from github.com)

Related from #spee.ch-info...still not sure how these are happening.
http://spee.ch/1eefcc51f95969a458f2a080593c813bd1ab1732/IMG20180118161246.jpeg


no fileType provided for undefined
Error on /1eefcc51f95969a458f2a080593c813bd1ab1732/IMG20180118161246.jpeg
stack: 'TypeError: path argument is required to res.sendFile\n    at ServerResponse.sendFile (/home/lbry/www.spee.ch/node_modules/express/lib/response.js:411:11)\n    at serveFile (/home/lbry/www.spee.ch/node_modules/spee.ch/server/controllers/assets/utils/serveFile.js:14:19)\n    at getClaimId.then.then.then.then.fileRecord (/home/lbry/www.spee.ch/node_modules/spee.ch/server/controllers/assets/utils/getClaimIdAndServeAsset.js:31:7)\n    at <anonymous>'
message: 'path argument is required to res.sendFile'
Related from #spee.ch-info...still not sure how these are happening. http://spee.ch/1eefcc51f95969a458f2a080593c813bd1ab1732/IMG20180118161246.jpeg ``` no fileType provided for undefined Error on /1eefcc51f95969a458f2a080593c813bd1ab1732/IMG20180118161246.jpeg stack: 'TypeError: path argument is required to res.sendFile\n at ServerResponse.sendFile (/home/lbry/www.spee.ch/node_modules/express/lib/response.js:411:11)\n at serveFile (/home/lbry/www.spee.ch/node_modules/spee.ch/server/controllers/assets/utils/serveFile.js:14:19)\n at getClaimId.then.then.then.then.fileRecord (/home/lbry/www.spee.ch/node_modules/spee.ch/server/controllers/assets/utils/getClaimIdAndServeAsset.js:31:7)\n at <anonymous>' message: 'path argument is required to res.sendFile' ```
alyssaoc commented 2018-12-18 20:35:35 +01:00 (Migrated from github.com)

closing, reopen if you find it again

closing, reopen if you find it again
This discussion has been locked. Commenting is limited to contributors.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/spee.ch#437
No description provided.