Open Mostafa-wael opened 3 months ago
Yes, this bug is related to this: https://github.com/metacall/core/issues/518
This can be solved after implementing metacallfms
. This is available in version 0.8.1.
This should also solve this: https://github.com/metacall/faas/issues/64
@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.
You have an example of the API here: https://github.com/metacall/core/commit/649a0546a42ee638ca68ee0d470c6ea4e3bdeb3e
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: