-
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 #364
Comments
I've seen this error when using invalid api keys. |
Yes, that's what caused the issue for me as well. This needs to be handled more appropriately with proper messaging. |
It's more than just invalid api keys. See dupe issue here: https://github.com/terraform-providers/terraform-provider-datadog/issues/360. My use case is similar to one described in a comment, doing a |
We've seen this issue before in our Go apps when endpoints that should return parsable JSON are instead returning an HTML doc (presumably with an error message). |
Hey folks, I think the first part of this error (failing on incorrect API key) has been fixed by PR zorkian/go-datadog-api#282 to the underlying API client. We've already updated the client version on master branch to include that patch, so next release of the provider will have this fixed. I'm going to close this issue and leave tackling the second part (as mentioned by @johnnyplaydrums) for #360. |
This issue was originally opened by @calebtote as hashicorp/terraform#23474. It was migrated here as a result of the provider split. The original body of the issue is below.
Terraform Version
Terraform Configuration Files
Debug Output
https://gist.github.com/calebtote/92e44ae097f6d6d550ae533c4a4add9e
Expected Behavior
plan succeeds
Actual Behavior
Steps to Reproduce
terraform init
terraform apply
The text was updated successfully, but these errors were encountered: