-
Notifications
You must be signed in to change notification settings - Fork 100
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
Live demoes not working #32
Comments
Hi @antweiss Thanks for your feedback. It seems the demo web page has a stale ID for the deployed function. I followed the tutorial to build and deployed a new function and it worked. We will update the demo page soon.
|
Hi @antweiss , The live demo you mentioned works now. I'm working with the other examples. Please give it a try and let me know if there is any question. |
hi @alabulei1 ! can confirm the demos for both say hello and regex work. thanks a lot! |
What causing stale id btw? I did try hello world example in Aug and now it's hit same error so it seem like it's not there forever and can be stale from unknown condition?
How can i prevent this? I can't find the docs mention about stale or expire. |
Hi @katopz Firstly, please check out the following URL which is the real-time log files from the FaaS server http://rpc.ssvm.secondstate.io:9001/ Please note it is |
Hi @katopz , Besides the additional information that Tim provided, I also want to explain that it is difficult for us to maintain Second State Functions as a free yet production-ready cloud service. 😭 Currently, we are running Second State Functions as a demo service, which we could upgrade and restart from time to time. We have open-sourced all the code for Second State Functions and encourage users to set up their own servers. |
Thanks, that's url work only on incognito. I got...
|
From the logs it looks like there is difficulty finding the executable (this may have happened when the server was moved to a new home a few months back). This should never happen in a perfect world; it seems like a mismatch with the migrating of binary files over to new server. Apologies for any inconvenience. There are two things you can do to resolve this. I will provide 2 solutions below. |
Fetch code
Change to area you want to work with
Compile fresh wasm file
Deploy to FaaS server
This will return a JSON object. Take note of the
|
I know the pain pretty well, I just think we need some mention or warning about any limitation in docs so developer can expect with would work or not 😊 |
Note this does require that the user has the original Once the new
The above Hope this makes sense :) |
This update is actually a really cool feature i.e. hotswap the logic of a program in real-time. From a security standpoint: a) the update requires that the b) from an integrity standpoint the frontend can also be written to check the
Notice how the checksum is the same as the checksum returned (above) when the original wasm binary was deployed to the FaaS? If the Rust is changed in anyway the checksum will be completely different.
This means that a front end can always be 100% sure that it is calling logic that it trusts. With this extra security step the application developer would update the logic and then make sure the front end is aware of the new checksum. |
Tried running the live demo referenced in this article.
The demo is here: https://second-state.github.io/wasm-learning/faas/regex/html/index.html
Received:
{"return_value":"Error executing this function, please check function name, input parameters, return parameter for correctness"}
Same with this demo: https://second-state.github.io/wasm-learning/faas/hello/html/index.html
The text was updated successfully, but these errors were encountered: