Skip to content
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

feat!: Widget system #27

Merged
merged 10 commits into from
Jan 31, 2022
Merged

feat!: Widget system #27

merged 10 commits into from
Jan 31, 2022

Conversation

Nesqwik
Copy link
Member

@Nesqwik Nesqwik commented Jan 19, 2022

No description provided.

@Nesqwik
Copy link
Member Author

Nesqwik commented Jan 19, 2022

For now the server looks good.
The setup is :

The error :

** (RuntimeError) Openfaas error (404) error finding function dev-LouisHelloWorld-2.openfaas-fn: server returned non-200 status code (404) for function, dev-LouisHelloWorld-2
    (lenra 0.1.0) lib/lenra/services/openfaas_services.ex:198: Lenra.OpenfaasServices.response/2
    (lenra 0.1.0) lib/lenra/services/openfaas_services.ex:87: Lenra.OpenfaasServices.fetch_manifest/2
    (application_runner 0.0.0-dev) lib/environment/env_manager.ex:47: ApplicationRunner.EnvManager.init/1
    (stdlib 3.15.2) gen_server.erl:423: :gen_server.init_it/2
    (stdlib 3.15.2) gen_server.erl:390: :gen_server.init_it/6
    (stdlib 3.15.2) proc_lib.erl:226: :proc_lib.init_p_do_apply/3

IMO there is 3 possibilities :

  • Openfaas is not able to found the app (wrong name ? New openfaas version ?)
  • The template is not able to handle to the request and return a 404.
  • The template got the request and crashed when trying to handle it then return 404

Edit :
After a few tests i got a timeout. The function does not seems to properly start at all.

I don't know how to investigate without the logs from Openfaas. And i have not enough time today to fix it.
@taorepoara @shiipou maybe one of you can tell me how to have the Openfaas logs for a specific function deployment ?

@Nesqwik Nesqwik changed the title [WIP] feat!: Widget system feat!: Widget system Jan 24, 2022
apps/lenra/lib/lenra/services/openfaas_services.ex Outdated Show resolved Hide resolved
apps/lenra/test/support/faas_stub_helper.ex Outdated Show resolved Hide resolved
apps/lenra_web/lib/lenra_web/channels/app_channel.ex Outdated Show resolved Hide resolved
apps/lenra_web/lib/lenra_web/channels/app_channel.ex Outdated Show resolved Hide resolved
@Nesqwik Nesqwik merged commit 96ce160 into beta Jan 31, 2022
@Nesqwik Nesqwik deleted the widget-system branch January 31, 2022 08:59
@shiipou
Copy link
Contributor

shiipou commented Apr 4, 2023

🎉 This PR is included in version 1.0.0-alpha.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@taorepoara
Copy link
Member

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants