Discussions

Expand all | Collapse all

Webhook error

  • 1.  Webhook error

    Posted 04-17-2020 12:51
    Tried a webhook this morning and I'm getting this error:

    400 Error:
    <?xml version="1.0" ?>
    <qdbapi>
    <action>API_AddRecord</action>
    <errcode>11</errcode>
    <errtext>Could not parse XML input</errtext>
    <errdetail>XML Parsing Error. not well-formed (invalid token) at line 1 column 1 (which is byte 1)</errdetail>
    </qdbapi>

    Is this referring to the user token or app token?



    ------------------------------
    Paul Peterson
    ------------------------------


  • 2.  RE: Webhook error

    Posted 04-17-2020 13:00
    Please post your code but hide the usertoken.

    ------------------------------
    Mark Shnier (YQC)
    Quick Base Solution Provider
    Your Quick Base Coach
    http://QuickBaseCoach.com
    mark.shnier@gmail.com
    ------------------------------



  • 3.  RE: Webhook error

    Posted 04-17-2020 13:10
    Pretty sure I found the problem,  but this is the webhook to add a record when a new record is created in another table:

    </qdbapi>
    <udata>mydata</udata>
    <usertoken></usertoken>
    <apptoken></apptoken>
    <records_csv>
    <![CDATA[
    %RepeatOn%
    [Record ID#]
    %RepeatOff%
    ]]>
    </records_csv>
    <clist>3</clist>
    </qdbapi>

    ​I think I found the problem.  I had the wrong fid in the clist for the Record ID#  The webhook above is corrected with the right fid #​

    ------------------------------
    Paul Peterson
    ------------------------------