Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Error: The logged in session does not have permission] code: 105 #15

Closed
kadishmal opened this issue Oct 10, 2015 · 4 comments
Closed

Comments

@kadishmal
Copy link

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 } }

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".

@kwent
Copy link
Owner

kwent commented Jun 9, 2016

@kadishmal I just released a new 2.0.0 version which support 5.x and 6.x version ! Give it a shot and tell me if things looks better.

@jquatier
Copy link

jquatier commented Jun 14, 2016

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}

@kwent
Copy link
Owner

kwent commented Jan 4, 2017

Might be related to #28.

@kwent
Copy link
Owner

kwent commented Jan 5, 2017

Hi @kadishmal and @jquatier, i just released 2.1.0 version on NPM.

This issue should be fixed.

Regards,

@kwent kwent closed this as completed Jan 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants