Forum Discussion

PaulPeterson1's avatar
PaulPeterson1
Qrew Assistant Captain
5 years ago

Webhook error

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
------------------------------
  • 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
    ------------------------------
    • PaulPeterson1's avatar
      PaulPeterson1
      Qrew Assistant Captain
      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
      ------------------------------