0

I have setup an endpoint following this guide. I am getting mixed results, as endpoint/node.xml successfully returns a list of content nodes.

When I try and load an individual node as xml, I just get a blank xml document example below, clicking /endpoint/node/1000.xml results in:

<?xml version="1.0" encoding="utf-8"?>
<result></result>

Also if I try and load it as a ...node/1000.json it just returns false.

Error log is really vague, content is open to non-authenticated users so permissions shouldn't be an issue.

Any help would be fantastic.

  • What is your content with nid=1000? – Joe Beuckman Mar 4 '14 at 16:39
  • localhost/d7/testendpoint/node/20.xml as well as localhost/d7/testendpoint/node/20.json both works for me, Make sure user has access to view nodes.. – Anil Sagar Mar 4 '14 at 16:42
  • I am able to open the node normally /node/1000, I have removed the access permissions module, ensured published content is visible. Its really confusing as it can load the list of nodes but doesn't load specific nodes as xml. – fyberoptik Mar 4 '14 at 16:50
  • @joe the content is a really basic content type, its just a body and an text field. – fyberoptik Mar 4 '14 at 16:51
  • but the actual node with nid=1000 exists, right? what nids appear in the list at node.xml? – Joe Beuckman Mar 4 '14 at 16:56
0

Found a work around for this issue, rather than use the node id I am using the UUID. This is now successfully loading the content.

The UUID id is pulled out of the main list of nodes at /endpoint/node.xml, giving a working url of:

/endpoint/node/e2349095-de4f-4827-919f-3ec28cf392a8

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.