-
Notifications
You must be signed in to change notification settings - Fork 218
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
Error trying to import dashboard - unsupported protocol scheme "" #257
Comments
same/similar issue here: Error: Post "/api/folders": unsupported protocol scheme ""
431 on folders.tf line 9, in resource "grafana_folder" "metrics":
432 9: resource "grafana_folder" "metrics" { Terraform: 0.13 |
This error is encountered for one environment but not the other. Both environments have the same versions for Terraform, Grafana (both hosted instances of Grafana Cloud, with different domains), and Grafana provider plugin. The failing instance is a Grafana Cloud trial instance (quotas/limits to number of resources). |
The error has miraculously disappeared when upgrading to Terraform 1.0 (same other versions). Not sure if coincidence or cause. |
Hi, @justinTM and @udh-mendix, I just wanted to confirm something in order to reprodue: suppose your dashboard URL is
I know the documentation says to use the slug, but I'm afraid that might be wrong. Thanks! |
Hi @inkel, I've tried with both and it fails with the same error. |
Thanks. Can you paste me the full error output? |
I've tried with both dashboard ID and the slug, and its the same error. Command for dashboard http://example.net/d/l9ji-5wWz/abc-slug -
Relevant TF debug logs -
|
This leads to confusing bug reports. An example is the one below. It's about importing a resource but it's in fact an invalid URL Fixes #257
This leads to confusing bug reports. An example is the one below. It's about importing a resource but it's in fact an invalid URL Fixes #257
@julienduchesne thanks for getting this fixed in #395. When will the release be cut? I'm waiting for that so terraform can pick up the latest tag. |
This was released in v1.20.0 |
Terraform Version
Terraform: 0.12.9
Terraform Grafana Provider: 1.13.3
Grafana: v8.0.6
Affected Resource(s)
grafana_dashboard
Terraform config
Expected Behavior
Importing grafana dashboard should succeed
Actual Behaviour
Import fails with following error -
Error: Get /api/dashboards/db/abc: unsupported protocol scheme ""
grafana_url
is a HTTPS URL, so its unclear why I'm getting this error.Steps to Reproduce
Import grafana dashboard into terraform
terraform import grafana_dashboard.abc abc-slug
The text was updated successfully, but these errors were encountered: