Hi Jason,
I still cannot get my Functions working. But initialy about Example Function from the Documentation. I would like to mention, that in zipped json you could download from the page, you still have Test URL:
{
"name": "Test-Cloud-Function-Math-Example - Exported 2020-07-28 @ 11:06",
"integrationType": "google-cloud-data-actions",
"actionType": "custom",
"config": {
"request": {
"requestUrlTemplate": "https://cloudfunctions.googleapis.com/v1/projects/businesscallingapi/locations/us-central1/functions/function-test-action-math-example:call",..............
This is a little bit confusing, but it is not the main isuue. The main issue is, that when I use Test URL, I get the result of mathematical operation (the sum of the two numbers), but when I use Trigger URL, I get OK, but not the sum of the numbers.
Speaking about our productive functions, when we repalce the Test URL with Trigger URL, we got the following error:
{
"message": "The request could not be understood by the server due to malformed syntax.",
"code": "bad.request",
"status": 400,
"messageParams": {},
"contextId": "681f013c-b506-4fd9-8fc5-eb2d9f4a740b",
"details": [
{
"errorCode": "ACTION.REMOTE_ENDPOINT"
}
],
"errors": [
{
"message": "REST call for action execute failed. Message: We were unable to process the response from the remote endpoint because it had a 'content-type' header of 'text/html; charset=utf-8' instead of the required value of 'application/json'. [681f013c-b506-4fd9-8fc5-eb2d9f4a740b]",
"code": "BAD_REQUEST",
"status": 400,
"messageParams": {},
"details": [],
"errors": []
}
]
}
It is confusing for me, since I change only URL and nothing about the format.
I tried to add some screenshots, but there is some restrictions here. Could I send them personaly in any way?
Best regards,
Borislav