Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

getNodeContent throwing error

See original GitHub issue

Issue Description

Type of issue: (check with “[x]”)

- [ ] New feature request
- [x ] Bug  
- [ ] Support request

Current behavior:

Running this.nodesApi.getNodeContent(nodeId, opts) throws an error:

Type Error: Value is not a sequence: alfrescoApiClient.js:174

If I view the HTTP trace (via the browser developer tools), the REST call can be seen to return correctly, but the API fails before it can return the file back to my code.

My code is an angular 10 application. alfresco-js-api was installed via npm and each of my components I use:

include {AlfrescoApi, NodesApi} from ‘@alfresco/js-api’;

Expected behavior:

getNodeContent should return the content as blob

Steps to reproduce the issue:

Run getNodeContent as above.

Node version (for build issues):

Angular 10.1.7 Node 12.16.1 NPM 6.14.8 Alfresco repository 6.2.2 (Enterprise) alfresco-js-api 4.1.0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

garthcommented, May 6, 2021

The error is thrown whenever you call getNodeContent() which is why I thought it might be related to this issue.

node --version

tsc --version
Version 4.2.4
eromanocommented, May 20, 2021

Solved in ADF 4.4.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

getNodeContent response returns empty object on Node.js 11
Current behavior: I get an empty object if I try to use nodesApi.getNodeContent(nodeid) on a node.js script with a DXF file (well, ...
Read more >
node.getTextContent throws exception when called through ...
xml, it returns the nodes just fine, but calling getTextContent on the nodes throws an exception. I have run the exact same code...
Read more >
Dictionary Error: An item with the same key has already been ...
Hi All,. I have the following xml file, that I just need to retrieve all the values for each site and place into...
Read more >
Solved: Re: Closing ResourceResolver and Session - Adobe ...
In order to avoid this error, I am creating resourceresolver and session at lower ... public String call ( ) throws Exception {...
Read more >
How to store Response.ok().built result into a String variable
getNode("content /documents/xxxxxx/cubaorang/cubaorang[3]/xxxxxx: ... getObject(node); tmp = new Orang_POJO(org); }catch(Exception e) { e.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found