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 ran curl http://localhost:9000/2604c2a8a4e4/examples-testing/v1/call/longest_repetition -X POST --data 'aaa' But it stuck and didn't return anything.
I found that the FaaS container shows this error when the function is called:
metacall_faas | Server is running on the port 9000
metacall_faas | examples-testing | NodeJS Loader Error: NodeJS Loader could not convert the value of type 'Invalid' to N-API
metacall_faas | examples-testing | NodeJS Loader Error: NodeJS Loader could not convert the value of type 'Invalid' to N-API
metacall_faas | examples-testing | /metacall/dist/worker/index.js:82
metacall_faas | examples-testing | result: functions[fn.name](...fn.args)
metacall_faas | examples-testing | ^
metacall_faas | examples-testing |
metacall_faas | examples-testing | Error: NodeJS Loader could not convert the value of type 'Invalid' to N-API
metacall_faas | examples-testing | at process.<anonymous> (/metacall/dist/worker/index.js:82:51)
metacall_faas | examples-testing | at process.emit (node:events:517:28)
metacall_faas | examples-testing | at process.emit (node:domain:489:12)
metacall_faas | examples-testing | at emit (node:internal/child_process:944:14)
metacall_faas | examples-testing | at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
metacall_faas | examples-testing |
metacall_faas | examples-testing | Node.js v18.19.0
This is the output of the metacall-deploy --inspect OpenAPIv3 --dev command:
@HeeManSu once the linux distributable CI finishes, you can try to implement this.
In the worker, you will need to change the metacall_load_from_configuration_export to metacall_load_from_configuration, and then use call by name with metacallfms.
Check the test, it's calling a function by passing the name of the function and the json as string directly. This will solve the problems related to the call.
The body parser for json can be removed and we can use plain text for the call and await with this.
Description
Post requests don't work when using FaaS locally.
Details
After deploying the string manipulation example locally.
I ran
curl http://localhost:9000/2604c2a8a4e4/examples-testing/v1/call/longest_repetition -X POST --data 'aaa'
But it stuck and didn't return anything.I found that the FaaS container shows this error when the function is called:
This is the output of the
metacall-deploy --inspect OpenAPIv3 --dev
command:Obviously, when I send the request again the container crashes:
The text was updated successfully, but these errors were encountered: