Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

Internal server error for query urlResolver while message "We can't find products matching the selection." appears on frontend #436

Closed
TomashKhamlai opened this issue Mar 5, 2019 · 1 comment
Assignees
Labels

Comments

@TomashKhamlai
Copy link
Contributor

If you discover that steps are not precise? please write a comment below and I will add more details.

Preconditions (*)

  1. Have some product that has corresponding URL rewrite, for example
    simple-product.html -> catalog/category/view/id/5

Steps to reproduce (*)

  1. Create Custom URL Rewrite
    Request Path: bla-bla-bla
    Target Path: catalog/category/view/id/5
    Redirect Type: No
  2. Perform query:
query{
  urlResolver(
    url: "bla-bla-bla"
  ) {
    id
    relative_url
    type
    
  }
}

Expected result (*)

  1. message "We can't find products matching the selection." instead of "message": "Internal server error"

Actual result (*)

  1. Internal server error
{
  "errors": [
    {
      "message": "Internal server error",
      "category": "internal",
      "locations": [
        {
          "line": 5,
          "column": 5
        }
      ],
      "path": [
        "urlResolver",
        "type"
      ]
    }
  ],
  "data": {
    "urlResolver": {
      "id": 0,
      "relative_url": "catalog/category/view/id/5",
      "type": null
    }
  }
}
@naydav
Copy link
Contributor

naydav commented May 10, 2019

#445

@naydav naydav closed this as completed May 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants