<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[AWS lambda API error required tempate _id, shortid, name]]></title><description><![CDATA[<p>I'm seeing the following error when calling an API tied to the jsreports aws function.  This works when I call the API directly to the JRS Report console.  Any ideas on what I may be doing wrong?</p>
<p>Fri Aug 11 17:27:59 UTC 2023 : HTTP Method: POST, Resource Path: /v1/report<br />
Fri Aug 11 17:27:59 UTC 2023 : Method request path: {}<br />
Fri Aug 11 17:27:59 UTC 2023 : Method request query string: {}<br />
Fri Aug 11 17:27:59 UTC 2023 : Method request headers: {}<br />
Fri Aug 11 17:27:59 UTC 2023 : Method request body before transformations: {<br />
&quot;template&quot;:{&quot;name&quot;: &quot;SpgmJobSchedule&quot;, &quot;shortid&quot;:&quot;t2mHjC56p&quot;},<br />
&quot;folder&quot;: {&quot;shortid&quot;: &quot;MHhhPe5&quot;},<br />
&quot;options&quot;:{&quot;reports&quot;:{&quot;save&quot;:true} },<br />
&quot;data&quot;:{<br />
&quot;header&quot;: {<br />
&quot;params&quot;: {<br />
&quot;applicationGuid&quot;: &quot;0B43E124-7755-4194-A441-1836F8E6DB48&quot;,<br />
&quot;jobId&quot;: &quot;10024596&quot;<br />
},<br />
&quot;otherInfo&quot;: {<br />
&quot;correlationId&quot;: &quot;6e157773-be6f-477d-9170-bc169d0de6ea&quot;<br />
}<br />
},<br />
&quot;result&quot;: [<br />
{<br />
&quot;jobName&quot;: &quot;Job 3&quot;,<br />
&quot;subdivisionName&quot;: &quot;subDiv 1&quot;,<br />
&quot;taskId&quot;: 37,<br />
&quot;taskName&quot;: &quot;task 37&quot;,<br />
&quot;taskStatus&quot;: &quot;A&quot;,<br />
&quot;adjStartDate&quot;: &quot;2021-10-07T00:00:00.000Z&quot;,<br />
&quot;initStartDate&quot;: &quot;2021-10-07T00:00:00.000Z&quot;,<br />
&quot;daysBehind&quot;: 0,<br />
&quot;supplierName&quot;: &quot;Self Supplied&quot;,<br />
&quot;phaseGroup&quot;: 0<br />
}[TRUNCATED]<br />
Fri Aug 11 17:27:59 UTC 2023 : Endpoint request URI: <a href="https://lambda.us-west-2.amazonaws.com/2015-03-31/functions/arn:aws:lambda:region:acct:function:SPGMJSReport-function/invocations" rel="nofollow">https://lambda.us-west-2.amazonaws.com/2015-03-31/functions/arn:aws:lambda:region:acct:function:SPGMJSReport-function/invocations</a><br />
Fri Aug 11 17:27:59 UTC 2023 : Endpoint request headers: {X-Amz-Date=20230811T172759Z, x-amzn-apigateway-api-id=xxxx, Accept=application/json, User-Agent=AmazonAPIGateway_xxxx, <a href="http://Host=lambda.us-west-2.amazonaws.com" rel="nofollow">Host=lambda.us-west-2.amazonaws.com</a>, X-Amz-Content-Sha256=1ac0742, X-Amzn-Trace-Id=Root=1-64d66f9f-, x-amzn-lambda-integration-tag=6903, Authorization=********, X-Amz-Source-Arn=arn:aws:execute-api:us-west-2:xxxxxx:xxxxi/test-invoke-stage/POST/v1/report, X-Amz-Security-Token=IQoJbvAw2+TF [TRUNCATED]<br />
Fri Aug 11 17:27:59 UTC 2023 : Endpoint request body after transformations: {&quot;resource&quot;:&quot;/v1/report&quot;,&quot;path&quot;:&quot;/v1/report&quot;,&quot;httpMethod&quot;:&quot;POST&quot;,&quot;headers&quot;:null,&quot;multiValueHeaders&quot;:null,&quot;queryStringParameters&quot;:null,&quot;multiValueQueryStringParameters&quot;:null,&quot;pathParameters&quot;:null,&quot;stageVariables&quot;:null,&quot;requestContext&quot;:{&quot;resourceId&quot;:&quot;kno7a3&quot;,&quot;resourcePath&quot;:&quot;/v1/report&quot;,&quot;httpMethod&quot;:&quot;POST&quot;,&quot;extendedRequestId&quot;:&quot;JgZg7EzRvHcF9Rg=&quot;,&quot;requestTime&quot;:&quot;11/Aug/2023:17:27:59 +0000&quot;,&quot;path&quot;:&quot;/v1/report&quot;,&quot;accountId&quot;:&quot;xxx1&quot;,&quot;protocol&quot;:&quot;HTTP/1.1&quot;,&quot;stage&quot;:&quot;test-invoke-stage&quot;,&quot;domainPrefix&quot;:&quot;testPrefix&quot;,&quot;requestTimeEpoch&quot;:1691774879233,&quot;requestId&quot;:&quot;6903d7ad-f93b-40bc-9768-ea14a9d029ef&quot;,&quot;identity&quot;:{&quot;cognitoIdentityPoolId&quot;:null,&quot;cognitoIdentityId&quot;:null,&quot;apiKey&quot;:&quot;test-invoke-api-key&quot;,&quot;principalOrgId&quot;:null,&quot;cognitoAuthenticationType&quot;:null,&quot;userArn&quot;:&quot;arn:aws:sts::xxxxx:assumed-role/AWSReservedSSO_AWSAdministratorAccess_xxxx/jrod@xx.com&quot;,&quot;apiKeyId&quot;:&quot;test-invoke-api-key-id&quot;,&quot;userAgent&quot;:&quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) Apple [TRUNCATED]<br />
Fri Aug 11 17:27:59 UTC 2023 : Sending request to <a href="https://lambda.us-west-2.amazonaws.com/2015-03-31/functions/arn:aws:lambda:region:xxxxx:function:SPGMJSReport-function/invocations" rel="nofollow">https://lambda.us-west-2.amazonaws.com/2015-03-31/functions/arn:aws:lambda:region:xxxxx:function:SPGMJSReport-function/invocations</a><br />
Fri Aug 11 17:27:59 UTC 2023 : Received response. Status: 200, Integration latency: 163 ms<br />
Fri Aug 11 17:27:59 UTC 2023 : Endpoint response headers: {Date=Fri, 11 Aug 2023 17:27:59 GMT, Content-Type=application/json, Content-Length=1091, Connection=keep-alive, x-amzn-RequestId=2de01b49-3ecb-401c-aede-f34ca5fddbed, X-Amz-Function-Error=Unhandled, x-amzn-Remapped-Content-Length=0, X-Amz-Executed-Version=$LATEST, X-Amzn-Trace-Id=root=1-64d66f9f-7faf64125e31ef2c052242f3;sampled=0;lineage=2b960001:0}<br />
Fri Aug 11 17:27:59 UTC 2023 : Endpoint response body before transformations: {&quot;errorType&quot;:&quot;Error&quot;,&quot;errorMessage&quot;:&quot;Template must contains _id, name, shortid or content attribute&quot;,&quot;trace&quot;:[&quot;Error: Template must contains _id, name, shortid or content attribute&quot;,&quot;    at module.exports (/opt/nodejs/node_modules/@jsreport/jsreport-core/lib/shared/createError.js:10:13)&quot;,&quot;    at WorkerReporter.createError (/opt/nodejs/node_modules/@jsreport/jsreport-core/lib/shared/reporter.js:47:12)&quot;,&quot;    at AsyncFunction.&lt;anonymous&gt; (/opt/nodejs/node_modules/@jsreport/jsreport-core/lib/worker/templates.js:14:24)&quot;,&quot;    at ListenerCollection.fire (/opt/nodejs/node_modules/@jsreport/jsreport-core/lib/shared/listenerCollection.js:157:32)&quot;,&quot;    at async beforeRender (/opt/nodejs/node_modules/@jsreport/jsreport-core/lib/worker/render/render.js:25:5)&quot;,&quot;    at async WorkerReporter._render (/opt/nodejs/node_modules/@jsreport/jsreport-core/lib/worker/render/render.js:146:7)&quot;,&quot;    at async /opt/nodejs/node_modules/@jsreport/jsreport-core/lib/worker/reporter.js:179:19&quot;,&quot;   [TRUNCATED]<br />
Fri Aug 11 17:27:59 UTC 2023 : Lambda execution failed with status 200 due to customer function error: Template must contains _id, name, shortid or content attribute. Lambda request id: 2de01b49-3ecb-401c-aede-f34ca5fddbed<br />
Fri Aug 11 17:27:59 UTC 2023 : Method completed with status: 502</p>
]]></description><link>https://forum.jsreport.net/topic/2892/aws-lambda-api-error-required-tempate-_id-shortid-name</link><generator>RSS for Node</generator><lastBuildDate>Sun, 17 May 2026 12:46:25 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/2892.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 11 Aug 2023 17:44:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to AWS lambda API error required tempate _id, shortid, name on Invalid Date]]></title><description><![CDATA[<p>I'm seeing the following error when calling an API tied to the jsreports aws function.  This works when I call the API directly to the JRS Report console.  Any ideas on what I may be doing wrong?</p>
<p>Fri Aug 11 17:27:59 UTC 2023 : HTTP Method: POST, Resource Path: /v1/report<br />
Fri Aug 11 17:27:59 UTC 2023 : Method request path: {}<br />
Fri Aug 11 17:27:59 UTC 2023 : Method request query string: {}<br />
Fri Aug 11 17:27:59 UTC 2023 : Method request headers: {}<br />
Fri Aug 11 17:27:59 UTC 2023 : Method request body before transformations: {<br />
&quot;template&quot;:{&quot;name&quot;: &quot;SpgmJobSchedule&quot;, &quot;shortid&quot;:&quot;t2mHjC56p&quot;},<br />
&quot;folder&quot;: {&quot;shortid&quot;: &quot;MHhhPe5&quot;},<br />
&quot;options&quot;:{&quot;reports&quot;:{&quot;save&quot;:true} },<br />
&quot;data&quot;:{<br />
&quot;header&quot;: {<br />
&quot;params&quot;: {<br />
&quot;applicationGuid&quot;: &quot;0B43E124-7755-4194-A441-1836F8E6DB48&quot;,<br />
&quot;jobId&quot;: &quot;10024596&quot;<br />
},<br />
&quot;otherInfo&quot;: {<br />
&quot;correlationId&quot;: &quot;6e157773-be6f-477d-9170-bc169d0de6ea&quot;<br />
}<br />
},<br />
&quot;result&quot;: [<br />
{<br />
&quot;jobName&quot;: &quot;Job 3&quot;,<br />
&quot;subdivisionName&quot;: &quot;subDiv 1&quot;,<br />
&quot;taskId&quot;: 37,<br />
&quot;taskName&quot;: &quot;task 37&quot;,<br />
&quot;taskStatus&quot;: &quot;A&quot;,<br />
&quot;adjStartDate&quot;: &quot;2021-10-07T00:00:00.000Z&quot;,<br />
&quot;initStartDate&quot;: &quot;2021-10-07T00:00:00.000Z&quot;,<br />
&quot;daysBehind&quot;: 0,<br />
&quot;supplierName&quot;: &quot;Self Supplied&quot;,<br />
&quot;phaseGroup&quot;: 0<br />
}[TRUNCATED]<br />
Fri Aug 11 17:27:59 UTC 2023 : Endpoint request URI: <a href="https://lambda.us-west-2.amazonaws.com/2015-03-31/functions/arn:aws:lambda:region:acct:function:SPGMJSReport-function/invocations" rel="nofollow">https://lambda.us-west-2.amazonaws.com/2015-03-31/functions/arn:aws:lambda:region:acct:function:SPGMJSReport-function/invocations</a><br />
Fri Aug 11 17:27:59 UTC 2023 : Endpoint request headers: {X-Amz-Date=20230811T172759Z, x-amzn-apigateway-api-id=xxxx, Accept=application/json, User-Agent=AmazonAPIGateway_xxxx, <a href="http://Host=lambda.us-west-2.amazonaws.com" rel="nofollow">Host=lambda.us-west-2.amazonaws.com</a>, X-Amz-Content-Sha256=1ac0742, X-Amzn-Trace-Id=Root=1-64d66f9f-, x-amzn-lambda-integration-tag=6903, Authorization=********, X-Amz-Source-Arn=arn:aws:execute-api:us-west-2:xxxxxx:xxxxi/test-invoke-stage/POST/v1/report, X-Amz-Security-Token=IQoJbvAw2+TF [TRUNCATED]<br />
Fri Aug 11 17:27:59 UTC 2023 : Endpoint request body after transformations: {&quot;resource&quot;:&quot;/v1/report&quot;,&quot;path&quot;:&quot;/v1/report&quot;,&quot;httpMethod&quot;:&quot;POST&quot;,&quot;headers&quot;:null,&quot;multiValueHeaders&quot;:null,&quot;queryStringParameters&quot;:null,&quot;multiValueQueryStringParameters&quot;:null,&quot;pathParameters&quot;:null,&quot;stageVariables&quot;:null,&quot;requestContext&quot;:{&quot;resourceId&quot;:&quot;kno7a3&quot;,&quot;resourcePath&quot;:&quot;/v1/report&quot;,&quot;httpMethod&quot;:&quot;POST&quot;,&quot;extendedRequestId&quot;:&quot;JgZg7EzRvHcF9Rg=&quot;,&quot;requestTime&quot;:&quot;11/Aug/2023:17:27:59 +0000&quot;,&quot;path&quot;:&quot;/v1/report&quot;,&quot;accountId&quot;:&quot;xxx1&quot;,&quot;protocol&quot;:&quot;HTTP/1.1&quot;,&quot;stage&quot;:&quot;test-invoke-stage&quot;,&quot;domainPrefix&quot;:&quot;testPrefix&quot;,&quot;requestTimeEpoch&quot;:1691774879233,&quot;requestId&quot;:&quot;6903d7ad-f93b-40bc-9768-ea14a9d029ef&quot;,&quot;identity&quot;:{&quot;cognitoIdentityPoolId&quot;:null,&quot;cognitoIdentityId&quot;:null,&quot;apiKey&quot;:&quot;test-invoke-api-key&quot;,&quot;principalOrgId&quot;:null,&quot;cognitoAuthenticationType&quot;:null,&quot;userArn&quot;:&quot;arn:aws:sts::xxxxx:assumed-role/AWSReservedSSO_AWSAdministratorAccess_xxxx/jrod@xx.com&quot;,&quot;apiKeyId&quot;:&quot;test-invoke-api-key-id&quot;,&quot;userAgent&quot;:&quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) Apple [TRUNCATED]<br />
Fri Aug 11 17:27:59 UTC 2023 : Sending request to <a href="https://lambda.us-west-2.amazonaws.com/2015-03-31/functions/arn:aws:lambda:region:xxxxx:function:SPGMJSReport-function/invocations" rel="nofollow">https://lambda.us-west-2.amazonaws.com/2015-03-31/functions/arn:aws:lambda:region:xxxxx:function:SPGMJSReport-function/invocations</a><br />
Fri Aug 11 17:27:59 UTC 2023 : Received response. Status: 200, Integration latency: 163 ms<br />
Fri Aug 11 17:27:59 UTC 2023 : Endpoint response headers: {Date=Fri, 11 Aug 2023 17:27:59 GMT, Content-Type=application/json, Content-Length=1091, Connection=keep-alive, x-amzn-RequestId=2de01b49-3ecb-401c-aede-f34ca5fddbed, X-Amz-Function-Error=Unhandled, x-amzn-Remapped-Content-Length=0, X-Amz-Executed-Version=$LATEST, X-Amzn-Trace-Id=root=1-64d66f9f-7faf64125e31ef2c052242f3;sampled=0;lineage=2b960001:0}<br />
Fri Aug 11 17:27:59 UTC 2023 : Endpoint response body before transformations: {&quot;errorType&quot;:&quot;Error&quot;,&quot;errorMessage&quot;:&quot;Template must contains _id, name, shortid or content attribute&quot;,&quot;trace&quot;:[&quot;Error: Template must contains _id, name, shortid or content attribute&quot;,&quot;    at module.exports (/opt/nodejs/node_modules/@jsreport/jsreport-core/lib/shared/createError.js:10:13)&quot;,&quot;    at WorkerReporter.createError (/opt/nodejs/node_modules/@jsreport/jsreport-core/lib/shared/reporter.js:47:12)&quot;,&quot;    at AsyncFunction.&lt;anonymous&gt; (/opt/nodejs/node_modules/@jsreport/jsreport-core/lib/worker/templates.js:14:24)&quot;,&quot;    at ListenerCollection.fire (/opt/nodejs/node_modules/@jsreport/jsreport-core/lib/shared/listenerCollection.js:157:32)&quot;,&quot;    at async beforeRender (/opt/nodejs/node_modules/@jsreport/jsreport-core/lib/worker/render/render.js:25:5)&quot;,&quot;    at async WorkerReporter._render (/opt/nodejs/node_modules/@jsreport/jsreport-core/lib/worker/render/render.js:146:7)&quot;,&quot;    at async /opt/nodejs/node_modules/@jsreport/jsreport-core/lib/worker/reporter.js:179:19&quot;,&quot;   [TRUNCATED]<br />
Fri Aug 11 17:27:59 UTC 2023 : Lambda execution failed with status 200 due to customer function error: Template must contains _id, name, shortid or content attribute. Lambda request id: 2de01b49-3ecb-401c-aede-f34ca5fddbed<br />
Fri Aug 11 17:27:59 UTC 2023 : Method completed with status: 502</p>
]]></description><link>https://forum.jsreport.net/post/12510</link><guid isPermaLink="true">https://forum.jsreport.net/post/12510</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to AWS lambda API error required tempate _id, shortid, name on Invalid Date]]></title><description><![CDATA[<p>Could you share the relevant code in lambda?<br />
It looks like the object you pass as param to the <code>jsreport.render</code> doesn't include <code>template.name</code></p>
<p>Note we have lambda tutorial here<br />
<a href="https://jsreport.net/learn/aws-lambda-serverless" rel="nofollow">https://jsreport.net/learn/aws-lambda-serverless</a></p>
]]></description><link>https://forum.jsreport.net/post/12516</link><guid isPermaLink="true">https://forum.jsreport.net/post/12516</guid><dc:creator><![CDATA[admin]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to AWS lambda API error required tempate _id, shortid, name on Invalid Date]]></title><description><![CDATA[<p>It looks like I was missing the &quot;renderRequest&quot; tag around the payload.  This is not required when you call the JSReports Console App API<br />
{<br />
&quot;renderRequest&quot;:{<br />
&quot;template&quot;:{&quot;name&quot;: &quot;XXJobSchedule&quot;, &quot;shortid&quot;: &quot;xxx56p&quot;, &quot;recipe&quot;: &quot;html&quot;},<br />
&quot;options&quot;:{&quot;reports&quot;:{&quot;save&quot;:true} },<br />
&quot;data&quot;: {<br />
.....<br />
}<br />
}<br />
}</p>
]]></description><link>https://forum.jsreport.net/post/12532</link><guid isPermaLink="true">https://forum.jsreport.net/post/12532</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>