[BUG] "Passed automated check for common errors" failing

Hi

We’ve very recently ran into issues with the “Passed automated check for common errors” step as part of the app submission process. The step would always fail to execute.

Looking at the network response when clicking the “Run automated tests” button I get this:

error: Error: Field 'state' doesn't exist on type 'LatestAutomatedScanResult' (Did you mean `status`?)

Removing ‘state’ from the query, and running the api call again manually fixed this for us.

mutation AutomatedScanMutation($input: CreateAutomatedScanRequestsInput!) {
  createAutomatedScanRequests(input: $input) {
    automatedScanResults {
      type
      state <- removed this
      status
      completedAt
      __typename
    }
    __typename
  }
}

1 Like

Hello, I also run into this issue, just wondering where can I manually remove the state field on the query? sorry just a newbie shopify dev.

Hi Elmer,

So it sounds like you’d simply just need to remove state which is a field on the automatedScanResults object, eg:

I went into the network logs in the browser and found the request that was being sent when you click the button. I then made my own fetch call from the browser mimicking the one from Shopify, but without the state inside of the query.

Hope this helps.