Closed (duplicate)
Project:
Services
Version:
6.x-3.0-rc1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Jun 2011 at 13:35 UTC
Updated:
19 Jul 2011 at 00:26 UTC
When I hit /[endpoint]/node in the browser, I get results and everything looks good. When I hit /[endpoint]/node/index or /[endpoint]/node.index, I get nothing.
When, from my application, I call node.index over xmlrpc/javascript, I get an empty response just like the browser:
<?xml version="1.0"?>
<methodResponse>
<params>
<param>
<value><array><data>
</data></array></value>
</param>
</params>
</methodResponse>
For reference, here's the request from my application:
<methodCall><methodName>node.index</methodName><params></params></methodCall>
Any ideas?
Comments
Comment #1
javamandk commentedI had the same problem, do you use prefix on your database tables?
In the service.module file line 454
$sql = "SELECT $fields FROM {$table} $where ORDER BY $order";I have changed this to:
$sql = "SELECT $fields FROM {{$table}} $where ORDER BY $order";And now I get results.
Comment #2
kylebrowning commentedduplicate, #1159456: db_rewrite_sql called in services_resource_build_index_query needs to pass in primary_table and primary_field args