Custom Question API Error

97 views
Skip to first unread message

Hugo Pérez Fernández

unread,
Mar 23, 2021, 8:07:44 AM3/23/21
to Eventbrite Developers
Hello,

We are having an error when creating a custom question with the following parameters:

POST: /events/EVENT_ID/questions/'
{
    question.question.html = "Please choose the program that best suits your needs"
    question.required = false
    question.type = "dropdown"
    question.respondent = "ticket_buyer"
    question.parent_id = "41576711"
    question.choices = "[{"answer":{"html":"Legal Project Management Online"}},{"answer":{"html":"MANAGEMENT DE FIRMAS EN LATINOAMERICA"}},{"answer":{"html":"Proteccion de datos"}},{"answer":{"html":"Programa de Asesor\u00eda Fiscal para Profesionales"}},{"answer":{"html":"Corporate Legal"}},{"answer":{"html":"Legal for Digital Business Transformation"}},{"answer":{"html":"Advanced Management Program Asturias"}},{"answer":{"html":"Advanced Management Program Canarias"}},{"answer":{"html":"Advanced Management Program Castilla y Leon"}},{"answer":{"html":"Advanced Management Program Galicia"}},{"answer":{"html":"Advanced Management Program Intensivo Espa\u00f1ol"}},{"answer":{"html":"Advanced Management Program Madrid"}},{"answer":{"html":"Advanced Management Program Murcia"}},{"answer":{"html":"Advanced Management Program Navarra"}},{"answer":{"html":"Advanced Management Program Pais Vasco"}},{"answer":{"html":"Advanced Management Program Valencia"}},{"answer":{"html":"Advanced Management Program Zaragoza"}},{"
    question.parent_choice_id = "130943719"
 }

Other questions are previously created in the same way and there is no error.

The error returned by the API is a 503 and message is the following:

<html lang="en">
<head>
<meta charset="utf-8" />
<title>Whoops!</title>

<style type="text/css" rel="stylesheet">
    body {
        margin: 0;
        padding: 0;
    }
    body{
        font-family: Helvetica,Arial,sans-serif;
    }
    img{
        border: 0;
    }

    strong {
        font-weight: 600;
    }

    #whoops_wrapper {
        position: relative;
        top: 100px;

        margin: 0 auto;
        max-width: 640px;
        min-height: 278px;

        background: #f7f7f7;

        -moz-border-radius: 10px;
        -webkit-border-radius: 10px;
        -o-border-radius: 10px;
        border-radius: 10px;
        border: 1px solid #dedede;

        box-shadow: 0 1px 1px #f1f1f1;
    }

    #logo {
        position: relative;
        top: 30px;
        left: 242px;
        margin: 0 0 25px 0;
        clear: both;
    }

    h1{
        font-family: Helvetica, Arial, sans-serif;
        font-weight: 600;
        font-size: 40px;
        line-height: 43px;
        color: #2f2f2f;
        text-align: center;
        font-style: italic;
    }

    p{
        color: #58585a;
        font-size: 13px;
        line-height: 24px;
        margin: 15px 0 40px 0;
        text-align: center;
    }
    a{
        color: #47a9e0;
        text-decoration: none;
    }
    a:hover {
        text-decoration: underline;
    }
</style>

</head>
<body>

    <div id="whoops_wrapper">
        <h1>
            This page is <br />currently unavailable.
        </h1>
        <p>
            The Team is currently working to return you to the service as quickly as possible.<br />
            If you need to reach us immediately, please <a href='https://www.eventbrite.com/support/contact-us'>contact us</a>.
        </p>
        <p>
            We'll keep you updated on <a href='https://www.twitter.com/eventbrite'>Twitter</a>.<br />
            <a href='https://www.eventbritestatus.com/'>Eventbrite Status Page</a>
        </p>
        <p><font size="-2">Response code: 502</font></p>
    </div>
</body>
</html>
Captura de pantalla 2021-03-23 a las 12.28.10.png

Natalie Blikslager

unread,
Mar 25, 2021, 7:06:41 PM3/25/21
to Eventbrite Developers
Hi Hugo,

Thank you for the thorough explanation and sorry to hear you are running into issues creating custom questions!

I am seeing that the endpoint is working properly and the following example request from the Creating Custom Questions section of our API Documentation was successful in my testing:

