Anyone made an API call to a (free) weather service yet? I have been trying loads of services, NPM packages and different type of code, however I keep getting errors and results not useable in a flow.
I have used ChatGPT to generate me some code which actually works, however I keep on getting this error:
error
TypeError: codePieceModule. code is not a function
at Object. <anonymous>
(webpack: //activepieces/engine/src/lib/executors/code-
executer. ts: 9:32)
at Generator.next (<anonymous>)
at fulfilled
(webpack: //activepieces/node modules/tslib/tslib.es6.mjs: 118:41)
This is a very open request, anyone got some tips and maybe a small tutorial on how to set this up.
Much appreciated!
The reason behind this issue is that the code expected everything to be implemented inside a function called “code.”
I assume you used ChatGPT to generate code, but it didn’t include the code inside this function. I think adding code generation feature by OpenAI would prevent this issue for other users.
A while ago, we included a warning, but I believe it can be improved. Open to suggestions.