Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

GRAPHQL errors after last update #570

Closed
tboulogne opened this issue Jan 14, 2020 · 4 comments
Closed

GRAPHQL errors after last update #570

tboulogne opened this issue Jan 14, 2020 · 4 comments

Comments

@tboulogne
Copy link

What I'm trying to achieve

Using storefront

Steps to reproduce the problem

  1. pull last saleor-storefront
  2. request homepage

GraphQL errors

[{
    "errors": [{
        "message": "Unknown type \"AttributeScalar\". Perhaps you meant \"AttributeValue\", \"Attribute\", \"AttributeInput\", \"AttributeCreate\" or \"AttributeDelete\"?",
        "locations": [{
            "line": 62,
            "column": 40
        }],
        "extensions": {
            "exception": {
                "code": "GraphQLError",
                "stacktrace": ["graphql.error.base.GraphQLError: Unknown type \"AttributeScalar\". Perhaps you meant \"AttributeValue\", \"Attribute\", \"AttributeInput\", \"AttributeCreate\" or \"AttributeDelete\"?"]
            }
        }
    }, {
        "message": "Unknown argument \"attributes\" on field \"products\" of type \"Query\".",
        "locations": [{
            "line": 63,
            "column": 27
        }],
        "extensions": {
            "exception": {
                "code": "GraphQLError",
                "stacktrace": ["graphql.error.base.GraphQLError: Unknown argument \"attributes\" on field \"products\" of type \"Query\"."]
            }
        }
    }, {
        "message": "Unknown argument \"inCategory\" on field \"attributes\" of type \"Query\".",
        "locations": [{
            "line": 109,
            "column": 14
        }],
        "extensions": {
            "exception": {
                "code": "GraphQLError",
                "stacktrace": ["graphql.error.base.GraphQLError: Unknown argument \"inCategory\" on field \"attributes\" of type \"Query\"."]
            }
        }
    }]
}]

Thanks for help.

@mateuszkula
Copy link
Contributor

Few minutes ago a PR has been merged that changes queries/mutations so they are in sync with latest saleor release(current storefront was not working due to that). Please update your saleor instance to latest version and this errors should disappear ;)

@tboulogne
Copy link
Author

I'm up to date on saleor :-(

@tboulogne
Copy link
Author

tboulogne commented Jan 14, 2020

My BAD !, you mean saleor-storefront :-)

@tboulogne
Copy link
Author

thanks

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

No branches or pull requests

2 participants