-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
syntax error when running IdentifyTranslate.js #2
Comments
Weird invisible special characters caused the syntax errors. I got rid of the most of them except one. So, I had to remove it manually. The code did not work even after removed the special characters. Code below is working on my system now. Thank you for the sample code. BTW, I did not clone the repo. So, I won't create any pull request. /**
*/ let rp = require("request-promise");
} |
Tried to run code IdentifyTranslate.js for pre-webhook and received the error below:
ul 29 07:13:12 functions crn:v1:bluemix:public:functions:us-south:a/2c426324cc934f71a2a053c9185791ff::: {“error”:“Initialization has failed due to: SyntaxError: Invalid or unexpected token\n at initializeActionHandler (/nodejsAction/runner.js:63:80)\n at doInit (/nodejsAction/src/service.js:174:16)\n at initCode (/nodejsAction/src/service.js:93:24)\n at /nodejsAction/platform/platform.js:125:17\n at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)\n at next (/node_modules/express/lib/router/route.js:137:13)\n at Route.dispatch (/node_modules/express/lib/router/route.js:112:3)\n at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)\n at /node_modules/express/lib/router/index.js:281:22\n at Function.process_params (/node_modules/express/lib/router/index.js:335:12)“}
The text was updated successfully, but these errors were encountered: