Skip to content

Fix HTTPClient requesting non-existent /details endpoint#219

Open
sentry[bot] wants to merge 1 commit into
mainfrom
claude/fix-404-details-endpoint-b4b1b5f7
Open

Fix HTTPClient requesting non-existent /details endpoint#219
sentry[bot] wants to merge 1 commit into
mainfrom
claude/fix-404-details-endpoint-b4b1b5f7

Conversation

@sentry
Copy link
Copy Markdown

@sentry sentry Bot commented May 19, 2026

Summary

Fix the HTTPClient.makeRequest() method to use the /products endpoint instead of the non-existent /details endpoint.

Problem

The error_404 button in MainActivity triggers HTTPClient.makeRequest(), which sends a GET request to {domain}/details. However, the Flask backend at flask.empower-plant.com has no /details route — it only serves /products, /checkout, /product/0/info, etc. This causes every tap of that button to produce a SentryHttpClientException: HTTP Client Error with status code: 404.

Fix

Changed the endpoint in HTTPClient.makeRequest() from /details to /products, which is a valid GET endpoint on the Flask backend (the same one used by MainFragment.fetchToolsFromServer()).

Fixes ANDROID-FY

Change HTTPClient.makeRequest() to use /products instead of /details.
The /details endpoint does not exist on the Flask backend, causing a 404
error every time the error_404 button is tapped in MainActivity. The
/products endpoint is the correct existing route on the backend.

Fixes ANDROID-FY
@sentry sentry Bot requested a review from ndmanvar as a code owner May 19, 2026 22:22
@codecov
Copy link
Copy Markdown

codecov Bot commented May 19, 2026

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 0.00%. Comparing base (814e302) to head (7552c3b).

Files with missing lines Patch % Lines
...c/main/java/com/example/vu/android/HTTPClient.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff          @@
##            main    #219   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files         16      16           
  Lines        864     864           
  Branches      65      65           
=====================================
  Misses       864     864           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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