Skip to content

fix: error 해결#51

Open
Choijiw00 wants to merge 1 commit intodevfrom
feature/#27mainsuccess
Open

fix: error 해결#51
Choijiw00 wants to merge 1 commit intodevfrom
feature/#27mainsuccess

Conversation

@Choijiw00
Copy link
Contributor

작업 내용

pick page 400 error 해결

변경 사항

-swipePage API url 수정

테스트

  • 로컬 테스트 완료

@Choijiw00 Choijiw00 self-assigned this Jan 10, 2026
@Choijiw00 Choijiw00 added the fix label Jan 10, 2026
@vercel
Copy link

vercel bot commented Jan 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
fe4 Ready Ready Preview, Comment Jan 10, 2026 10:16pm

@gemini-code-assist
Copy link

Summary of Changes

Hello @Choijiw00, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 PR은 픽 페이지에서 발생하던 400 에러를 해결하는 데 중점을 둡니다. 클라이언트의 API 요청 엔드포인트가 올바르지 않아 발생했던 문제를 수정하여, 사용자가 정상적으로 상태를 저장할 수 있도록 개선했습니다.

Highlights

  • 픽 페이지 400 에러 수정: 픽 페이지에서 발생하던 400 Bad Request 에러를 수정했습니다.
  • API 엔드포인트 변경: /conditions API 요청 URL을 /api/conditions로 변경하여 에러를 해결했습니다.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

이 PR은 pick page의 400 에러를 해결하기 위해 API URL을 수정합니다. 그러나 swipe.tsx의 URL 수정은 axiosbaseURL 설정과 중복되어 새로운 오류를 유발할 가능성이 있습니다. 또한 README.md 파일에 추가된 내용에서 마크다운 문법 오류가 발견되었습니다.


try {
await api.post("/conditions", payload);
await api.post("/api/conditions", payload);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

axios 인스턴스(api)에 이미 baseURL.../api가 설정되어 있습니다. 여기서 경로에 /api를 추가하면 최종 요청 URL이 .../api/api/conditions가 되어 API 명세와 달라집니다. 이로 인해 404 에러가 발생할 수 있습니다. 기존 코드처럼 /conditions 경로를 사용해야 올바른 API(.../api/conditions)를 호출할 수 있습니다.

Suggested change
await api.post("/api/conditions", payload);
await api.post("/conditions", payload);

• GitHub 이슈 및 PR 활용도 (커밋 메시지, 코드 리뷰 여부 체크 예정)
-> 이슈 20 이상, PR 27 이상 지속적인 깃허브 관리와 코드 리뷰로 로그를 체크함✅
• Git 브랜치 전략의 적절한 사용 (Git Flow) ✅
—-

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

마크다운에서 수평선을 그릴 때는 하이픈 세 개(---)를 사용해야 합니다. —-는 올바른 문법이 아닙니다.

Suggested change
-
---

1. 데스크톱, 태블릿, 모바일 각각에 맞는 화면 구성과 상호작용을 고려한 경우 가산점 (최대 10점)
- 단순한 크기 확장(모바일 화면을 그대로 데스크톱에 표시)이나, breakpoint 없이 동일 레이아웃 유지 시에는 가산점 제외
2. 테스트 코드 작성 시 가산점 (최대 10점)
—-

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

마크다운에서 수평선을 그릴 때는 하이픈 세 개(---)를 사용해야 합니다. —-는 올바른 문법이 아닙니다.

Suggested change
-
---

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant