ChatBox version: 1.12.3
Description of the problem:
In ChatBox for Android v1.12.3, when connecting to a specific custom OpenAI-compatible API endpoint (we call it Endpoint X, which is served through Cloudflare), you'll encounter a connection error. The exact appearance of the error depends on the “Improve network compatibility” setting.
Key observations and comparisons:
Current Android version (v1.12.3) behavior:
Turn on “Improve network compatibility”: Cloudflare's 403 Forbidden error is returned when making requests to Endpoint X.
Turn off “Improve network compatibility”: When making requests to endpoint X, a failed to fetch error is returned.
Compared to the old Android ChatBox:
In an older version of ChatBox for Android, when “Improve network compatibility” is turned on, you can connect to Endpoint X normally.
Comparison with other endpoints (currently Android v1.12.3):
When making requests to other API endpoints (such as openRouter), the results are returned normally regardless of whether “Improve network compatibility” is enabled or not.
Compared to other clients (on the same Android device):
On the same Android device and the same network IP, use another third-party client (such as BotGem) to make a request to Endpoint X, and the results can be returned normally.
Compared to ChatBox for Windows (v1.12.3):
In ChatBox v1.12.3 for Windows, even when “Improve network compatibility” is turned off, requests to endpoint X can return results normally.
Steps to reproduce (on Android v1.12.3):
Using ChatBox for Android v1.12.3.
Set the API to point to endpoint X, a custom OpenAI-compatible API through Cloudflare services.
Tried turning on “Improve network compatibility” and sent a request, and observed a Cloudflare 403 error.
Tried turning off “Improve network compatibility” and sent a request, observing a “failed to fetch” error.
Expected behavior:
The Android version of ChatBox should successfully connect to Endpoint X, ideally without turning on “Improve Network Compatibility,” and the performance should match the behavior of the Windows version or other third-party clients on the same Android device.
Preliminary analysis:
The issue appears to be specific to how the Android version of ChatBox interacts with this Cloudflare protected endpoint X. Of particular note is the change in behavior of the “Improve network compatibility” option: from solving problems in the past to now triggering Cloudflare 403 errors. This could be related to how the Android web stack handles specific HTTPS/TLS configurations or Cloudflare challenges.
·