-
Notifications
You must be signed in to change notification settings - Fork 375
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: invalid character '<' looking for beginning of value #360
Comments
I have exactly the same error, but with very different circumstance, in my case terraform apply already executed successfully, but when destroying, the error occurred. Terraform 0.12.13
This happened if there's no Datadog resources get created with the |
Added: |
As noted in #364, the part of this issue that's happening with invalid API key has been solved by zorkian/go-datadog-api#282, so we just need to tackle the second part as reported by @dohoangkhiem. |
When is the next provider update. My datadog key are right but I am still getting this issue. |
+1 |
When is the next release for the provider ? |
@lakshmigk01 we did a release 2.6.0 on 20th January, feel free to give that a go. |
@bkabrda I can create a separate issue for this but just tested with 2.6.0 and I get an error |
@johnnyplaydrums this might be related, so let's keep it in this issue for now. I'd like to ask you to try one thing. Could you set Edit: Additionally, if you could provide the whole |
@bkabrda so in doing a
With the keys as hard coded strings, I see the headers are set correctly. Any ideas? |
@johnnyplaydrums that's interesting. I was able to reproduce this using
I opened a bug for this for Terraform core: hashicorp/terraform#24055 I'm going to close this issue now, since the original report was fixed and the followup report is not an issue in Datadog Provider. Please watch the above mentioned issue to see if this gets fixed in Terraform. The only workaround that I see right now is hardcoding the keys in the TF config file. |
@bkabrda thanks for helping me debug and for creating the issue upstream 👍 |
Hi there,
Terraform Version
Terraform v0.12.13
Affected Resource(s)
provider "datadog"
Error Output
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
Error: invalid character '<' looking for beginning of value
on provider.tf line 1, in provider "datadog":
1: provider "datadog" {
Expected Behavior
message error: APP_KEY or API_KEY are wrong
or connection fail to datadog
Actual Behavior
Error: invalid character '<' looking for beginning of value
Steps to Reproduce
terraform plan
The text was updated successfully, but these errors were encountered: