Hi team,
My team and I are running into a strange situation. We’re using the WorkFlow Blocks to create triggers. We’re successfully receiving the Monday webhook and saving it into our system (Ex https://api-gw.monday.com/automations/apps-events/[id]).
We can hit the endpoint in postman using our secret signing key and are successfully process the request.
We copy the code provided by postman and paste it into our solution.
When we call our solution through postman (Ex: https://our-api.com/callMonday) the app successfully goes through and triggers the event in Monday.
The problem is that once our Mobile app (ios) calls our solution (Our own server that is) and goes through the process of hitting Monday, it fails. The only info we get back is
response = {RestResponse} StatusCode: InternalServerError, Content-Type: application/json; charset=utf-8, Content-Length: -1)
Content = {string} "{"message":"error"}"
ContentEncoding = {string} null
ContentLength = {long} -1
ContentType = {string} "application/json; charset=utf-8"
Cookies = {List<RestResponseCookie>} Count = 1
ErrorException = {Exception} null
ErrorMessage = {string} null
Headers = {List<Parameter>} Count = 21
IsSuccessful = {bool} false
ProtocolVersion = {Version} 1.1
RawBytes = {byte[]} byte[19]
Request = RestRequest
ResponseStatus = {ResponseStatus} Completed
ResponseUri = {Uri} https://api-gw.monday.com/automations/apps-events/{removed}
Server = {string} "cloudflare"
StatusCode = {HttpStatusCode} InternalServerError
StatusDescription = {string} "Internal Server Error"
_content = {string} "{"message":"error"}"
These are also the headers we recieve
Headers = {List<Parameter>} Count = 21
[0] = {Parameter} Date=Wed, 13 Jul 2022 22:14:58 GMT
[1] = {Parameter} Connection=keep-alive
[2] = {Parameter} x-amzn-RequestId=a56f0c1c-7644-4df1-912d-51e4d7fc535a
[3] = {Parameter} x-amzn-Remapped-Content-Length=19
[4] = {Parameter} x-amzn-Remapped-Connection=keep-alive
[5] = {Parameter} x-amz-apigw-id=VOeLZHeDIAMFQlg=
[6] = {Parameter} Vary=Origin
[7] = {Parameter} X-Powered-By=Express
[8] = {Parameter} ETag=W/"13-PTpAN6L/xzRlD2R0fXpcxWPDF/Y"
[9] = {Parameter} x-amzn-Remapped-Date=Wed, 13 Jul 2022 22:14:58 GMT
[10] = {Parameter} X-Cache=Error from cloudfront
[11] = {Parameter} Via=1.1 52271e90b57cafa189a2830b7c04a6f8.cloudfront.net (CloudFront)
[12] = {Parameter} X-Amz-Cf-Pop=SLC50-C1
[13] = {Parameter} X-Amz-Cf-Id=StBfvOmZlEWaAYwBT86mU4e0Rqua7z1R1Yf6xPORyWsRNGDSlh151g==
[14] = {Parameter} CF-Cache-Status=DYNAMIC
[15] = {Parameter} Expect-CT=max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
[16] = {Parameter} Set-Cookie=__cf_bm=z6HJVAnh6{removed}08RojM7; path=/; expires=Wed, 13-Jul-22 22:44:58 GMT; domain=.monday.com; Http…
[17] = {Parameter} Strict-Transport-Security=max-age=15552000; includeSubDomains; preload
[18] = {Parameter} Server=cloudflare
[19] = {Parameter} CF-RAY=72a55fe56a5627d4-SLC
[20] = {Parameter} Content-Type=application/json; charset=utf-8
Here’s an example of http request
curl --location --request POST 'https://api-gw.monday.com/automations/apps-events/139625688' \
--header 'Authorization: {ourSignatureSecretId}' \
--header 'Content-Type: application/json' \
--data-raw '{
"trigger": {
"outputFields": {
"quativaProject": {
"projectName": "myProject"
}
}
}
}'
Let us know if anyone has suggestions or questions