Skip to content

Application crash when no files are updated #14

Description

@Neylix

Describe the problem you discovered

When an action runs and there is no modification to the content of the files to upload, the application crash:

Connecting to Archethic endpoint...
Fetching keychain...
Keychain loaded with the funding/website services
Check last update...
Analyzing website folder...
Building files transactions...
Building reference transaction...
TypeError: Cannot read properties of undefined (reading 'forEach')
    at getRefTxContent (file:///aeweb_action/node_modules/@archethicjs/aeweb-cli/lib/utils.js:77:18)
    at AEWeb.getRefTransaction (file:///aeweb_action/node_modules/@archethicjs/aeweb-cli/lib/api.js:83:[24](https://github.com/archethic-foundation/archethic-website/actions/runs/11010031496/job/30589600319#step:7:25))
    at handler (file:///aeweb_action/src/action.js:136:29)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async file:///aeweb_action/index.js:46:3

Describe the solution you'd like

The application should log that there is not update and close normally.

Notice that there is a possibility that only the ssl certificates are updated

Epic

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions