If we do it with the url you indicate, we get this error.
Resolve request URL template: Substitution values invalid in action config. Reference ${credentials.client_id} evaluated to null when attempting to render at UrlTemplate[line 1, column 94] A common reason for this error is needing to prepend the variable with 'input.' or 'credentials.'
I did not notice you replaced some of them with camelCase. Replace client_id with clientId. Do the same with client_secret. Basically it should match the names you've set in the integration credentials.
We make this mistake.
{
"requestUrlTemplate": "https://accounts.zoho.eu/oauth/v2/token?refresh_token= {credentials.refresh_token}&clientId= {credentials.clientId}&clientSecret=${credentials.clientSecret}&grant_type=refresh_token",
"requestType": "POST",
"headers": {
"Authorization": "Basic encoding.base64(\" {credentials.clientId}:${credentials.clientSecret}")",
"Content-Type": "application/x-www-form-urlencoded"
},
"requestTemplate": "grant_type=client_credentials"
}
Error:
{ "message": "The request could not be understood by the server due to malformed syntax.", "code": "bad.request", "status": 400, "messageParams": {}, "contextId": "984d0275-12f9-46a5-8acb-dc8b3359c5de", "details": [ { "errorCode": "ACTION.REMOTE_ENDPOINT" } ], "errors": [ { "message": "REST call for action execute failed. Message:Request to backend service failed. Response from web service: \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<html>\n<head>\n<meta name="viewport" content="width=device-width, initial-scale=1.0">\n<link\n\thref="https://fonts.googleapis.com/css?family=Open+Sans:400,600,700"\n\trel="stylesheet ">\n\n</head>\n<style>\nbody {\n\twidth: 100%;\n\tfont-family: 'Open Sans', sans-serif;\n\tmargin: 0;\n}\n\n.container {\n\tdisplay: block;\n\twidth: 70%;\n\tmargin: auto;\n\tmargin-top: 120px;\n}\n\n.zoho_logo {\n\tdisplay: block;\n\tmargin: auto;\n\theight: 34px;\n\twidth: 100px;\n\tbackground: url("/v2/components/images/zoho.png") no-repeat transparent;\n\tbackground-size: auto 100%;\n\tmargin-bottom: 40px;\n}\n\n.error_img {\n\tdisplay: block;\n\theight: 300px;\n\tmargin-bottom: 40px;\n\twidth: 100%;\n}\n\n.raodblock {\n\tbackground: url(/v2/components/images/roadblock.png) no-repeat transparent;\n\tbackground-size: auto 100%;\n\tbackground-position: center;\n}\n\n.heading {\n\tdisplay: block;\n\ttext-align: center;\n\tfont-size: 24px;\n\tmargin-bottom: 10px;\n\tline-height: 34px;\n\tfont-weight: 600;\n}\n\n.discrption {\n\tdisplay: block;\n\twidth: 500px;\n\tmargin: auto;\n\ttext-align: center;\n\tfont-size: 16px;\n\tmargin-bottom: 10px;\n\tline-height: 24px;\n\tcolor: #444 ;\n}\n\n@media only screen and (-webkit-min-device-pixel-ratio: 2) , only screen and (\n\t\tmin--moz-device-pixel-ratio: 2) , only screen and (\n\t\t-o-min-device-pixel-ratio: 2/1) , only screen and (\n\t\tmin-device-pixel-ratio: 2) , only screen and ( min-resolution: 192dpi)\n\t\t, only screen and ( min-resolution: 2dppx) {\n\t.raodblock {\n\t\tbackground: url(/v2/components/images/roadblock@2x.png) no-repeat transparent;\n\t\tbackground-size: auto 100%;\n\t\tbackground-position: center;\n\t}\n}\n\n@media only screen and (max-width: 420px) {\n\t.container {\n\t\twidth: 90%;\n\t\tmargin-top: 50px;\n\t}\n\t.discrption {\n\t\twidth: 100%;\n\t}\n\t.error_img {\n\t\tdisplay: block;\n\t\tmax-width: 340px;\n\t\tbackground-size: 100% auto;\n\t\tmargin: auto;\n\t\tmargin-bottom: 40px;\n\t}\n\t.heading {\n\t\tdisplay: block;\n\t\ttext-align: center;\n\t\tfont-size: 20px;\n\t\tmargin-bottom: 10px;\n\t\tline-height: 30px;\n\t\tfont-weight: 600;\n\t}\n\t.discrption {\n\t\tdisplay: block;\n\t\tmargin: auto;\n\t\ttext-align: center;\n\t\tfont-size: 14px;\n\t\tmargin-bottom: 10px;\n\t\tline-height: 24px;\n\t\tcolor: #444 ;\n\t}\n}\n</style>\n\n<body>\n\t<div class="container">\n\t\t<div class="zoho_logo"></div>\n\t\t<div class="error_img raodblock"></div>\n\t\t<div class="heading">An error occurred.</div>\n\t\t<div class="discrption">An error occurred while processing your request.<br> Please try again later.\n\t\t</div>\n\t</div>\n</body>\n</html> [984d0275-12f9-46a5-8acb-dc8b3359c5de]", "code": "BAD_REQUEST", "status": 400, "messageParams": {}, "details": [], "errors": [] } ] }
Try removing the headers and emptying out the requestTemplate
Hi,
Now he's pointing out this mistake:
{
"error": "<REDACTED STRING(14)>"
}
Steps:
Validate request body contains simple json (key-value pairs)
{
"orgId": "c1011b6e-9027-415e-8989-222df70e004e",
"integrationId": "6ea2ef2c-328d-49b5-9eba-2e46602b7f4d",
"rawRequest": "{}"
}
Validate draft definition
{
"success": true
}
Validate request body against input schema
{
"success": true
}
Perform authentication
{
"success": true
}
Resolve request URL template
"[POST] https://accounts.zoho.eu/oauth/v2/token?refresh_token= &clientId=&clientSecret=&grant_type=refresh_token"
Resolve request header templates
{}
Resolve request body template
"{}"
Execute
{
"error": "<REDACTED STRING(14)>"
}
Resolve translation map
{
"rawResult": "<REDACTED STRING(32)>"
}
Apply output transformation
{
"error": "<REDACTED STRING(14)>"
}
Validate output against schema
{
"success": true
}
Flatten
{
"error": "invalid_client"
}
I've already worked it out. Thank you very much.
Regards
1 Like
Now when we generate the data action we get this glitch.
Attached is the data action.
zoho-2020030585331.custom.json (980 Bytes)
{
"message": "The requested resource was not found.",
"code": "not.found",
"status": 404,
"messageParams": {},
"contextId": "5150e940-c830-43dd-90bf-28502dba7e88",
"details": [
{
"errorCode": "ACTION.REMOTE_ENDPOINT"
}
],
"errors": [
{
"message": "REST call for action execute failed. Message:Request to backend service failed. Response from web service: {"code":"INVALID_URL_PATTERN","details":{},"message":"Please check if the URL trying to access is a correct one","status":"error"}\n [5150e940-c830-43dd-90bf-28502dba7e88]",
"code": "NOT_FOUND",
"status": 404,
"messageParams": {},
"details": [],
"errors": []
}
]
}
Regards,
db97f7fa835dbf12c5ab:
ACTION.REMOTE_ENDPOINT
If you're getting this errorCode that means that the service (in this case Zoho) you're trying to request from is throwing back the error. You'd need to consult their documentations on why you're getting the error response.
I already solved it, thanks!
Hello again,
now we get this mistake.
{
"message": "The requested resource was not found.",
"code": "not.found",
"status": 404,
"messageParams": {},
"contextId": "720dce79-1112-4ec2-9d3b-bf129c6973d2",
"details": [
{
"errorCode": "ACTION.REMOTE_ENDPOINT"
}
],
"errors": [
{
"message": "REST call for action execute failed. Message:Request to backend service failed. Response from web service: {"code":"INVALID_URL_PATTERN","details":{},"message":"Please check if the URL trying to access is a correct one","status":"error"}\n [720dce79-1112-4ec2-9d3b-bf129c6973d2]",
"code": "NOT_FOUND",
"status": 404,
"messageParams": {},
"details": [],
"errors": []
}
]
}
Fail step 8
attached the data action
AcciondeDatosZoho-PUT-20200305160303.custom.json (1.2 KB)
Hi,
It seems that you're again getting the errorCode: ACTION.REMOTE_ENDPOINT
As mentioned, that's an indication that you are successfuly sending the request to the webservice but the service (Zoho) is giving you back the error. Based on the status (404) it seems Zoho did not find what you were trying to query/search for. Unfortunately, I'm not familiar with Zoho or its API so I can't give expert advice on it.
Hello and this mistake, what is it?
{
"message": "The request could not be understood by the server due to malformed syntax.",
"code": "bad.request",
"status": 400,
"messageParams": {},
"contextId": "cf97c5cd-cb94-4284-8fb0-b5c5b7c1f527",
"details": [
{
"errorCode": "ACTION.REMOTE_ENDPOINT"
}
],
"errors": [
{
"message": "REST call for action execute failed. Message:Request to backend service failed. Response from web service: {"code":"MANDATORY_NOT_FOUND","details":{"api_name":"data"},"message":"required field not found","status":"error"}\n [cf97c5cd-cb94-4284-8fb0-b5c5b7c1f527]",
"code": "BAD_REQUEST",
"status": 400,
"messageParams": {},
"details": [],
"errors": []
}
]
}
Thnks!
Still Zoho throwing the error back. Looks like your request is missing some field that Zoho is expecting.
Reference ${credentials.client_id} evaluated to null when attempting to render at UrlTemplate
Indicates that the credentials you created didn't include "client_id". Do you still have the key/value pairs of credentials that you created? If not, you might create a new set of credentials and make sure that you keep track of the "name" of each part of the credential.
system
Closed
April 6, 2020, 1:30pm
35
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.