agea/CmisJS

Error on call to "createSession" ...

Closed this issue · 5 comments

The following code throws an error when executing:

var session = cmis.createSession(url);

Full code is as follows:

var cmis = require('cmis');
var url = 'http://localhost:8081/inmemory/atom';
var session = cmis.createSession(url);

The error is:

TypeError: Object # has no method 'createSession'

agea commented

the version in the npm registry was not updated with the repository, if you update the library it should work, you may have to use:

$npm instal cmis --force

Excellent. Thanks for your quick response.

Sent from my iPhone

On Jan 15, 2014, at 12:59 AM, "Andrea Agili" <notifications@github.commailto:notifications@github.com> wrote:

the version in the npm registry was not updated with the repository, if you update the library it should work, you may have to use:

$npm instal cmis --force

Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-32344240.

Click herehttps://www.mailcontrol.com/sr/YLuKm6d9eX!GX2PQPOmvUqXvx88Q2j!hjVoQynwiJY3ERtaIlXwnnY3LTc6zmVZ8NB2RTBSPfMmZtQUzGWYsdQ== to report this email as spam.


This is an email from Gafcon Inc. This email and any attachments hereto may contain information that is confidential and/or contains proprietary information. This email is not intended for transmission to, or receipt by, any unauthorized persons. Inadvertent disclosure of the contents of this email or its attachments to unintended recipients is not intended to and does not constitute a waiver of the confidential or proprietary nature of the information or the related protections. We ask that you not share or forward this information to any unauthorized persons. If you have received this email in error, immediately notify the sender of the erroneous receipt and destroy this email, any attachments, and all copies of same, either electronic or printed. Any disclosure, copying, distribution, or use of the contents or information received in error is strictly prohibited.

Updating the node package sorted the issue.

Quick question. Does your node package support the AtomPub interface? My intent is to interact with SharePoint via CMIS and my understanding is that SharePoint does not support the browser interface.

Thanks again.

On Jan 15, 2014, at 12:59 AM, Andrea Agili <notifications@github.commailto:notifications@github.com> wrote:

the version in the npm registry was not updated with the repository, if you update the library it should work, you may have to use:

$npm instal cmis --force


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-32344240.

Click herehttps://www.mailcontrol.com/sr/YLuKm6d9eX!GX2PQPOmvUqXvx88Q2j!hjVoQynwiJY3ERtaIlXwnnY3LTc6zmVZ8NB2RTBSPfMmZtQUzGWYsdQ== to report this email as spam.


This is an email from Gafcon Inc. This email and any attachments hereto may contain information that is confidential and/or contains proprietary information. This email is not intended for transmission to, or receipt by, any unauthorized persons. Inadvertent disclosure of the contents of this email or its attachments to unintended recipients is not intended to and does not constitute a waiver of the confidential or proprietary nature of the information or the related protections. We ask that you not share or forward this information to any unauthorized persons. If you have received this email in error, immediately notify the sender of the erroneous receipt and destroy this email, any attachments, and all copies of same, either electronic or printed. Any disclosure, copying, distribution, or use of the contents or information received in error is strictly prohibited.

agea commented

maybe the readme is not clear on this point, but this library supports only browser bindings (and there is no immediate plan to support AtomPub)

OK. Thanks again for your help. It is much appreciated.

On Jan 16, 2014, at 8:32 AM, Andrea Agili <notifications@github.commailto:notifications@github.com> wrote:

maybe the readme is not clear on this point, but this library supports only browser bindings (and there is no immediate plan to support AtomPub)


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-32485324.

Click herehttps://www.mailcontrol.com/sr/hoIXaZG8eMfGX2PQPOmvUtXHXnVjuGgH3KZITGB44AAMdEnaOc4wiMorT!Cl32!mDCJ0sweyMqL46EHnGWFGZQ== to report this email as spam.


This is an email from Gafcon Inc. This email and any attachments hereto may contain information that is confidential and/or contains proprietary information. This email is not intended for transmission to, or receipt by, any unauthorized persons. Inadvertent disclosure of the contents of this email or its attachments to unintended recipients is not intended to and does not constitute a waiver of the confidential or proprietary nature of the information or the related protections. We ask that you not share or forward this information to any unauthorized persons. If you have received this email in error, immediately notify the sender of the erroneous receipt and destroy this email, any attachments, and all copies of same, either electronic or printed. Any disclosure, copying, distribution, or use of the contents or information received in error is strictly prohibited.