Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error paginating catalog data: PersistedQueryNotFound

See original GitHub issue

Screenshots or Logs

[2021-12-19 22:09:26.043 +0100] INFO : Checking free games for
[2021-12-19 22:09:33.698 +0100] INFO : Successfully refreshed login
    user: ""
[2021-12-19 22:09:33.698 +0100] INFO : searchStrategy is `all`: searching for weekly and promotional games
    user: ""
[2021-12-19 22:09:34.627 +0100] ERROR: Error paginating catalog data: {"errors":[{"message":"PersistedQueryNotFound","correlationId":"","serviceResponse":"{\"errorStatus\":500}","stack":null}]}
    Error: Error paginating catalog data: {"errors":[{"message":"PersistedQueryNotFound","correlationId":"","serviceResponse":"{\"errorStatus\":500}","stack":null}]}
        at Object.transform (/usr/app/src/free-games.ts:82:21)
        at paginateEach (/usr/app/node_modules/got/dist/source/create.js:180:45)
        at runMicrotasks (<anonymous>)
        at processTicksAndRejections (internal/process/task_queues.js:95:5)
        at (/usr/app/node_modules/got/dist/source/create.js:213:26)
        at FreeGames.getCatalogFreeGames (/usr/app/src/free-games.ts:67:19)
        at FreeGames.getAllFreeGames (/usr/app/src/free-games.ts:311:13)
        at redeemAccount (/usr/app/src/index.ts:25:20)
        at async Promise.all (index 4)
        at main (/usr/app/src/index.ts:65:5)
[2021-12-19 22:09:34.661 +0100] WARN : Current version
    COMMIT_SHA: "ee66418b159c1e79b5d81321101b4a22746844bf"
    BRANCH: "master"
    DISTRO: "alpine"

Additional context Happens in about 1/10 cases, restart fixes the problem. Not sure what causes it, maybe a retry is the only workaround.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

claabscommented, Feb 27, 2022

The COMMIT_SHA is baked into the container to track versioning. That commit is from December 2021, so very old. You shouldn’t need to update that variable manually at all, as it doesn’t functionally change anything.

claabscommented, Feb 27, 2022

@caxelair I can’t tell for sure, but it’s likely your container is just out of date. You’ll need to docker pull <image tag> every once and a while to keep things up to date. There are also solutions like Watchtower or Portainer that can manage updating containers for you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Persisted Queries Link - Apollo GraphQL Docs
Problem to solve. Unlike REST APIs that use a fixed URL to load data, GraphQL provides a rich query language that can be...
Read more >
Automatic persisted query in Apollo Client and Server is ...
The error message must be PersistedQueryNotFound . For some reason it uses the message instead of the unique PERSISTED_QUERY_NOT_FOUND error ...
Read more >
Automatic persisted query in Apollo Client and Server is ...
Automatic persisted query in Apollo Client and Server is not working getting PERSISTED_QUERY_NOT_FOUND error · Ask Question.
Read more >
Headless Server Manual
If the query is not known to the server, it answers with a PersistedQueryNotFound error. The client then reissues the request, this time...
Read more >
Apollo Server Express | Part 10 | BONUS!!! Adding Pagination ...
apollo #apollo-server-express #nodejs #curdDo Consider Joining our patron page for special and on-demand lectures and solutions, to keep us ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found