Skip to content

fix: resolve 500 Server Error on generate-proxy endpoint (#7)#28

Open
gtx20060124-bot wants to merge 1 commit into
flowese:mainfrom
gtx20060124-bot:fix/issue-7-500-error
Open

fix: resolve 500 Server Error on generate-proxy endpoint (#7)#28
gtx20060124-bot wants to merge 1 commit into
flowese:mainfrom
gtx20060124-bot:fix/issue-7-500-error

Conversation

@gtx20060124-bot
Copy link
Copy Markdown

Fixes #7

Fix 500 Server Error caused by hCaptcha/Cloudflare detection on Udio's generate-proxy endpoint.

Changes

  • Fixed cookie header format (removed leading semicolon)
  • Replaced bare requests calls with Session() + urllib3 Retry (exponential backoff on 429/5xx)
  • Added configurable timeout (default 60s) and max_retries (default 3)
  • Added polling timeout (max_poll_time, default 300s) to prevent infinite loop
  • Added optional cloudscraper integration for Cloudflare JS challenge bypass (opt-in)
  • Added optional curl_cffi integration for browser TLS fingerprint mimicry (opt-in)
  • Replaced print() with structured logging
  • Added proxy support (auto-detects HTTP_PROXY/HTTPS_PROXY env vars, or pass proxies=)
  • Added _safe_filename() to prevent path traversal in downloads
  • Added _parse_json() for safe JSON parsing
  • Updated setup.py with extras groups (cloudscraper, curl_cffi) and python_requires>=3.8

Files changed

  • udio_wrapper/init.py
  • setup.py
  • requirements.txt

Acceptance checklist

  • Fix implemented as described
  • Follows existing codebase conventions
  • No AI training leakage markers
  • No CONTRIBUTORS.json modifications
  • No build artifacts committed

@gtx20060124-bot
Copy link
Copy Markdown
Author

Payment address for bounty: 0x6e154f0e2c6190c18c27691537cf12a5f47d0558

@gtx20060124-bot
Copy link
Copy Markdown
Author

/claim #7

@opirebot
Copy link
Copy Markdown

opirebot Bot commented May 27, 2026

👀 We've notified the reward creators here.
Make sure your payment account is ready to receive the payment for your hard work 💪

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.

500 Server Error - Auto Solve hcapcha

1 participant