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

Indexer: Error handling - Detecting off platform users #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

leolambo
Copy link

@leolambo leolambo commented Aug 23, 2023

Greater than 20% of addresses that trade friend.tech keys are not registered with friend.tech as users thus have no metadata. These users will always return 404 errors when attempting to be synced by the indexer. This PR should significantly improve the performance of profile sync by decreasing the amount of requests to get metadata for these off platform accounts.

Example:
User: https://basescan.org/address/0xf3dbd92cd3669dbd041405bff47edfe26343ee8b
API response: https://prod-api.kosetto.com/users/0xf3dbd92cd3669dbd041405bff47edfe26343ee8b

This PR Adds error handling for the case: 404 'Address/User not found.' then updates the user accordingly. This will prevent unnecessary db reads and sleep times for a request that will always throw an error. This should also allow the indexer to populate new users metadata quicker.

@leolambo leolambo changed the title Profile sync error handling: Detecting off platform users Indexer: Error handling - Detecting off platform users Aug 23, 2023
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

Successfully merging this pull request may close these issues.

1 participant