Question: should we fix the REST code, or delete it?  Obviously, it
can be revived from the SVN repository at any time, but I'd rather not
expose code that we know to be broken.  So I'd prefer we delete it.

-- Adam


On Wed, Apr 15, 2009 at 7:51 AM, Chris Chabot <chab...@google.com> wrote:
> Hey Thangabalu,
>
> I'm affraid you fell for an old and confusing bit of legacy code.
>
> The REST interface *always* works, there's no way to turn it off even...
> that bit of javascript is just to control if the javascript API should use
> the RPC or the REST interface, a left over from when RPC was still new
> (quite a few months ago), and no one has updated the REST JavaScript code in
> a while and it's horribly broken.
>
> So please ignore that bit of config, and you should be fine again :)
>
>   -- Chris
>
> On Wed, Apr 15, 2009 at 11:35 AM, Thangabalu Karunanithi <
> kthangab...@gmail.com> wrote:
>
>>  am not sure whether to post this.I am in trouble and desperately
>> need some help.
>> Here's the issue.
>> I have enabled the REST services in shindig in container.js file.
>> "impl" : "rest", //Use "rpc" to enable JSON-RPC, "rest' for REST
>>
>> If it's rpc it works well.
>> When i change it to rest .I got the below errors.
>> 500 Internal Server Error - Internal Server Error
>>
>> Invalid or unknown service endpoint: jsonBatch?
>> st=WW5vd2VFcHVXVGxOVTFwb1VGUk5iVnBFTVd0YVYxcG9aRmQ0TU
>>
>> VwdVZUbGhTRkl3WTBOVmVVNVVUa0pLVkVreFRXdFpiRTFxVlhsU2JYaDJXVEpHYzJGSE9YcGtRMVY1VGxSS1Ixb3lSbXRhTWxZd1
>>
>>
>> ZUSkdkR05IZUd4amVWVjVUbFJLUjJOSE9YcGtSVVpxWkVkc01tRllValZNYm1oMFlrTmFkRkJVUVcxa1JEQjRUV3BOTkU1NlRYcFBSR2MwT0VuOExiRERzV0w4NXFNMm5VUSUyRjYlMkJKNmtaUSUzRA
>>
>> %3D%3D
>>
>> Debug backtrace:
>>
>> #0 D:\Program Files\xampp\htdocs\35AG07\shindigFinal\php\src\social
>> \service\RestRequestItem.php(42):
>>
>>  RestRequestItem->setPostData('{"viewer":{"url...')
>>
>> #1 D:\Program Files\xampp\htdocs\35AG07\shindigFinal\php\src\social
>> \servlet\DataServiceServlet.php(117
>>
>> ): RestRequestItem::createWithRequest(Array, Object
>> (BasicSecurityToken), Object(InputJsonConverter),
>>
>>  Object(OutputJsonConverter))
>>
>> #2 D:\Program Files\xampp\htdocs\35AG07\shindigFinal\php\src\social
>> \servlet\DataServiceServlet.php(58
>>
>> ): DataServiceServlet->handleSingleRequest(Object(BasicSecurityToken),
>> Object(InputJsonConverter), Object
>>
>> (OutputJsonConverter))
>>
>> #3 D:\Program Files\xampp\htdocs\35AG07\shindigFinal\php\index.php
>> (118): DataServiceServlet->doPost(
>>
>> )
>>
>> #4 {main}
>>
>> Could some body help me
>>
>

Reply via email to