Skip to content

Follow/UnFollow not working correctly #178

Open
@mattheworris

Description

@mattheworris

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions