question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unhelpful error message when provider fails to resolve

See original GitHub issue

Bug

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:closed
  • Created 4 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
edvaldcommented, Dec 9, 2019

I’m wondering if it only happens with non-Garden exceptions. I can take a closer look, to try and narrow it down.

0reactions
stale[bot]commented, Feb 28, 2020

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found