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

Edge-CLI: The wasmer app logs: panic when no logs present #4417

Closed
theduke opened this issue Jan 29, 2024 · 3 comments
Closed

Edge-CLI: The wasmer app logs: panic when no logs present #4417

theduke opened this issue Jan 29, 2024 · 3 comments
Labels
bug Something isn't working edge-cli priority-high High priority issue

Comments

@theduke
Copy link
Contributor

theduke commented Jan 29, 2024

It appears the wasmer app logs command can currently run into a situation where retrieving the logs panics.

Reproduction

`wasmer app create -t static-website ...
wasmer app logs XXX
thread 'main' panicked at 'range end index 1000 out of range for slice of length 10', /home/theduke/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-edge-cli-0.1.4/src/cmd/app/logs.rs:113:25
@theduke theduke added bug Something isn't working priority-high High priority issue edge-cli labels Jan 29, 2024
Copy link

linear bot commented Jan 29, 2024

@theduke
Copy link
Contributor Author

theduke commented Jan 29, 2024

cc @maminrayej , might this be related to your recent refactoring?

@maminrayej
Copy link
Contributor

Do you mean the metrics refactor? I don't think so.
Doesn't this command just send a request to backend? If so, I just added the --watch flag to the code path.
I'll investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working edge-cli priority-high High priority issue
Projects
None yet
Development

No branches or pull requests

2 participants