Hi there,
I’ve read the other topics on the subject and here is what I did already:
- took a new browser to refresh (cached scripts? contents?) : It actually got one script working with this solution.
- added some console.logs to check out from the Test Script AND from the webtask console logs live output: Helped me to see that only the create script isn’t working at all. There is a console.log on the first line and this isn’t even read
- checked the scripts on local env and works like a charm
Here is how my create script look:
function create(user, callback) {
console.log("Calling create()");
request({
url: "https://endpoint.com/to/somewhere",
method: "POST",
body: { user },
qs: { SECURE: configuration.SECURE_KEY },
json: true
},
function(err, res, body) {
if (body.ok) return callback(null, body.data);
callback(err, res);
}
);
}
and this is the result:
Any idea how to make it work?
Thanks for you help,
Gabin