Problem creating new checklists?

26 views
Skip to first unread message

Chad Nelson

unread,
May 20, 2013, 10:26:58 AM5/20/13
to spring...@googlegroups.com
A customer contacted me to say that checklists (type "GeneralList")
created in my program aren't showing up on the Springpad site. He's
correct: I'm now getting "HTTP/1.1 500 Internal Server Error", with a
body of { "status":"error", "message":"Error running commands" }.

These used to work, and apparently every other type still does. How can
we track this problem down?
--
Chad Nelson
Oak Circle Software, Inc.
*
*
*

signature.asc

Pete Aykroyd

unread,
May 21, 2013, 11:17:34 AM5/21/13
to spring...@googlegroups.com
Hi Chad,

Can you send the list of commands that you are POSTing? Once I have that I can track it down for you.

Pete

Chad Nelson

unread,
May 21, 2013, 8:48:02 PM5/21/13
to spring...@googlegroups.com, ayk...@gmail.com
Here are the commands we're sending (they're all on one line, so I've
reformatted them):

[
["create","GeneralList","/UUID(1934c479-2462-4e84-b04f-b4922a712633)/"],
["set","/UUID(1934c479-2462-4e84-b04f-b4922a712633)/","name",
"Test Checklist 2"],
["set","/UUID(1934c479-2462-4e84-b04f-b4922a712633)/","name",
"Test Checklist 2"],
["set","/UUID(1934c479-2462-4e84-b04f-b4922a712633)/","flagged",
false],
["set","/UUID(1934c479-2462-4e84-b04f-b4922a712633)/","items",
[
{
"name":"Test checklist item",
"properties":null,
"type":"/Type(CheckListItem)/",
"uuid":"/UUID(193e69c1-0815-48d3-b3cf-9a0421362082)/"
}
]
],
["set","/UUID(1934c479-2462-4e84-b04f-b4922a712633)/","workbooks",[]]
]

I see that it's erroneously trying to set the name twice, but
everything else looks okay to me.
--
Chad Nelson
Oak Circle Software, Inc.
*
*
*
signature.asc

Pete Aykroyd

unread,
May 21, 2013, 10:18:01 PM5/21/13
to Chad Nelson, spring...@googlegroups.com
Thanks. I'll check it out in the morning.


On Tue, May 21, 2013 at 8:48 PM, Chad Nelson <chad.thec...@gmail.com> wrote:

null

<signature.asc>

Chuck Garofalo

unread,
May 22, 2013, 7:12:58 AM5/22/13
to spring...@googlegroups.com, Chad Nelson
I haven't tried to run those commands but just as a spot check on this I noticed that a "set" operation is being called on a list property (items).  The "add" operation should be used instead.  Further, the checklist item isn't actually being created with a command and this is probably the most likely cause.  There should be a "create" command for the CheckListItem and then a "set" command for the name.  Following that, it can be added to the CheckList using the "add" command.

I hope this helps.

Regards,
Chuck

Pete Aykroyd

unread,
May 22, 2013, 1:53:53 PM5/22/13
to spring...@googlegroups.com, Chad Nelson
Chad, these commands don't seem to be set up right. You are trying to create a ChecklistItem nested in your set command of items. I tested these commands and they work fine. Note, you don't need to workbooks to an empty list or flagged to false as that's the default, though it doesn't hurt anything to do it. 

[["create","GeneralList","/UUID(1d344479-2462-4e84-b04f-b4922a712633)/"],
 ["set","/UUID(1d344479-2462-4e84-b04f-b4922a712633)/","name", "Test Checklist 2"],
  ["create","CheckListItem","/UUID(1d34c479-2452-4333-b000-b4922a712634)/"],
  ["set","/UUID(1d34c479-2452-4333-b000-b4922a712634)/","name","Test Checklist Item"],
  ["add","/UUID(1d344479-2462-4e84-b04f-b4922a712633)/","items","/UUID(1d34c479-2452-4333-b000-b4922a712634)/"]
]





--
You received this message because you are subscribed to the Google Groups "Springpad Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to springpaddev...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages