EventBrite API V3: Error Updating Event Details

474 views
Skip to first unread message

Cris Francisco

unread,
Apr 10, 2015, 3:12:58 PM4/10/15
to eventbr...@googlegroups.com

I'm trying to update an event via the EventBrite API V3, but I'm unsuccessful.

If I try to update my event via the POST test URL via the link using my Anonymous access OAuth token: https://www.eventbriteapi.com/v3/events/{event-id}/?token={Anonymous access OAuth token} 
I get a 403 error as expected:

{
   
"status_code": 403,
   
"error_description": "You do not have permission to access the resource you requested.",
   
"error": "NOT_AUTHORIZED"
}

If I try to update my event via the POST test URL via the link using my personal OAuth token: https://www.eventbriteapi.com/v3/events/{event-id}/?token={personal OAuth token} 
I get a 500 error:

{
   
"status_code": 500,
   
"error_description": "The server encountered an internal error.",
   
"error": "INTERNAL_ERROR"
}


Can you assist me how I can get a successful update to an event with the v3 API? What are the step that I need to follow to do this? The documentation at the URL, http://developer.eventbrite.com/docs/event-details/, are very generic (POST /v3/events/{Event ID}/). (e.g. Do I need to post the object in JSON in the body? Do I send it key/value pairs? Do you have any special instructions on escaping HTML content?)

I would like to migrate off of the deprecated API, but I'm having issues using the built-in test tool.

Also, here is the detailed request and response from the API: https://www.eventbriteapi.com/v3/events/15658766793/?token=token_value

REQUEST

PARSED INPUT DATA

  • event.name.html: Test Event - Cris - 2b
  • event.description.html: <P><SPAN STYLE="text-decoration: underline;">This</SPAN> is a <STRONG>test</STRONG>.</P><P>This is line two</P><P> </P><P><STRONG>FAQs</STRONG></P><P> </P><P><STRONG>Are there ID requirements or an age limit to enter the event?</STRONG></P><P>Your answer goes here</P><P> </P><P><STRONG>What are my transport/parking options getting to the event?</STRONG></P><P>Your answer goes here</P><P> </P><P><STRONG>Do I have to bring my printed ticket to the event?</STRONG></P><P>Your answer goes here</P><P> </P><P><STRONG>The name on the registration/ticket doesn't match the attendee. Is that okay?</STRONG></P><P>Your answer goes here</P><P> </P>
  • event.organizer_id: 6280909743
  • event.start.utc: 2015-04-13T02:00:00Z
  • event.start.timezone: America/Los_Angeles
  • event.end.utc: 2015-04-13T03:30:00Z
  • event.end.timezone: America/Los_Angeles
  • event.currency: USD
  • event.venue_id: 9717024
  • event.shareable: on
  • event.capacity: 11000
  • event.show_remaining: on

PARSED AUTHENTICATION

  • OAuth token: ------
  • User ID: 94570820989
  • App key: ------

EXPANDED FIELDS

  • category
  • attendees
  • subcategory
  • format
  • venue
  • order
  • ticket_classes
  • logo
  • organizer
  • event

REQUEST BODY

event.name.html=Test+Event+-+Cris+-+2b&event.description.html=%3CP%3E%3CSPAN+STYLE%3D%22text-decoration%3A+underline%3B%22%3EThis%3C%2FSPAN%3E+is+a+%3CSTRONG%3Etest%3C%2FSTRONG%3E.%3C%2FP%3E%3CP%3EThis+is+line+two%3C%2FP%3E%3CP%3E%C2%A0%3C%2FP%3E%3CP%3E%3CSTRONG%3EFAQs%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%C2%A0%3C%2FP%3E%3CP%3E%3CSTRONG%3EAre+there+ID+requirements+or+an+age+limit+to+enter+the+event%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EYour+answer+goes+here%3C%2FP%3E%3CP%3E%C2%A0%3C%2FP%3E%3CP%3E%3CSTRONG%3EWhat+are+my+transport%2Fparking+options+getting+to+the+event%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EYour+answer+goes+here%3C%2FP%3E%3CP%3E%C2%A0%3C%2FP%3E%3CP%3E%3CSTRONG%3EDo+I+have+to+bring+my+printed+ticket+to+the+event%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EYour+answer+goes+here%3C%2FP%3E%3CP%3E%C2%A0%3C%2FP%3E%3CP%3E%3CSTRONG%3EThe+name+on+the+registration%2Fticket+doesn%27t+match+the+attendee.+Is+that+okay%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EYour+answer+goes+here%3C%2FP%3E%3CP%3E%C2%A0%3C%2FP%3E&event.organizer_id=6280909743&event.start.utc=2015-04-13T02%3A00%3A00Z&event.start.timezone=America%2FLos_Angeles&event.end.utc=2015-04-13T03%3A30%3A00Z&event.end.timezone=America%2FLos_Angeles&event.currency=USD&event.venue_id=9717024&event.logo.id=&event.logo_id=&event.category_id=&event.subcategory_id=&event.format_id=&event.shareable=on&event.password=&event.capacity=11000&event.show_remaining=on

