Skip to content

Conversation

@mememan2010
Copy link

Summary

This PR addresses issues with 403 Forbidden errors when fetching favorite posts for analysis and suggestions. The root cause was missing or incorrect authentication (API key and username) when making API requests that require user credentials.

Changes Made

  • FavoritesAnalyzerResult.vue

    • Now checks if the user is logged in and has an API key before running analysis. If not, a user-friendly error message is shown instead of a 403 error.
    • Passes the user's authentication credentials to the analysis service.
  • SuggesterResult.vue

    • Passes authentication credentials to the suggestion service for favorite post queries.
  • AnalyzeService.ts

    • All relevant methods (analyzeTags, getFavoriteTags, fetchPostsCached) now accept and forward an optional auth parameter.
    • Ensures that API requests for fav:username tags are always authenticated.

This PR does not include any backend or API changes, only frontend logic and error handling improvements.

@vercel
Copy link

vercel bot commented Aug 9, 2025

@mememan2010 is attempting to deploy a commit to the Avoonix's projects Team on Vercel.

A member of the Team first needs to authorize it.

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