Skip to content

Follow/UnFollow not working correctly #178

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

Open
mattheworris opened this issue Nov 4, 2024 · 0 comments
Open

Follow/UnFollow not working correctly #178

mattheworris opened this issue Nov 4, 2024 · 0 comments
Labels
backend bug Something isn't working frontend

Comments

@mattheworris
Copy link
Contributor

In testing SIWF v2, it was observed that graph updates were failing.
Two specific errors were observed after a user logged in with SIWF v2 tried to follow another user:

2024-11-01 11:55:03 [Nest] 17  - 11/01/2024, 5:55:03 PM   ERROR [RequestProcessorService] Error: Failed to read bytes

Invalid Public Key was also observed in the logs.

The read error was tracked back to graph-sdk, but comes out of graph-worker here.

Here are the logs from BullMQ:

Error: Failed to read bytes
    at Graph.importUserData (/app/node_modules/@projectlibertylabs/graph-sdk/dist/js/graph.js:55:39)
    at GraphStateManager.importUserData (/app/dist/apps/graph-worker/main.js:3066:36)
    at GraphStateManager.importBundles (/app/dist/apps/graph-worker/main.js:3119:21)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async RequestProcessorService.process (/app/dist/apps/graph-worker/main.js:4347:13)
    at async Worker.processJob (/app/node_modules/bullmq/dist/cjs/classes/worker.js:476:28)
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:661:24)
Error: Failed to read bytes
    at Graph.importUserData (/app/node_modules/@projectlibertylabs/graph-sdk/dist/js/graph.js:55:39)
    at GraphStateManager.importUserData (/app/dist/apps/graph-worker/main.js:3066:36)
    at GraphStateManager.importBundles (/app/dist/apps/graph-worker/main.js:3119:21)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async RequestProcessorService.process (/app/dist/apps/graph-worker/main.js:4347:13)
    at async Worker.processJob (/app/node_modules/bullmq/dist/cjs/classes/worker.js:476:28)
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:661:24)
Error: Failed to read bytes
    at Graph.importUserData (/app/node_modules/@projectlibertylabs/graph-sdk/dist/js/graph.js:55:39)
    at GraphStateManager.importUserData (/app/dist/apps/graph-worker/main.js:3066:36)
    at GraphStateManager.importBundles (/app/dist/apps/graph-worker/main.js:3119:21)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async RequestProcessorService.process (/app/dist/apps/graph-worker/main.js:4347:13)
    at async Worker.processJob (/app/node_modules/bullmq/dist/cjs/classes/worker.js:476:28)
    at async Worker.retryIfFailed (/app/node_modules/bullmq/dist/cjs/classes/worker.js:661:24)

This is probably where the Failed to read bytes comes from: graph-sdk

It was later observed that new sign ups with SIWF v1 also exhibited some errors in display on social-app-template.

Steps to Reproduce

  1. Setup social-app-template to run on testnet with infura ipfs pinning. (It's possible that other configurations exhibit the same error, but this is how it was originally observed).
  2. Create a new user with the SIWF v2 login flow.
  3. Attempt to follow another user.
  4. Observe that graph changes fail and no follows are successful.
@mattheworris mattheworris added bug Something isn't working frontend backend labels Nov 4, 2024
@mattheworris mattheworris self-assigned this Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend bug Something isn't working frontend
Projects
None yet
Development

No branches or pull requests

1 participant