janvda / node-red-contrib-google-photos

Node-RED node for Google APIs using OAuth2.
MIT License
0 stars 0 forks source link

when uploading photo getting error ` Error: EISDIR: illegal operation on a directory, read` #5

Closed janvda closed 4 years ago

janvda commented 4 years ago

Here the error:

3 Dec 22:33:37 - [warn] [google:google photos] node.on('input'):[object Object]
3 Dec 22:33:37 - [warn] [google:google photos] upload_photo ...
3 Dec 22:33:37 - [warn] [google:google photos] ... end node.on()
3 Dec 22:33:37 - [red] Uncaught Exception:
3 Dec 22:33:37 - Error: EISDIR: illegal operation on a directory, read
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-red-docker@1.0.3 start: `node $NODE_OPTIONS node_modules/node-red/red.js $FLOWS "--userDir" "/data"`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the node-red-docker@1.0.3 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /usr/src/node-red/.npm/_logs/2019-12-03T22_33_37_736Z-debug.log

FYI this is the message sent to the google node:

{
    "operation": "upload_photo",
    "albumId": "AFJWXT.....bgOh",
    "fileName": "image.png",
    "filePath": "/data/photos",
    "description": "This a test description"
}
janvda commented 4 years ago

filePath must also contain the fileName. So it must not be "filePath": "/data/photos", but "filePath": "/data/photos/image.png",

Edgar097 commented 2 years ago

hi