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

Error 502 using the wait arguments #13

Open
iamvdo opened this issue Mar 21, 2019 · 1 comment
Open

Error 502 using the wait arguments #13

iamvdo opened this issue Mar 21, 2019 · 1 comment

Comments

@iamvdo
Copy link

iamvdo commented Mar 21, 2019

Trying to use wait or waitForSelector, but always get error 502.

Also true on homepage example using GraphiQL.

Any clue? :)

@dinubs
Copy link
Owner

dinubs commented Mar 21, 2019

No clue just yet, adding more information to help with debugging

Returned JSON

{
  "error": {
    "code": "502",
    "message": "An error occurred with your deployment"
  }
}

Query

{
  hnews: site(url: "https://news.ycombinator.com", wait: 1) {
    numberOfTitles: count(elem: "tr.athing")
    titles: selectAll(elem: "tr.athing") {
      id: attr(name: "id")
      numberOfLinks: count(elem: ".storylink")
      link: select(elem: ".storylink") {
        text
        href
        class
        classList
      }
    }
  }
}

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