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 4 3,004
4 REPLIES 4

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.

Pessoal... Criei um app para fazer registro de fotos - Mas para garantir a melhor qualidade dos arquivos fiz de um jeito que รฉ possivel fazer upload da imagem pegando as imagem do arquivo da cรขmera. Mas no iphone 15 comecei a ter problemas para subir as fotos. Depois de quebrar muito a cabeรงa descobri que o app nรฃo suportava imagens com arquivos acima de 2k que nรฃo fossem da extenรงรฃo " JPEG"... Alterei algumas configuraรงรตes no iphone e consegui consertar o problema... 

O app devolvia um erro abaixo... 

"Media type \u0027(null)\u0027 is not supported:  [*/*]"

Nรฃo tem nada a ver com o assunto acima, mas precisa postar isso pra caso alguem procure na internet kkkk... Desculpa ai...

 

Hi

I am getting a similar error from a File Field, and I can t figure out if the user is trying to upload an image instead a pdf file, or a large not supported image:

Message: Unable to add row to table 'Solicitud de Reinscripcion'. โ†’ Unable to save image โ†’ { "error": { "code": 400, "message": "Media type \u0027(null)\u0027 is not supported. Valid media types: [*/*]", "errors": [{ "message": "Media type \u0027(null)\u0027 is not supported. Valid media types: [*/*]", "domain": "global", "reason": "badContent" }] } }

Support team asks for a recorded action which I am not able to provide.

any ideas?

Thank you

Claudio

Top Labels in this Space