Forum - Publishing an update to Address App app not working

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #73174
    Zahra Mousavi
    Participant

    Hi there – I have released two versions since yesterday and it doesn’t seem that Exlibris gets notified!
    It used to take a few minutes for the App to get online. (I am using the same process as I am used to)

    https://github.com/kb-dk/alma_cloud_app_print_user_address/releases

    Could you please help me with that?

    #73180
    Mark Gobat
    Keymaster

    Sorry for the delay. We’ve been experiencing some cloud app build issues with critical vulnerabilities. Your latest version, v6.1.0, has been published. Please consider upgrading the version of the Cloud App Framework for your next release. Running the “eca update” command in your development repository/directory will update the framework. Thank you.

    #73182
    Zahra Mousavi
    Participant

    Sounds great! Thanks, Mark 🙂 And I will.

    #73183
    Zahra Mousavi
    Participant

    I tried running “eca update” but it seems like the command dosn’t exist.

    I get this error after running eca update:

    Unknown command: update

    Available Commands

    init Initialize current directory
    start Install dependencies, configure and start development server
    –no-install : Do not install dependencies
    –no-open-browser : Do not open browser after starting
    –browser <browser> : Overwrite the default browser
    generate Generate code in an initialized project
    extract-labels Extract labels into json files for translation
    build Build production-ready assets for app
    help Display this list of available commands
    version Display the installed version of the CLI

    #73185
    Mark Gobat
    Keymaster

    Interesting. We must have added the “update” command in a version later than what you are running. What version are you running (eca version)?
    It isn’t urgent that you upgrade, but if you want, you can install the latest Cloud App CLI manually: npm install -g @exlibris/exl-cloudapp-cli

    #73186
    Zahra Mousavi
    Participant

    It is v0.3.0

    I will install it manually for now, since I have an update to my App.

    #73349
    Zahra Mousavi
    Participant

    I have released a version of the Address App and it doesn’t seem that Exlibris gets notified again!

    #73345
    Zahra Mousavi
    Participant

    I received an email today that my App doesn’t work. I checked it and I saw a bunch of error:

    Refused to load the stylesheet ‘https://apps01.ext.exlibrisgroup.com/kb-dk/alma_cloud_app_print_user_address/styles.0d94607b2355debaa6ee.css&#8217; because it violates the following Content Security Policy directive: “style-src ‘https://apps01.ext.exlibrisgroup.com&#8217; ‘unsafe-inline’ fonts.googleapis.com”. Note that ‘style-src-elem’ was not explicitly set, so ‘style-src’ is used as a fallback.
    apps01.ext.exlibrisgroup.com/:1 Refused to load the script ‘https://apps01.ext.exlibrisgroup.com/kb-dk/alma_cloud_app_print_user_address/runtime.7b63b9fd40098a2e8207.js&#8217; because it violates the following Content Security Policy directive: “script-src ‘https://apps01.ext.exlibrisgroup.com'&#8221;. Note that ‘script-src-elem’ was not explicitly set, so ‘script-src’ is used as a fallback.
    apps01.ext.exlibrisgroup.com/:1 Refused to load the script ‘https://apps01.ext.exlibrisgroup.com/kb-dk/alma_cloud_app_print_user_address/polyfills.a3f823dd8032b9cfaf23.js&#8217; because it violates the following Content Security Policy directive: “script-src ‘https://apps01.ext.exlibrisgroup.com'&#8221;. Note that ‘script-src-elem’ was not explicitly set, so ‘script-src’ is used as a fallback.
    apps01.ext.exlibrisgroup.com/:1 Refused to load the script ‘https://apps01.ext.exlibrisgroup.com/kb-dk/alma_cloud_app_print_user_address/main.9972cf002eaa7ec01202.js&#8217; because it violates the following Content Security Policy directive: “script-src ‘https://apps01.ext.exlibrisgroup.com'&#8221;. Note that ‘script-src-elem’ was not explicitly set, so ‘script-src’ is used as a fallback.

    But I didn’t get any error in my local machine, after checking that.

    Then I noticed that my eca version is still the old one even though I have installed the latest version. I changed the version in the package.json and ran npm install.

    Now I am getting another error which I don’t understand:

    ERROR Error: Uncaught (in promise): Error: NG0200: Circular dependency in DI detected for ScanService. Find more at https://angular.io/errors/NG0200
    Error: NG0200: Circular dependency in DI detected for ScanService. Find more at https://angular.io/errors/NG0200
    at throwCyclicDependencyError (core.js:216:11)
    at R3Injector.hydrate (core.js:11448:13)
    at R3Injector.get (core.js:11272:33)
    at injectInjectorOnly (core.js:4776:33)
    at ɵɵinject (core.js:4780:12)
    at Object.ScanService_Factory [as factory] (ɵfac.js? [sm]:1:1)
    at R3Injector.hydrate (core.js:11452:35)
    at R3Injector.get (core.js:11272:33)
    at NgModuleRef$1.get (core.js:25337:33)
    at Object.get (core.js:25051:35)
    at resolvePromise (zone.js:832:39)
    at resolvePromise (zone.js:784:21)
    at zone.js:894:21
    at ZoneDelegate.invokeTask (zone.js:421:35)
    at Object.onInvokeTask (core.js:28578:33)
    at ZoneDelegate.invokeTask (zone.js:420:40)
    at Zone.runTask (zone.js:188:51)
    at drainMicroTaskQueue (zone.js:601:39)

    I cannot find any circular dependency in the ScanService! and I am totally lost.

    Could you please help me?

    #73357
    Mark Gobat
    Keymaster

    Hello. The first problem you were having wasn’t specific to your Cloud App; we were experiencing the same error with several Cloud Apps. That problem was resolved.

    I think you may need to run the ‘eca update’ command in your development working directory after installing the latest Cloud App SDK.

    #73359
    Zahra Mousavi
    Participant

    Thanks for the answer, Mark! I am again experiencing that Exlibris doesn’t get notified about my releases!

    #73362
    Mark Gobat
    Keymaster

    Hi Zahra…

    Ex Libirs is only notified that a manual review/build is required if the App Center contribution is updated. If you have the webhook implemented, then a new build/publication should happen automatically. In the case of a webhook-initiated build, Ex Libris is notified of a successful build or a failed build, either due to compilation errors or critical security vulnerabilities.

    If you don’t have the webhook implemented, please update the App Center contribution; we will then be notified that a manual review/re-publish is necessary.

    If you do have the webhook implemented, and your build isn’t getting triggered, please let us know.

    Thanks.

    #73367
    Zahra Mousavi
    Participant

    I have the webhook implemented, and I have used it many many times.
    But last time when you had some cloud app build issues with critical vulnerabilities, the webhook wasn’t getting triggered, and it is the same now.
    Between these two incidents, I was able to publish releases as well.

    #73369
    Mark Gobat
    Keymaster

    It is published now. Thanks for your patience.

    #76002
    Ric Phil
    Participant

    Hi. I was working on a chatbot project and I wanted to know how i could integrate ExLibris into the NLP platform. Has anyone done this previously? Do you think we can actually improve the page by adding ExLibris into it? The page that we are currently working on is for chatbot development services (https://thinkpalm.com/products/chat-bot/)

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.