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

$ is not a function #24

Open
thebetterjort opened this issue May 27, 2021 · 0 comments
Open

$ is not a function #24

thebetterjort opened this issue May 27, 2021 · 0 comments

Comments

@thebetterjort
Copy link

$ is not a function

Any ideas on why when serving this over https with Caddy that the default query of

{
  hnews: site(url: "https://news.ycombinator.com") {
    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
      }
    }
  }
}

returns

{ "errors": [ { "message": "$ is not a function", "locations": [ { "line": 5, "column": 7 } ], "path": [ "hnews", "titles", 0, "id" ] }, { "message": "$ is not a function", "locations": [ { "line": 6, "column": 7 } ], "path": [ "hnews", "titles", 0, "numberOfLinks" ] }, { "message": "$ is not a function", "locations": [ { "line": 7, "column": 7 } ], "path": [ "hnews", "titles", 0, "link" ] }, { "message": "$ is not a function", "locations": [ { "line": 5, "column": 7 } ], "path": [ "hnews", "titles", 1, "id" ] }, { "message": "$ is not a function", "locations": [ { "line": 6, "column": 7 } ], "path": [ "hnews", "titles", 1, "numberOfLinks" ] }, { "message": "$ is not a function", "locations": [ { "line": 7, "column": 7 } ], "path": [ "hnews", "titles", 1, "link" ] }, { "message": "$ is not a function", "locations": [ { "line": 5, "column": 7 } ], "path": [ "hnews", "titles", 2, "id" ] }, { "message": "$ is not a function", "locations": [ { "line": 6, "column": 7 } ], "path": [ "hnews", "titles", 2, "numberOfLinks" ] }, { "message": "$ is not a function", "locations": [ { "line": 7, "column": 7 } ], "path": [ "hnews", "titles", 2, "link" ] }, { "message": "$ is not a function", "locations": [ { "line": 5, "column": 7 } ], "path": [ "hnews", "titles", 3, "id" ] }, { "message": "$ is not a function", "locations": [ { "line": 6, "column": 7 } ], "path": [ "hnews", "titles", 3, "numberOfLinks" ] }, { "message": "$ is not a function", "locations": [ { "line": 7, "column": 7 } ], "path": [ "hnews", "titles", 3, "link" ] }, { "message": "$ is not a function", "locations": [ { "line": 5, "column": 7 } ], "path": [ "hnews", "titles", 4, "id" ] }, { "message": "$ is not a function", "locations": [ { "line": 6, "column": 7 } ], "path": [ "hnews", "titles", 4, "numberOfLinks" ] }, { "message": "$ is not a function", "locations": [ { "line": 7, "column": 7 } ], "path": [ "hnews", "titles", 4, "link" ] }, { "message": "$ is not a function", "locations": [ { "line": 5, "column": 7 } ], "path": [ "hnews", "titles", 5, "id" ] }, { "message": "$ is not a function", "locations": [ { "line": 6, "column": 7 } ], "path": [ "hnews", "titles", 5, "numberOfLinks" ] }, { "message": "$ is not a function", "locations": [ { "line": 7, "column": 7 } ], "path": [ "hnews", "titles", 5, "link" ] }, { "message": "$ is not a function", "locations": [ { "line": 5, "column": 7 } ], "path": [ "hnews", "titles", 6, "id" ] }, { "message": "$ is not a function", "locations": [ { "line": 6, "column": 7 } ], "path": [ "hnews", "titles", 6, "numberOfLinks" ] }, { "message": "$ is not a function", "locations": [ { "line": 7, "column": 7 } ], "path": [ "hnews", "titles", 6, "link" ] }, { "message": "$ is not a function", "locations": [ { "line": 5, "column": 7 } ], "path": [ "hnews", "titles", 7, "id" ] }, { "message": "$ is not a function", "locations": [ { "line": 6, "column": 7 } ], "path": [ "hnews", "titles", 7, "numberOfLinks" ] }, { "message": "$ is not a function", "locations": [ { "line": 7, "column": 7 } ], "path": [ "hnews", "titles", 7, "link" ] }, { "message": "$ is not a function", "locations": [ { "line": 5, "column": 7 } ], "path": [ "hnews", "titles", 8, "id" ] }, { "message": "$ is not a function", "locations": [ { "line": 6, "column": 7 } ], "path": [ "hnews", "titles", 8, "numberOfLinks" ] }, { "message": "$ is not a function", "locations": [ { "line": 7, "column": 7 } ], "path": [ "hnews", "titles", 8, "link" ] }, { "message": "$ is not a function", "locations": [ { "line": 5, "column": 7 } ], "path": [ "hnews", "titles", 9, "id" ] }, { "message": "$ is not a function", "locations": [ { "line": 6, "column": 7 } ], "path": [ "hnews", "titles", 9, "numberOfLinks" ] }, { "message": "$ is not a function", "locations": [ { "line": 7, "column": 7 } ], "path": [ "hnews", "titles", 9, "link" ] }, { "message": "$ is not a function", "locations": [ { "line": 5, "column": 7 } ], "path": [ "hnews", "titles", 10, "id" ] }, { "message": "$ is not a function", "locations": [ { "line": 6, "column": 7 } ], "path": [ "hnews", "titles", 10, "numberOfLinks" ] }, { "message": "$ is not a function", "locations": [ { "line": 7, "column": 7 } ], "path": [ "hnews", "titles", 10, "link" ] }, { "message": "$ is not a function", "locations": [ { "line": 5, "column": 7 } ], "path": [ "hnews", "titles", 11, "id" ] }, { "message": "$ is not a function", "locations": [ { "line": 6, "column": 7 } ], "path": [ "hnews", "titles", 11, "numberOfLinks" ] }, { "message": "$ is not a function", "locations": [ { "line": 7, "column": 7 } ], "path": [ "hnews", "titles", 11, "link" ] }, { "message": "$ is not a function", "locations": [ { "line": 5, "column": 7 } ], "path": [ "hnews", "titles", 12, "id" ] }, { "message": "$ is not a function", "locations": [ { "line": 6, "column": 7 } ], "path": [ "hnews", "titles", 12, "numberOfLinks" ] }, { "message": "$ is not a function", "locations": [ { "line": 7, "column": 7 } ], "path": [ "hnews", "titles", 12, "link" ] }, { "message": "$ is not a function", "locations": [ { "line": 5, "column": 7 } ], "path": [ "hnews", "titles", 13, "id" ] }, { "message": "$ is not a function", "locations": [ { "line": 6, "column": 7 } ], "path": [ "hnews", "titles", 13, "numberOfLinks" ] }, { "message": "$ is not a function", "locations": [ { "line": 7, "column": 7 } ], "path": [ "hnews", "titles", 13, "link" ] }, { "message": "$ is not a function", "locations": [ { "line": 5, "column": 7 } ], "path": [ "hnews", "titles", 14, "id" ] }, { "message": "$ is not a function", "locations": [ { "line": 6, "column": 7 } ], "path": [ "hnews", "titles", 14, "numberOfLinks" ] }, { "message": "$ is not a function", "locations": [ { "line": 7, "column": 7 } ], "path": [ "hnews", "titles", 14, "link" ] }, { "message": "$ is not a function", "locations": [ { "line": 5, "column": 7 } ], "path": [ "hnews", "titles", 15, "id" ] }, { "message": "$ is not a function", "locations": [ { "line": 6, "column": 7 } ], "path": [ "hnews", "titles", 15, "numberOfLinks" ] }, { "message": "$ is not a function", "locations": [ { "line": 7, "column": 7 } ], "path": [ "hnews", "titles", 15, "link" ] }, { "message": "$ is not a function", "locations": [ { "line": 5, "column": 7 } ], "path": [ "hnews", "titles", 16, "id" ] }, { "message": "$ is not a function", "locations": [ { "line": 6, "column": 7 } ], "path": [ "hnews", "titles", 16, "numberOfLinks" ] }, { "message": "$ is not a function", "locations": [ { "line": 7, "column": 7 } ], "path": [ "hnews", "titles", 16, "link" ] }, { "message": "$ is not a function", "locations": [ { "line": 5, "column": 7 } ], "path": [ "hnews", "titles", 17, "id" ] }, { "message": "$ is not a function", "locations": [ { "line": 6, "column": 7 } ], "path": [ "hnews", "titles", 17, "numberOfLinks" ] }, { "message": "$ is not a function", "locations": [ { "line": 7, "column": 7 } ], "path": [ "hnews", "titles", 17, "link" ] }, { "message": "$ is not a function", "locations": [ { "line": 5, "column": 7 } ], "path": [ "hnews", "titles", 18, "id" ] }, { "message": "$ is not a function", "locations": [ { "line": 6, "column": 7 } ], "path": [ "hnews", "titles", 18, "numberOfLinks" ] }, { "message": "$ is not a function", "locations": [ { "line": 7, "column": 7 } ], "path": [ "hnews", "titles", 18, "link" ] }, { "message": "$ is not a function", "locations": [ { "line": 5, "column": 7 } ], "path": [ "hnews", "titles", 19, "id" ] }, { "message": "$ is not a function", "locations": [ { "line": 6, "column": 7 } ], "path": [ "hnews", "titles", 19, "numberOfLinks" ] }, { "message": "$ is not a function", "locations": [ { "line": 7, "column": 7 } ], "path": [ "hnews", "titles", 19, "link" ] }, { "message": "$ is not a function", "locations": [ { "line": 5, "column": 7 } ], "path": [ "hnews", "titles", 20, "id" ] }, { "message": "$ is not a function", "locations": [ { "line": 6, "column": 7 } ], "path": [ "hnews", "titles", 20, "numberOfLinks" ] }, { "message": "$ is not a function", "locations": [ { "line": 7, "column": 7 } ], "path": [ "hnews", "titles", 20, "link" ] }, { "message": "$ is not a function", "locations": [ { "line": 5, "column": 7 } ], "path": [ "hnews", "titles", 21, "id" ] }, { "message": "$ is not a function", "locations": [ { "line": 6, "column": 7 } ], "path": [ "hnews", "titles", 21, "numberOfLinks" ] }, { "message": "$ is not a function", "locations": [ { "line": 7, "column": 7 } ], "path": [ "hnews", "titles", 21, "link" ] }, { "message": "$ is not a function", "locations": [ { "line": 5, "column": 7 } ], "path": [ "hnews", "titles", 22, "id" ] }, { "message": "$ is not a function", "locations": [ { "line": 6, "column": 7 } ], "path": [ "hnews", "titles", 22, "numberOfLinks" ] }, { "message": "$ is not a function", "locations": [ { "line": 7, "column": 7 } ], "path": [ "hnews", "titles", 22, "link" ] }, { "message": "$ is not a function", "locations": [ { "line": 5, "column": 7 } ], "path": [ "hnews", "titles", 23, "id" ] }, { "message": "$ is not a function", "locations": [ { "line": 6, "column": 7 } ], "path": [ "hnews", "titles", 23, "numberOfLinks" ] }, { "message": "$ is not a function", "locations": [ { "line": 7, "column": 7 } ], "path": [ "hnews", "titles", 23, "link" ] }, { "message": "$ is not a function", "locations": [ { "line": 5, "column": 7 } ], "path": [ "hnews", "titles", 24, "id" ] }, { "message": "$ is not a function", "locations": [ { "line": 6, "column": 7 } ], "path": [ "hnews", "titles", 24, "numberOfLinks" ] }, { "message": "$ is not a function", "locations": [ { "line": 7, "column": 7 } ], "path": [ "hnews", "titles", 24, "link" ] }, { "message": "$ is not a function", "locations": [ { "line": 5, "column": 7 } ], "path": [ "hnews", "titles", 25, "id" ] }, { "message": "$ is not a function", "locations": [ { "line": 6, "column": 7 } ], "path": [ "hnews", "titles", 25, "numberOfLinks" ] }, { "message": "$ is not a function", "locations": [ { "line": 7, "column": 7 } ], "path": [ "hnews", "titles", 25, "link" ] }, { "message": "$ is not a function", "locations": [ { "line": 5, "column": 7 } ], "path": [ "hnews", "titles", 26, "id" ] }, { "message": "$ is not a function", "locations": [ { "line": 6, "column": 7 } ], "path": [ "hnews", "titles", 26, "numberOfLinks" ] }, { "message": "$ is not a function", "locations": [ { "line": 7, "column": 7 } ], "path": [ "hnews", "titles", 26, "link" ] }, { "message": "$ is not a function", "locations": [ { "line": 5, "column": 7 } ], "path": [ "hnews", "titles", 27, "id" ] }, { "message": "$ is not a function", "locations": [ { "line": 6, "column": 7 } ], "path": [ "hnews", "titles", 27, "numberOfLinks" ] }, { "message": "$ is not a function", "locations": [ { "line": 7, "column": 7 } ], "path": [ "hnews", "titles", 27, "link" ] }, { "message": "$ is not a function", "locations": [ { "line": 5, "column": 7 } ], "path": [ "hnews", "titles", 28, "id" ] }, { "message": "$ is not a function", "locations": [ { "line": 6, "column": 7 } ], "path": [ "hnews", "titles", 28, "numberOfLinks" ] }, { "message": "$ is not a function", "locations": [ { "line": 7, "column": 7 } ], "path": [ "hnews", "titles", 28, "link" ] }, { "message": "$ is not a function", "locations": [ { "line": 5, "column": 7 } ], "path": [ "hnews", "titles", 29, "id" ] }, { "message": "$ is not a function", "locations": [ { "line": 6, "column": 7 } ], "path": [ "hnews", "titles", 29, "numberOfLinks" ] }, { "message": "$ is not a function", "locations": [ { "line": 7, "column": 7 } ], "path": [ "hnews", "titles", 29, "link" ] } ], "data": { "hnews": { "numberOfTitles": 30, "titles": [ { "id": null, "numberOfLinks": null, "link": null }, { "id": null, "numberOfLinks": null, "link": null }, { "id": null, "numberOfLinks": null, "link": null }, { "id": null, "numberOfLinks": null, "link": null }, { "id": null, "numberOfLinks": null, "link": null }, { "id": null, "numberOfLinks": null, "link": null }, { "id": null, "numberOfLinks": null, "link": null }, { "id": null, "numberOfLinks": null, "link": null }, { "id": null, "numberOfLinks": null, "link": null }, { "id": null, "numberOfLinks": null, "link": null }, { "id": null, "numberOfLinks": null, "link": null }, { "id": null, "numberOfLinks": null, "link": null }, { "id": null, "numberOfLinks": null, "link": null }, { "id": null, "numberOfLinks": null, "link": null }, { "id": null, "numberOfLinks": null, "link": null }, { "id": null, "numberOfLinks": null, "link": null }, { "id": null, "numberOfLinks": null, "link": null }, { "id": null, "numberOfLinks": null, "link": null }, { "id": null, "numberOfLinks": null, "link": null }, { "id": null, "numberOfLinks": null, "link": null }, { "id": null, "numberOfLinks": null, "link": null }, { "id": null, "numberOfLinks": null, "link": null }, { "id": null, "numberOfLinks": null, "link": null }, { "id": null, "numberOfLinks": null, "link": null }, { "id": null, "numberOfLinks": null, "link": null }, { "id": null, "numberOfLinks": null, "link": null }, { "id": null, "numberOfLinks": null, "link": null }, { "id": null, "numberOfLinks": null, "link": null }, { "id": null, "numberOfLinks": null, "link": null }, { "id": null, "numberOfLinks": null, "link": null } ] } } }

Caddyfile in docker

localhost {
	reverse_proxy http://coolqlcool:3000
}
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

1 participant