PartyStream / projectPS

API for the Party Stream app
www.partystreamapp.com
1 stars 0 forks source link

Creating Events #32

Closed JGSolutions closed 11 years ago

JGSolutions commented 11 years ago

Trying to create an event and get a 500 error.

I am passing this object through POST:

partyEvent:{"name":"jerry test","userId":7,"eventDate":"2013-06-06"}

response:

SyntaxError: Unexpected token u at Object.parse (native) at Object.createEvent (/app/api/event.js:28:20) at module.exports (/app/api/web.js:213:9) at callbacks (/app/node_modules/express/lib/router/index.js:161:37) at param (/app/node_modules/express/lib/router/index.js:135:11) at pass (/app/node_modules/express/lib/router/index.js:142:5) at nextRoute (/app/node_modules/express/lib/router/index.js:100:7) at callbacks (/app/node_modules/express/lib/router/index.js:164:11) at app.post.user (/app/api/web.js:123:3) at callbacks (/app/node_modules/express/lib/router/index.js:161:37)

iToto commented 11 years ago

Change partyEvent to event as the POST variable.

iToto commented 11 years ago

@jerryf196 is this still an issue for you?

JGSolutions commented 11 years ago

nope it's working :)

Thanks