RESPONSE

HTTP 500 INTERNAL SERVER ERROR
  • Vary: Accept
  • Access-Control-Allow-Origin: *
  • Access-Control-Allow-Headers: Authorization
  • Content-Type: text/html; charset=utf-8
  • Allow: GET, POST, HEAD, OPTIONS
{
   
"status_code": 500,
   
"error_description": "The server encountered an internal error.",
   
"error": "INTERNAL_ERROR"
}


Dana Kock

unread,
Apr 14, 2015, 2:52:27 PM4/14/15
to eventbr...@googlegroups.com
Hey Chris,

Are you still having this issue? I wasn't able to reproduce it on our testing site and I don't want to edit/mess up anything within your event. 

Please let me know as I want to make sure everything is working correctly for you!

Cris Francisco

unread,
Jun 23, 2015, 3:40:39 PM6/23/15
to eventbr...@googlegroups.com
Dana, the Event Edit started working once you replied. As of yesterday, edits were failing with a 500 error for me from the built-in test tool.

Here is the URL:

The details of the sample post are listed below. I redacted the user info and the email address in the description body.

REQUEST

PARSED INPUT DATA

  • event.name.html: Saddleback Academy of Music
  • event.description.html: <P><SPAN STYLE="font-size: 9.0pt; font-family: 'Lucida Sans Unicode','sans-serif'; color: #333333;">Saddleback Academy of Music<BR> Summer Registration Open!</SPAN></P><P><FONT COLOR="#333333" FACE="Lucida Sans Unicode, sans-serif"><SPAN STYLE="font-size: 12px;">START DATES ARE JULY 5 &amp; JULY 9, 2015</SPAN></FONT></P><P><SPAN STYLE="font-size: 9.0pt; font-family: 'Lucida Sans Unicode','sans-serif'; color: #333333;">For questions, contact Rebekah at <SPAN STYLE="font-size: 9.0pt; font-family: 'Lucida Sans Unicode','sans-serif'; color: #333333;"><A HREF="mailto:xxxxx" REL="nofollow">xxxxx</A></SPAN></SPAN></P>
  • event.organizer_id: 4220583715
  • event.start.utc: 2015-06-28T16:00:00Z
  • event.start.timezone: America/Los_Angeles
  • event.end.utc: 2015-06-29T04:00:00Z
  • event.end.timezone: America/Los_Angeles
  • event.currency: USD
  • event.venue_id: 7151733
  • event.capacity: 100

PARSED AUTHENTICATION

  • OAuth token: xxx
  • User ID: xxx
  • App key: xxx

EXPANDED FIELDS

  • logo

REQUEST BODY

event.name.html=Saddleback+Academy+of+Music&event.description.html=%3CP%3E%3CSPAN+STYLE%3D%22font-size%3A+9.0pt%3B+font-family%3A+%27Lucida+Sans+Unicode%27%2C%27sans-serif%27%3B+color%3A+%23333333%3B%22%3ESaddleback+Academy+of+Music%3CBR%3E+Summer+Registration+Open%21%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CFONT+COLOR%3D%22%23333333%22+FACE%3D%22Lucida+Sans+Unicode%2C+sans-serif%22%3E%3CSPAN+STYLE%3D%22font-size%3A+12px%3B%22%3ESTART+DATES+ARE+JULY+5+%26amp%3B+JULY+9%2C+2015%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CSPAN+STYLE%3D%22font-size%3A+9.0pt%3B+font-family%3A+%27Lucida+Sans+Unicode%27%2C%27sans-serif%27%3B+color%3A+%23333333%3B%22%3EFor+questions%2C+contact+Rebekah+at+%3CSPAN+STYLE%3D%22font-size%3A+9.0pt%3B+font-family%3A+%27Lucida+Sans+Unicode%27%2C%27sans-serif%27%3B+color%3A+%23333333%3B%22%3E%3CA+HREF%3D%22mailto%3Axxx%22+REL%3D%22nofollow%22%3Exxx%3C%2FA%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E&event.organizer_id=4220583715&event.start.utc=2015-06-28T16%3A00%3A00Z&event.start.timezone=America%2FLos_Angeles&event.end.utc=2015-06-29T04%3A00%3A00Z&event.end.timezone=America%2FLos_Angeles&event.currency=USD&event.venue_id=7151733&event.logo.id=&event.logo_id=&event.category_id=&event.subcategory_id=&event.format_id=&event.password=&event.capacity=100
Reply all
Reply to author
Forward
0 new messages