You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a nodejs app as target endpoint in one of my api proxies. I am using
"email-templates": "^2.0.1" NPM module. It runs fine when I run with node.js runtime. But when running on trireme locally (version Trireme 0.8.8) or in edge server (on-prem ver 4.15.04.00) I get below exception
TypeError: Can't use 'in' on a non-object.
at nodeApp/node/node_modules/email-templates/node_modules/juice/node_modules/cheerio/lib/static.js:81
at inlineContent (nodeApp/node/node_modules/email-templates/node_modules/juice/client.js:278)
at nodeApp/node/node_modules/email-templates/lib/email-template.js:132
at tryCatcher (nodeApp/node/node_modules/email-templates/node_modules/bluebird/js/main/util.js:26)
at nodeApp/node/node_modules/email-templates/node_modules/bluebird/js/main/promise.js:507
at nodeApp/node/node_modules/email-templates/node_modules/bluebird/js/main/promise.js:581
at nodeApp/node/node_modules/email-templates/node_modules/bluebird/js/main/async.js:128
at nodeApp/node/node_modules/email-templates/node_modules/bluebird/js/main/async.js:133
at nodeApp/node/node_modules/email-templates/node_modules/bluebird/js/main/async.js:15
at processImmediate (timers.js:345)
Do you have a reproduction recipe? Without knowing what dom is, I have no idea how to reproduce it. Of course, using 'prop' in obj where obj is null, undefined or a non-object produces the expected output.
Sorry for the cross-post from https://community.apigee.com/questions/14176/typeerror-cant-use-in-on-a-non-object-with-trireme.html
I have a nodejs app as target endpoint in one of my api proxies. I am using
"email-templates": "^2.0.1" NPM module. It runs fine when I run with node.js runtime. But when running on trireme locally (version Trireme 0.8.8) or in edge server (on-prem ver 4.15.04.00) I get below exception
cheerio static.js line # 81 is
Any idea on why this is not working? When I remove
&& !('length' in dom) && !('type' in dom)
it works fine.The text was updated successfully, but these errors were encountered: