3417: Windows RBT can't resolve Server

mda***@efficienc********* (Google Code) (Is this you? Claim this profile.)
June 13, 2014
What version are you running?
Reviewboard 2.0.0
RBT 0.6.1

What steps will reproduce the problem?
1. rbt post --server=https://myserver.com/reviewboard

What is the expected output? What do you see instead?
I expect to get a posted review
Instead I get an error message of not being able to find the server

What operating system are you using? What browser?
Windows 7 x64
Python 2.7.7

Please provide any additional information below.
If I replace the myserver.com with the actual IP address of the server everything works
If I ping the myserver.com it resolves properly.
If I post on the same server and repository on my Linux box it works properly.
C:\Source\Path>rbt post --server=https://server.com/reviewboard -d -r 750
>>> RBTools 0.6.1
>>> Python 2.7.7 (default, Jun  1 2014, 14:17:13) [MSC v.1500 32 bit (Intel)]
>>> Running on Windows-7-6.1.7601-SP1
>>> Home = C:\Users\MDavis\AppData\Roaming
>>> Current directory = C:\Source\Path
>>> Checking for a Subversion repository...
>>> Running: svn info --non-interactive
>>> Running: diff --version
>>> repository info: Path: https://server.com/svn/product, Base path: /t
runk, Supports changesets: False
>>> Making HTTP GET request to https://server.com/reviewboard/api/
Traceback (most recent call last):
  File "C:\Python27\Scripts\rbt-script.py", line 9, in <module>
    load_entry_point('RBTools==0.6.1', 'console_scripts', 'rbt')()
  File "C:\PythonSer27\lib\site-packages\rbtools-0.6.1-py2.7.egg\rbtools\commands\main.py", line 134, in main
    command.run_from_argv([RB_MAIN, command_name] + args)
  File "C:\Python27\lib\site-packages\rbtools-0.6.1-py2.7.egg\rbtools\comm
C:\Source\Path>rbt post --server=https://InternalIP/reviewboard -d -r 750
>>> RBTools 0.6.1
>>> Python 2.7.7 (default, Jun  1 2014, 14:17:13) [MSC v.1500 32 bit (Intel)]
>>> Running on Windows-7-6.1.7601-SP1
>>> Home = C:\Users\MDavis\AppData\Roaming
>>> Current directory = C:\Source\Path
>>> Checking for a Subversion repository...
>>> Running: svn info --non-interactive
>>> Running: diff --version
>>> repository info: Path: https://server.com/svn/product, Base path: /t
runk, Supports changesets: False
>>> Making HTTP GET request to https://InternalIP/reviewboard/api/
>>> Running: svn info --non-interactive
>>> Running: diff --version
>>> repository info: Path: https://server/svn/product, Base path: /t
runk, Supports changesets: False
>>> Running: svn status --ignore-externals
>>> Running: svn diff --diff-cmd=diff --notice-ancestry -r BASE
>>> Running: svn info Code
>>> Making HTTP GET request to https://InternalIP/reviewboard/api/review-requests/750/
>>> Making HTT
#1 mda***@efficienc********* (Google Code) (Is this you? Claim this profile.)
I did some more tests and look like it is a Python issue in general not specific to RBT.
david
#2 david
If you're having DNS issues, it's probably even lower than python. Maybe try putting the server name in a hosts file.
  • +SetupIssue
#3 mda***@efficienc********* (Google Code) (Is this you? Claim this profile.)
That's the odd thing though only Python is having a DNS issue.  
I tried even this simple hostname script I found online.
import socket
socket.gethostbyname('google.com')
Which fails, but I can ping google.com and get an IP just fine.
I tried adding to the host still nothing so something in python or at least my install of it must be messed up.