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

Getting issue with newrelic_workflow resource: Cannot query field "aiWorkflows" on type "Account" #2354

Closed
6 tasks
rakibkamal-mcd opened this issue May 1, 2023 · 7 comments

Comments

@rakibkamal-mcd
Copy link

rakibkamal-mcd commented May 1, 2023

Terraform Version

Run terraform -v to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed.

Affected Resource(s)

Please list the resources as a list, for example:

  • newrelic_workflow

If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.

Terraform Configuration

Please include your provider configuration (sensitive details redacted) as well as the configuration of the resources and/or data sources related to the bug report.

terraform {
  required_version = ">= 0.13.0"
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = ">= 4.0.0"
    }
    newrelic = {
      source  = "newrelic/newrelic"
    }
  }
    backend "s3" {
        region  = "us-east-1"
    }
}
provider "newrelic" {
}

Actual Behavior

Getting error message in terraform plan stage for resource newrelic_workflow. I tried editing my existing workflow in terraform, and started a fresh terraform project to create a workflow and received the same error.
"Cannot query field "aiWorkflows" on type "Account"."

Expected Behavior

Normal updates to newrelic_workflow resource.

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. Create a newrelic_workflow, newrelic_notification_channel, and newrelic_notification_destination. Values can be anything.
  2. terraform plan

Debug Output

Panic Output

Important Factoids

Utilize New Relic Account ID and API Key with Environment Variables.

References

@rakibkamal-mcd rakibkamal-mcd changed the title Getting issue with workflow resource: Cannot query field "aiWorkflows" on type "Account" Getting issue with newrelic_workflow resource: Cannot query field "aiWorkflows" on type "Account" May 1, 2023
@skuma0404
Copy link

same issue

@jbenassi
Copy link

jbenassi commented May 1, 2023

All CI jobs using this module are failing with this same issue.

@dubb-b
Copy link

dubb-b commented May 1, 2023

Error: Cannot query field "aiWorkflowsCreateWorkflow" on type "RootMutationType".

Not sure but this started happening earlier today. Been messing with provider versions and it didn't seem to change anything.

@FakeSummer
Copy link

Having the same issue. Successfully applied New Relic resources this morning and now plans are failing for this error:

Error: Cannot query field "aiWorkflows" on type "Account"

@someshkoli
Copy link

Following for further updates

@IliaShurygin
Copy link
Collaborator

IliaShurygin commented May 2, 2023

Hi! We had an incident with workflow API that lasted for a couple of hours.
The workflows themselves continued to work normally, but were not accessible though our GraphQL API, and NewRelic's terraform provider uses this API to operate.
The issue has since been resolved, sorry for the disruption!

I have verified that workflow resources are working, but please feel free to re-open the issue or open a new one if something is still broken.

@jakewan
Copy link

jakewan commented Oct 25, 2023

@IliaShurygin Is there any chance a similar incident may be occurring right now? I'm suddenly seeing API issues resulting in similarly-formed errors. In my case, the errors say:

Error: Cannot query field "variables" on type "DashboardEntity".

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

No branches or pull requests

9 participants