Skip to content
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

Detailed error message for API key errors #3

Closed
MVJosh opened this issue Sep 14, 2020 · 3 comments
Closed

Detailed error message for API key errors #3

MVJosh opened this issue Sep 14, 2020 · 3 comments

Comments

@MVJosh
Copy link
Contributor

MVJosh commented Sep 14, 2020

This provider generally works well for me and is incredibly useful, however initially I encountered a small error which was non-obvious to debug:

If the API key used does not have the necessary endpoint permissions, the error presented does not explain the problem, e.g:

resource "fusionauth_lambda" "example" {
  name    = "example"
  type    = "SAMLv2Populate"
  enabled = true
  body    = <<EOT-
  function populate(samlResponse, user, registration) {
    console.log("testing");
  }
  EOT
}

Results in:

Error: CreateLambda err: EOF

  on fusionauth.tf line 1, in resource "fusionauth_lambda" "example":
   1: resource "fusionauth_lambda" "example" {

A descriptive error message in this and similar cases would be really useful.

I'd happily submit a PR, but I'm not at all familiar with go

@MCBrandenburg
Copy link
Contributor

@MVJosh The issue we are receiving is from FusionAuth via the API Library.

I've created an issue on the repo: FusionAuth/go-client#41

@MCBrandenburg MCBrandenburg unpinned this issue Sep 29, 2020
@MCBrandenburg MCBrandenburg reopened this Oct 1, 2020
@MCBrandenburg
Copy link
Contributor

This is going to be a two part fix:

@MCBrandenburg
Copy link
Contributor

@MVJosh fixed in v0.1.18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants