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

Dev Env Leaderboard Post Call Permission Denied #53

Open
tyleryy opened this issue Mar 21, 2024 · 0 comments
Open

Dev Env Leaderboard Post Call Permission Denied #53

tyleryy opened this issue Mar 21, 2024 · 0 comments

Comments

@tyleryy
Copy link
Contributor

tyleryy commented Mar 21, 2024

Overview

POST API call to {hostname}/leaderboard/ in dev environment returns a server error: error: permission denied for sequence leaderboard_id_seq. This error occurs using AWS personal user creds, but not AWS prod creds.

Cause

I think there is some permission error in our AWS Postgres instance preventing api calls from localhost:3001 from going through to our database. This is why the error appears in dev but not prod.

Steps to Replicate

  1. Open Dev Environment frontend and backend (with AWS personal user credentials)
  2. Check console (API call is made immediately on page load in a useEffect)
  3. See error

Frontend: zotnfound-frontend/src/components/Home/Home.jsx (Leaderboard GetInfo UseEffect)
Backend: zotnfound-backend/routes/leaderboard.js/ (POST call from await pool.query(...))

** Update ** - I believe this is happening to all API calls to Postgres Instance

Screenshot 2024-03-20 at 7 35 15 PM
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

No branches or pull requests

1 participant