Appsheet API error - 400 Bad Request

Hi all,

Iโ€™m back with what seems to be a recurring issue with an Update Webhook.
Iโ€™m getting a 400 bad request error.

This is an app that I cloned on November 6th so I had to:

  1. Change the app id in the webhook
  2. Create a new access key as my old ones expired on November 18
  3. I also changed some column names to match updates in my data sources
    Other than that I left everything else the same

{
โ€œActionโ€: โ€œEditโ€,
โ€œPropertiesโ€: {
โ€œLocaleโ€: โ€œen-USโ€,
โ€œLocationโ€: โ€œ47.623098, -122.330184โ€,
โ€œTimezoneโ€: โ€œPacific Standard Timeโ€
},
โ€œRowsโ€: [
<<Start: SELECT(Barriers[Barrier ID],([Source] = [_THISROW-1].[Reflection ID])) >>
{
โ€œBarrier IDโ€: โ€œ<<[Barrier ID]>>โ€,
โ€œSubjectโ€: โ€œ<<[_THISROW-1].[Subject]>>โ€,
โ€œScriptโ€: โ€œ<<[_THISROW-1].[Script]>>โ€,
โ€œReactionโ€: โ€œ<<[_THISROW-1].[Reaction]>>โ€,
โ€œPayoffโ€: โ€œ<<[_THISROW-1].[Payoff]>>โ€,
โ€œCostโ€: โ€œ<<[_THISROW-1].[Cost]>>โ€,
โ€œDesireโ€: โ€œ<<[_THISROW-1].[Desire]>>โ€,
โ€œDiscoveryโ€: โ€œ<<[_THISROW-1].[Discovery]>>โ€,
โ€œCommitmentโ€: โ€œ<<[_THISROW-1].[Commitment]>>โ€,
โ€œLife Domainโ€: โ€œ<<[_THISROW-1].[Life Domain]>>โ€,
},
<< End >>
]
}

The error Iโ€™m getting in the log is:

Error:
"Webhook HTTP post request failed with exception The remote server returned an error: (400) Bad Request. "
Properties:
{
โ€œAppTemplateVersionโ€: โ€œ1.000041โ€,
โ€œRuleNameโ€: โ€œUpdate Barriersโ€,
โ€œEventTypeโ€: โ€œChangeโ€,
โ€œInvokedByโ€: โ€œUpdateโ€,
โ€œServerNameโ€: โ€œINSTANCE-US-WESโ€,
โ€œServerRegionโ€: โ€œus-west1-gcp-prodโ€,
โ€œIgnoreSecurityFiltersโ€: false,
โ€œTableNameโ€: โ€œCheck insโ€,
โ€œRuleTableNameโ€: โ€œCheck insโ€,
โ€œOperationUpdateModeโ€: โ€œUPDATES_ONLYโ€,
โ€œEventMatchโ€: โ€œWorkflow event successfully matchedโ€,
โ€œConditionโ€: โ€œโ€,
โ€œMatchesConditionโ€: โ€œTrueโ€,
โ€œExceptionโ€: "Webhook HTTP post request failed with exception The remote server returned an error: (400) Bad Request. ",
โ€œActionResultsโ€: โ€œCreated 1 ActionResultsโ€,
โ€œAction Typeโ€: โ€œWebhookโ€,
โ€œAction Nameโ€: โ€œUpdate Barrierโ€,
โ€œUrlโ€: โ€œhttps://api.appsheet.com/api/v2/apps/504801c8-ce35-47ca-8938-b99c8713ee0b/tables/Barriers/Actionโ€,
โ€œVerbโ€: โ€œPostโ€,
โ€œMimeTypeโ€: โ€œapplication/jsonโ€,
โ€œHeadersโ€: โ€œapplicationAccessKey:V2-obscured for security reasons, _webhookActionDepth:0โ€,
โ€œPayloadโ€: โ€œ{โ€œActionโ€: โ€œEditโ€,โ€œPropertiesโ€: {โ€œLocaleโ€: โ€œen-USโ€,โ€œLocationโ€: โ€œ47.623098, -122.330184โ€,โ€œTimezoneโ€: โ€œPacific Standard Timeโ€},โ€œRowsโ€: }โ€,
โ€œAppTemplateNameโ€: โ€œ504801c8-ce35-47ca-8938-b99c8713ee0bโ€,
โ€œOperationโ€: โ€œWorkflow actionโ€,
โ€œResultโ€: โ€œFailureโ€
}
OK

0 2 1,895
2 REPLIES 2

Hi @elan_Bailey,

Did you resolve this issue? I noticed something similar in one of my apps. Everything seems to be properly created. Just wondering whether you managed to fix that so maybe you could help me with my problem.

Cheers!

Please contact AppSheet Support for help with this.

Top Labels in this Space