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
Receiving 105 error code even when using the admin account.
var Syno = require('syno');
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
var syno = new Syno({
// Requests protocol : 'http' or 'https' (default: http)
protocol: 'https',
// DSM host : ip, domain name (default: localhost)
host: '192.168.119.203',
// DSM port : port number (default: 5000)
port: '5001',
// DSM User account (required)
account: 'admin',
// DSM User password (required)
passwd: 'password'
});
function callback() {
console.log(arguments);
}
// File Station API - Provide File Station information
syno.fs.getFileStationInfo(callback);
// The above API call returns:
//{ '0': null,
// '1':
// { hostname: 'DiskStation',
// is_manager: true,
// support_sharing: true,
// support_vfs: true,
// support_virtual: 'cifs,iso' } }
// File Station API - Enumerate files in a given folder
syno.fs.listFiles({'folder_path':'/volume1/photo/'}, callback);
// The above API call returns:
// { '0': { [Error: The logged in session does not have permission] code: 105 } }
I've been running into this as well. It looks like it happens when the account I'm logging in as is not an administrator. Does anyone know if the auth API only allows admin users? I was hoping I could use a normal user account that has less privs.
The Auth API returns: {"error":{"code":402},"success":false}
Receiving
105
error code even when using the admin account.Found a similar issue at http://forum.synology.com/enu/viewtopic.php?f=223&t=76514 where the user said "I wasn't passing the Session ID by using GET".
The text was updated successfully, but these errors were encountered: