Unhelpful error message when provider fails to resolve
See original GitHub issueBug
Current Behavior
When I run e.g. garden deploy
and for some reason providers fail to resolve, I sometimes get very unhelpful log messages. Example:
demo-project (gardenβhelm3) g deploy
Deploy π
providers β Getting status...
Failed resolving provider local-kubernetes. Here is the output:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Failed resolving one or more providers:
- local-kubernetes
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Failed resolving one or more providers:
- local-kubernetes
See error.log for detailed error message
This both tells me very little and repeats the same message three times. I expect this is some recent regression, since @eysi09 recently made improvements in this area.
Expected behavior
Iβd expect some helpful text instead of just βFailed to resolve providersβ
Reproducible example
This essentially needs an internal error in the provider to come up. You could try adding a throw
statement somewhere to trigger this, for example.
Workaround
Just cat the error.log file, which still works fine.
Your environment
Garden v0.10.16
Issue Analytics
- State:
- Created 4 years ago
- Comments:8
Top Results From Across the Web
Error Messages: Examples, Best Practices & Common Mistakes
4 common mistakes with error messages Β· 1. Ambiguity Β· 2. Condescending language/blaming the user Β· 3. Poor placement of error messages Β·...
Read more >How to Fix a 400 Bad Request Error (Causes and Fixes) - Kinsta
The 400 Bad Request error indicates that the server cannot or process the request due to a client error. Read about the common...
Read more >Medical Error Reduction and Prevention - StatPearls - NCBI
All providers know medical errors create a serious public health problem that poses a substantial threat to patient safety.
Read more >Eligibility Error Messages - Change Healthcare Developer Portal
This error reports that the correct Provider information is missing in the request. It is an error from the Information Receiver Request Validation...
Read more >What Is DNS Failure? Common Causes And Solutions - Forbes
A DNS failure occurs when a browser cannot convert a domain name to an IP address. Learn some common causes and how to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Iβm wondering if it only happens with non-Garden exceptions. I can take a closer look, to try and narrow it down.
This issue has been automatically marked as stale because it hasnβt had any activity in 60 days. It will be closed in 14 days if no further activity occurs (e.g. changing labels, comments, commits, etc.). Please feel free to remove the label if you think it doesnβt apply. Thank you for submitting this issue and helping make Garden a better product!