GithubHelp home page GithubHelp logo

aztra-web's Introduction

site

site

aztra-web's People

Contributors

arpaap avatar dacoonkr avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

aztra-web's Issues

일부 백엔드 통신에서 디스코드 유저의 서버 권한을 확인하는 중에 레이트리밋으로 인해 처리를 실패함

1. 원인

대시보드 페이지가 프론트엔드에서 렌더링될 때 서버 이름과 아이콘을 표시하기 위해 디스코드 api에 서버 정보를 가져옵니다. 그와 동시에 환영 메시지 컴포넌트에서도 백엔드를 통해 간접적으로 디스코드 api에 같은 유저로 똑같이 서버 정보를 가져오므로, API 요청이 거의 동시에 일어나므로 레이트리밋이 발생해 백엔드 요청에 실패합니다.

2. 상세

백엔드: 백엔드에 프론트가 디스코드 Oauth2 토큰을 헤더에 담아 요청을 쏘면, 신원 확인 및 권한 확인을 위해 백엔드에서 헤더로 받은 토큰으로 디스코드 api에 서버 정보를 불러옴. (불러온 서버 정보에는 서버 아이디와 그 서버에서의 사용자 권한 정보가 담겨있으므로 요청하는 사람이 본인인지를 확인함.) 그 후 데이터베이스에서 환영 메시지 설정 데이터를 받아와 프론트에 전달.

3. 해결책

현재 프론트와 백엔드 두곳에서 동시에 디스코드 api 요청하는게 문제이므로 둘 중 하나만 남길 필요가 있음.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.