Can't make REST server works
Domsou - September 7, 2009 - 17:28
| Project: | REST Server |
| Version: | 6.x-2.0-beta1 |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Hugo Wetterberg |
| Status: | fixed |
Jump to:
Description
I still can't obtain anything from REST server.
Let's say I want to work with node. Under Drupal admin all the 4 services works fine :
- node.get
- node.view
- node.save
- node.delete
But when I try the same request from outside Drupal nothing happen. Examining HTTP request show an error in response : 404 Not found: could not find resource
Trying to test REST server via my_url/services/rest lead to the same 404 error.
In the same times XML-RPC server test request lead to a 200 response with following content : "XML-RPC server accepts POST requests only".
Both services and REST server was updated one hour ago (6.x-2.x-dev (2009-sept.-06) and 6.x-2.0-beta-1)
May I have missed something ?

#1
same exact thing here . anyone?
#2
I'm seeing the exact same error with the REST Server. Has anyone figured out what is going on or how to solve this?
#3
Nop, i dont think so! I'm still looking for that to be fix
#4
As for me I did not try again : I've put the functionnality using it on an hold state.
#5
Hi Guys,
Sorry about the delay with this, I wasn't subscribed to the issue queue. What are your respective setups. Enabled services, the url's you tried to access, and so on?
/Hugo
#6
Hi Hugo,
The project involving REST server is in pending state and every stuff have been archived.
The customer I am working for plan to reactivate this part of it's project by the end of November. I then can give you all the informations needed.
#7
Hi
I'm using Drupal 6.11 with
REST SERVER module: 6.x-2.0-beta1
SERVICES module: 6.x-2.x-dev
a simple HTTP-get via my_url/services/rest/node/123 also causes the 404-error:
HTTP/1.0 404 Not found: could not find resource
So a fix for this issue would be great!
Greetz,
GM
#8
Ok, just to check, have you enabled the node_resource module? Not just the node_service module?
/Hugo
#9
Hugo,
yes both node resource and node service modules are enabled ....
GM
#10
I'm getting the same problem (404s) using the urls in the readme file with the node_resource, services, rest_server. Do we need some services authentication modules enabled?
wget http://localhost/services/rest/node/28returns:
HTTP request sent, awaiting response... 404 Not found: could not find controller2009-11-27 17:00:47 ERROR 404: Not found: could not find controller.
#11
I think rest_server needs to be adjusted to work with the last version (6.x-2.x-dev) of services.
In particular because of this issue: http://drupal.org/node/616490
#12
Ok, I think that I've pinpointed the problem. Most of you guys are probably running drupal in a subdirectory, which I've never done, and there are some faulty path manipulation that's done when the base path is anything else than /.
There is also some problems with the recent change that started stripping #s from all service declarations.
A update is coming soon that will correct this. I'll try to get this done tonight.
#13
#14
Tagged a 6.x-2.0-beta2 release of REST Server with the following changes:
http://github.com/hugowetterberg/rest_server/commit/413a1640acf673aa48e4...
(http://drupal.org/cvs?commit=294780)
#15
Hi Hugo:
Looks like the problem is still there in 6.x-2.0-beta2. I am using it with Service 6.x-2.x-dev and drupal's multisite.