intersystems / intersystems/ipm
ORAS publishing errors not being fully displayed
- Dominant language
- ObjectScript
- Stars
- 41
- Forks
- 29
- Avg merge
- 23h 54m
- Merged PRs (30d)
- 4
Description
## Describe the bug
When publishing to an OCI/ORAS repo, a 401 bad credentials error is being truncated and lost. It manifests as `ERROR! Unable to push 246 : Issue retrieving session url: {'errors':` which is unhelpful as the actual error is missing.
When the actual error message is saved to a debug global, the missing information is present. So somehow somewhere it is being truncated.
`^mtempdc(7463.984942,"errMsg")="ValueError(""Issue retrieving session url: {'errors': [{'status': 401, 'message': 'Bad Credentials'}]}"")"`
## To Reproduce
Unfortunately I've been unable to reproduce this so far.
## Expected behavior
Python errors should be properly displayed to the user. 401, 403, and 404 errors should also maybe get special handling. (This would likely be a good workaround trying to reproduce the full error.)
## System information (please complete the following information):
- IPM version: 0.10.6
- IRIS version: Unknown
- OS: Linux
- Docker or local: Docker
## Dev notes
Look at the %IPM.Repo.Oras.PublishService class, especially the Push() and PushOras() methods.
Contributor guide
Assessment
This issue has not been assessed yet.