curl -X POST   https://www.eventbriteapi.com/v3/events/{event_id}/questions/   -H 'Authorization: Bearer PERSONAL_OAUTH_TOKEN'   -H "Accept: application/json"
  -d '{
        "question": {
          "question": {
            "html": "Ticketing Terms of Service: I acknowledge that..."
          },
          "required": true,
          "type": "checkbox",
          "choices": [
            {
              "answer": {
                "html": "yes"
              }
            }
          ],
          "ticket_classes": [
            {
              "id": "1234"
            }
          ]
        }
      }'

In the body of your request to create a custom question via API, a question.parent_id and question.parent_choice_id should not be passed, as the IDs are returned in your response upon custom question creation. I recommend checking your formatting and you can look to our API Reference here for guidance on doing so. 

Best,
Natalie

Hugo Pérez Fernández

unread,
Apr 7, 2021, 3:37:18 AM4/7/21
to Eventbrite Developers

Hi Natalie,

The fact is that it is a custom question that has a parent and that depends on the answer selected in that parent question, so these two fields are necessary.

Could it be that there is a limit to the number of answers to a question?

Thanks a lot.

Renaud Visage

unread,
Apr 7, 2021, 5:03:37 AM4/7/21
to Eventbrite Developers
Hi Hugo,

It looks like the "question.choices" parameter in your example is not valid json.  You're not closing the array of answers properly.  Do you still get an error when you fix that?

Thanks.

-Renaud

Hugo Pérez Fernández

unread,
Apr 7, 2021, 6:31:50 AM4/7/21
to Eventbrite Developers
Hi Renaud,

Sorry I had an error copying the payload, here is the correct one:

POST: /events/EVENT_ID/questions/'

{
    question.question.html = "Please choose the program that best suits your needs"
    question.required = false
    question.type = "dropdown"
    question.respondent = "ticket_buyer"
    question.parent_id = "42035009"
    question.choices = "[{"answer":{"html":"Legal Project Management Online"}},{"answer":{"html":"MANAGEMENT DE FIRMAS EN LATINOAMERICA"}},{"answer":{"html":"Proteccion de datos"}},{"answer":{"html":"Programa de Asesor\u00eda Fiscal para Profesionales"}},{"answer":{"html":"Corporate Legal"}},{"answer":{"html":"Legal for Digital Business Transformation"}},{"answer":{"html":"Advanced Management Program Asturias"}},{"answer":{"html":"Advanced Management Program Canarias"}},{"answer":{"html":"Advanced Management Program Castilla y Leon"}},{"answer":{"html":"Advanced Management Program Galicia"}},{"answer":{"html":"Advanced Management Program Intensivo Espa\u00f1ol"}},{"answer":{"html":"Advanced Management Program Madrid"}},{"answer":{"html":"Advanced Management Program Murcia"}},{"answer":{"html":"Advanced Management Program Navarra"}},{"answer":{"html":"Advanced Management Program Pais Vasco"}},{"answer":{"html":"Advanced Management Program Valencia"}},{"answer":{"html":"Advanced Management Program Zaragoza"}},{"answer":{"html":"GLOBAL ADVANCED MANAGEMENT PROGRAM"}},{"answer":{"html":"Global Senior Management Program"}},{"answer":{"html":"Senior Management Program "}},{"answer":{"html":"Global Senior Fellows Initiative"}},{"answer":{"html":"Leading Boards: Women Directing in a Disrupted World"}},{"answer":{"html":"Digital Playroom: Feel Technology. Rethink Business"}},{"answer":{"html":"Programa Ejecutivo Especial El Gobierno de la Empresa Familiar 4.0 BBVA BANCOMER"}},{"answer":{"html":"PROGRAMA AVANZADO DE DIRECCI\u00d3N EN VENTAS"}},{"answer":{"html":"Programa Avanzado de Direcci\u00f3n Liderazgo,  Cultura y Talento Digital"}},{"answer":{"html":"Big Data & Inteligencia Artificial: Nuevas Oportunidades para tu negocio"}},{"answer":{"html":"DRIVING CHANGE WITH A GROWTH MINDSET"}},{"answer":{"html":"GENERAL MANAGEMENT M\u00c9XICO"}},{"answer":{"html":"TOP MANAGEMENT PROGRAM M\u00c9XICO"}},{"answer":{"html":"Behavioural Finance: Debiasing Investment Decision Making"}},{"answer":{"html":"Strategic Leadership for Humanitarian Security Program"}},{"answer":{"html":"PROGRAMA AVANZADO PROPTECH:  INNOVACI\u00d3N EN EL SECTOR INMOBILIARIO"}},{"answer":{"html":"Leading in Digital Marketing"}},{"answer":{"html":"High Impact Leadership \u2013 Spanish Business Council, Qatar"}},{"answer":{"html":"DIRECCION DE PROYECTOS ONLINE"}},{"answer":{"html":"PROGRAMA AVANZADO DIRECCION PATRIMONIAL DE ACTIVOS INMOBILIARIOS"}},{"answer":{"html":"Programa de Direcci\u00f3n Modelos de Colaboraci\u00f3n P\u00fablico-Privada Sanitaria y Sociosanitaria"}},{"answer":{"html":"From CEO to Maestro"}},{"answer":{"html":"Inbound Marketing "}},{"answer":{"html":"Taller de Innovaci\u00f3n"}},{"answer":{"html":"Finanzas Corporativas (Online)"}},{"answer":{"html":"STRATEGIC CORPORATE FINANCE"}},{"answer":{"html":"Women on Boards "}},{"answer":{"html":"PROGRAMA DE DIRECCI\u00d3N DE MARKETING"}},{"answer":{"html":"Programa de Direcci\u00f3n Retail"}},{"answer":{"html":"Programa de Direcci\u00f3n y Gesti\u00f3n Estrat\u00e9gica del Universo del Lujo"}},{"answer":{"html":"Programa de Direccion Big Data"}},{"answer":{"html":"Programa de Direcci\u00f3n Estrat\u00e9gica de Recursos Humanos"}},{"answer":{"html":"Programa de Gesti\u00f3n y Marketing de Productos y Servicios de Lujo"}},{"answer":{"html":"Accelerate: Building Business from Science & Technology"}},{"answer":{"html":"Programa de Direcci\u00f3n Transformaci\u00f3n Digital"}},{"answer":{"html":"PROGRAMA DE DIRECCI\u00d3N EN INNOVACI\u00d3N EN EL SECTOR SALUD"}},{"answer":{"html":"Programa de Direcci\u00f3n en Coaching Ejecutivo "}},{"answer":{"html":"Venture Capital"}},{"answer":{"html":"Taller de Negociaci\u00f3n"}},{"answer":{"html":"Service Design Workshop"}},{"answer":{"html":"El Lider como Gestor del Cambio"}},{"answer":{"html":"Liderando la Transformaci\u00f3n Digital"}},{"answer":{"html":"High Impact Leadership Program "}},{"answer":{"html":"Fundamentos Financieros para la Direcci\u00f3n"}},{"answer":{"html":"Effective Management for Security Professionals"}},{"answer":{"html":"Direcci\u00f3n Comercial"}},{"answer":{"html":"Gesti\u00f3n de Tesorer\u00eda "}},{"answer":{"html":"Customer Experience "}},{"answer":{"html":"Programa de Responsabilidad Social Corporativa"}},{"answer":{"html":"Direcci\u00f3n de Proyectos"}},{"answer":{"html":"AULA DE DIRIGENTES (Aula de Dirigentes)"}},{"answer":{"html":"Liderazgo Transformacional"}},{"answer":{"html":"Private Equity"}},{"answer":{"html":"Programa de Direcci\u00f3n de Empresas Tur\u00edsticas "}},{"answer":{"html":"Programa de Direcci\u00f3n Financiaciones Estructuradas y Finanzas Corporativas"}},{"answer":{"html":"Programa de Direcci\u00f3n Estrat\u00e9gica de Proyectos "}},{"answer":{"html":"Programa Ejecutivo Direcci\u00f3n de Empresas Inmobiliarias"}},{"answer":{"html":"Programa de Direcci\u00f3n en Comunicaci\u00f3n Corporativa y Management"}},{"answer":{"html":"Programa de Direcci\u00f3n Estrat\u00e9gica de Proyectos Blended"}},{"answer":{"html":"Executive Summer School"}},{"answer":{"html":"Digital Marketing, Social Media and Analytics: An Omnichannel Strategy "}},{"answer":{"html":"Innovation for Growth"}},{"answer":{"html":"Scaleup: How to successfully manage growth"}},{"answer":{"html":"Financial Decision Making for Managers"}},{"answer":{"html":"Leadership and Strategy in the Age of Disruption"}},{"answer":{"html":"Familias Empresarias: C\u00f3mo crear valor a lo largo de generaciones"}},{"answer":{"html":"Marketing Digital, Redes Sociales y Analiticas: Una Estrategia Omnicanal"}},{"answer":{"html":"Data Science Bootcamp"}},{"answer":{"html":"Advanced management program Andaluc\u00eda"}},{"answer":{"html":"Transformation with purpose"}},{"answer":{"html":"Reputaci\u00f3n y Litigios: Gesti\u00f3n de la comunicaci\u00f3n en procesos judiciales"}},{"answer":{"html":"Programa Intensivo de Compliance"}},{"answer":{"html":"Programa FinTech"}},{"answer":{"html":"Blockchain: Implicaciones Legales"}},{"answer":{"html":"Communication Skills and Public Speaking"}},{"answer":{"html":"Global Scaleup Program"}},{"answer":{"html":"Gesti\u00f3n del Talento en la Era Digital"}},{"answer":{"html":"Lawyers\u2019 management program para firmas latinoamericanas"}},{"answer":{"html":"Programa Avanzado Built-tech"}},{"answer":{"html":"Data Science and Visualization for Business"}},{"answer":{"html":"Programa de Direcci\u00f3n Banca Digital"}},{"answer":{"html":"Legal Tech Week Immersion. Israel"}},{"answer":{"html":"Inteligencia Artificial para Directivos"}},{"answer":{"html":"Executive Program International Real Estate (EMPIRE)"}},{"answer":{"html":"Digital Strategies for Business"}},{"answer":{"html":"Programa Avanzado Real Estate & Hospitality: Inversi\u00f3n, gesti\u00f3n e innovaci\u00f3n"}},{"answer":{"html":"Inmersion a la cultura del compliance"}},{"answer":{"html":"Programa Superior Fiscalidad Internacional Global"}},{"answer":{"html":"Especializaci\u00f3n en Protecci\u00f3n de Datos-DPO"}},{"answer":{"html":"Compliance y Protecci\u00f3n de Datos"}},{"answer":{"html":"Sustainability: Your Competitive Advantage"}},{"answer":{"html":"Transformaci\u00f3n Digital Firmas latinoamericanas"}},{"answer":{"html":"PA Gesti\u00f3n y Marketing Productos y Servicios de Lujo - Online"}},{"answer":{"html":"Owners Scale Up Blended"}},{"answer":{"html":"Direcci\u00f3n Comercial Online"}},{"answer":{"html":"Direcci\u00f3n de Proyectos online"}},{"answer":{"html":"Responsabilidad Social Corporativa Online"}},{"answer":{"html":"Private Equity Online"}},{"answer":{"html":"Taller de Negociaciones Internacionales"}},{"answer":{"html":"The Car Lab"}},{"answer":{"html":"Tax Litigation"}},{"answer":{"html":"Impacto Fiscal sobre el cliente privado"}},{"answer":{"html":"Mapa de riesgos: Identificaci\u00f3n y gesti\u00f3n"}},{"answer":{"html":"Prevenci\u00f3n de delitos y gesti\u00f3n del fraude"}},{"answer":{"html":"Procedimientos Concursales"}},{"answer":{"html":"Refinanciaci\u00f3n y Reestructuraci\u00f3n de la deuda"}},{"answer":{"html":"Reestructuraciones de empresa"}},{"answer":{"html":"Reestructuraciones empresariales"}},{"answer":{"html":"Corporate Legal online"}},{"answer":{"html":"Tributaci\u00f3n internacional de empresas"}},{"answer":{"html":"Programa Fiscalidad Global"}},{"answer":{"html":"New Market of Law"}},{"answer":{"html":"Law firm transformation"}},{"answer":{"html":"The New Business of Law"}},{"answer":{"html":"Legal Operations"}},{"answer":{"html":"New Skills for lawyers"}},{"answer":{"html":"Executive Winter School"}},{"answer":{"html":"PE Online Strategic Corporate Finance"}},{"answer":{"html":"Complex International Negotiations Workshop"}},{"answer":{"html":"PE Online - Inteligencia Artificial para Directivos"}},{"answer":{"html":"Advanced Management Program Intensivo Blended"}},{"answer":{"html":"Part-time Data Science Bootcamp"}},{"answer":{"html":"PE Online-Project Finance"}},{"answer":{"html":"PE Customer Experience Management"}},{"answer":{"html":"Fintech - Powering the Financial Revolution"}},{"answer":{"html":"LegalTech"}},{"answer":{"html":"Global Masterclass Learning & Development Leadership"}},{"answer":{"html":"La Empresa Familiar 4.0"}},{"answer":{"html":"PE Online-Strategic Project Management"}},{"answer":{"html":"Lawyers' Management Program"}},{"answer":{"html":"Advanced Venture Capital: Managing and Growing a Venture Capital Firm"}},{"answer":{"html":"Transformaci\u00f3n Digital P\u00fablica"}},{"answer":{"html":"Programa Avanzado Direcci\u00f3n Comercial de Productos Inmobiliarios"}},{"answer":{"html":"CDO Certificacion en Gobierno y Estrategia del Dato"}},{"answer":{"html":"PE Online- High Impact Leadership"}},{"answer":{"html":"PE Online - Gobierno Empresa Familiar 4.0"}},{"answer":{"html":"Fundamentos fiscales internacionales"}},{"answer":{"html":"PE Online-Communication Skills and Public Speaking"}},{"answer":{"html":"PE Online- Venture Capital: Investing in High-Growth Companies"}},{"answer":{"html":"Programa de Direcci\u00f3n Empresas Inmobiliarias"}},{"answer":{"html":"Project Finance"}},{"answer":{"html":"AMP Le\u00f3n"}},{"answer":{"html":"The Car Lab"}},{"answer":{"html":"Lawyers Management Program Latham & Watkins"}},{"answer":{"html":"Legal Project Management online english"}}]"
    question.parent_choice_id = "132433695"
 }

