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

Display proper error for message not found #738

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

olethanh
Copy link
Collaborator

@olethanh olethanh commented Jan 14, 2025

or not being downloadable

Related ClickUp, GitHub or Jira tickets : ALEPH-353

Problem:

When calling an program on a CRN, whose message the CRN couldn’t reach, it returned the error

500: Unhandled error during initialisation

instead of a proper explanation error

Solution:

Catch that error. Catch also the other possible error when downloading

This also now works when failing to download a runtime or volume

testing

Call your CRN via http with an invalid item hash

or not being downloadable

Problem:
When calling an program on a CRN, whose message the CRN couldn’t reach, it returned the error
```
500: Unhandled error during initialisation
```

instead of a proper explaination error

Solution:
Catch that error. Catch also the other possible error when downloading

This also now works when failing to download a runtime or volume
Copy link

codecov bot commented Jan 14, 2025

Codecov Report

Attention: Patch coverage is 16.66667% with 5 lines in your changes missing coverage. Please review.

Project coverage is 62.76%. Comparing base (c2ad82a) to head (d8209e8).
Report is 8 commits behind head on main.

Files with missing lines Patch % Lines
src/aleph/vm/orchestrator/run.py 16.66% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #738      +/-   ##
==========================================
- Coverage   62.81%   62.76%   -0.05%     
==========================================
  Files          70       70              
  Lines        6314     6319       +5     
  Branches      516      517       +1     
==========================================
  Hits         3966     3966              
- Misses       2190     2195       +5     
  Partials      158      158              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@olethanh olethanh merged commit 4e23ce9 into main Jan 16, 2025
20 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants