Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/debug_raw_githubusercontent.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Debug raw.githubusercontent.com

on:
workflow_dispatch:

jobs:
debug:
runs-on: ubuntu-latest
steps:
- name: Test raw.githubusercontent.com responses
run: |
for URL in \
"https://raw.githubusercontent.com/balancer/bal_addresses/refs/heads/main/extras/chains.json" \
"https://raw.githubusercontent.com/balancer/bal_addresses/main/extras/chains.json" \
"https://raw.githubusercontent.com/BalancerMaxis/bal_addresses/main/extras/chains.json"; do
echo "=== $URL ==="
echo "--- Headers ---"
curl -sI "$URL"
echo "--- Status code ---"
curl -s -o /dev/null -w "HTTP %{http_code}\n" "$URL"
echo "--- First 200 bytes ---"
curl -s "$URL" | head -c 200
echo ""
echo ""
done

- name: Test Python requests behavior
run: |
pip3 install requests
python3 -c "
import requests
urls = [
'https://raw.githubusercontent.com/balancer/bal_addresses/refs/heads/main/extras/chains.json',
'https://raw.githubusercontent.com/balancer/bal_addresses/main/extras/chains.json',
]
for url in urls:
print(f'=== {url} ===')
resp = requests.get(url)
print(f'Status: {resp.status_code}')
print(f'Content-Type: {resp.headers.get(\"content-type\")}')
print(f'Body[:200]: {resp.text[:200]}')
try:
resp.json()
print('json(): OK')
except Exception as e:
print(f'json(): FAILED - {e}')
print()
"