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

Application crash when no files are updated #14

Open
Neylix opened this issue Sep 24, 2024 · 0 comments
Open

Application crash when no files are updated #14

Neylix opened this issue Sep 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Neylix
Copy link
Member

Neylix commented Sep 24, 2024

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

@Neylix Neylix added the bug Something isn't working label Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant