5002: [WinError 10060] A connection attempt failed

fhellwig

What version are you running?

RBTools 3.1.2 (Python 3.8.14)
Perforce Rev. P4/NTX64/2022.2/2369846

What steps will reproduce the problem?

  1. Create changelist in perforce
  2. Add atached file to changelist
  3. rbt post --diff-only -o 1234

What is the expected output? What do you see instead?

Expected:
Generating diff for pending changeset 1234
Review request #718 posted.

http://xxx/r/718/
http://xxx/r/718/diff/

Instead:
Generating diff for pending changeset 1234
CRITICAL: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

What operating system are you using?

Windows 11

Attach the debug out from the command.

see rbt_ticket_debug.txt

Please provide any additional information below.

This exact combination of spaces, enters and text is causing the bug.
Puting the braces in next line helps.
Removing spaces from begining of methods also helps.

>>> RBTools 3.1.2
>>> Python 3.8.14 (default, Oct  3 2022, 15:40:58) [MSC v.1900 64 bit (AMD64)]
>>> Running on Windows-10-10.0.22621-SP0
>>> Home = C:\Users\xxx\AppData\Roaming
>>> Current directory = C:\xxx
>>> Making HTTP GET request to http://xxx/api/
>>> Unable to execute "cleartool help": skipping ClearCase
>>> Running: tf vc help
>>> Checking for a Perforce repository...
>>> Running: p4 info
>>> Running: diff --version
>>> Repository info: Path: ['xxx', 'xxx'], Base path: None
>>> Making HTTP GET request to http://xxx/api/repositories/?name=Perforce&only-fields=id%2Cname%2Cmirror_path%2Cpath&only-links=info&tool=Perforce
>>> HTTP GET request to http://xxx/api/repositories/?name=Perforce&only-fields=id%2Cname%2Cmirror_path%2Cpath&only-links=info&tool=Perforce cannot be cached
>>> Making HTTP GET request to http://xxx/api/repositories/2/info/
>>> Got API Error 209 (HTTP code 501): The specified repository is not able to perform this action.
>>> Error data: {'err': 
    TPoint get_point() { return point; }
    TRect get_rect() { return rect; }
#1 fhellwig

RBTools 4.0 isn't working as well

david
#2 david
  • -New
    +SetupIssue