Renaud Visage

unread,
Apr 7, 2021, 8:12:58 AM4/7/21
to Eventbrite Developers
Hi Hugo,

Which EVENT_ID are you posting to (so we can find the corresponding server error in our logs)?

Thanks.

-Renaud

Hugo Pérez Fernández

unread,
Apr 7, 2021, 8:49:10 AM4/7/21
to Eventbrite Developers
Hi Renaud,

This is eid 149847081655

thanks

Renaud Visage

unread,
Apr 7, 2021, 8:59:48 AM4/7/21
to Eventbrite Developers
Hi Hugo,

"choices" should be an array not a string:
question.choices = [{"answer"...},...],

I hope that works.

-Renaud

Hugo Pérez Fernández

unread,
Apr 7, 2021, 10:45:11 AM4/7/21
to Eventbrite Developers

Hi, 

But as you can see at the event which eid is 149847081655 there are more questions created in the same way, because of that, I was asking if there is some limit in how many choices could be created via API.

Besides that, if I try to send the array the response is the same.

Thanks.

Hugo Pérez Fernández

unread,
Apr 13, 2021, 5:04:03 AM4/13/21
to Eventbrite Developers
Hello again,

Has there been any progress on this? It is a critical point for our tool and we would greatly appreciate your help.

Jorge Castillo

unread,
Apr 19, 2021, 3:37:10 AM4/19/21
to Eventbrite Developers
Hi Renaud/Natalie,

We would appreciate your help on this matter since it is becoming a key issue in our business processes and we don't have anywhere else to go apart from this forum.

We have more than 2 months trying to find out what the issue is since we constantly create events in the same way. More than 50 events each week.

Please, give us a hand on this ASAP.

Best,
Jorge

Natalie Blikslager

unread,
Apr 19, 2021, 10:13:41 AM4/19/21
to Eventbrite Developers
Hi Hugo and Jorge,

Our Engineering team is investigating and testing this further. We will report back to you as soon as possible!

Thank you,
Natalie

Natalie Blikslager

unread,
Apr 20, 2021, 3:46:36 PM4/20/21
to Eventbrite Developers
Hi Hugo and Jorge,

Are you still experiencing these 503 errors? We are still investigating what caused them, but they seem to be resolved for now in our testing. 

I successfully created a custom subquestion with the choices you indicated in your payload, so you are not hitting a limit at this point. Below is an example of the correct payload formatting, in case it is helpful - please note the placement of the "parent_id" and "parent_choice_id" attributes:

POST /v3/events/:event_id:/questions/

{
       "question": {
          "question": {
            "html": "Subquestion Name"
          },
          "required": false,
          "type": "dropdown",
          "respondent": "ticket_buyer",
            "parent_id": "12345678",
            "parent_choice_id": "123456789",
          "choices": [
            {"answer":{"html":"Choice Name"}},
            {"answer":{"html":"Choice Name 2"}},
...
]
}
}


Best,
Natalie

Reply all
Reply to author
Forward
0 new messages