------------------------------------------------------------------------------
To reply, visit https://hellosplat.com/s/beanbag/tickets/4849/
------------------------------------------------------------------------------

New ticket #4849 by xiahui
For Beanbag, Inc. > Review Board

Status: New
Tags: Priority:Medium, Type:Defect


------------------------------------------------------------------------------
rbt post with error  (HTTP 400, API Error 224)
==============================================================================

# What version are you running?
3.0.15 reviewboard
1.0.2 RBTools

# What's the URL of the page containing the problem?
N/A

# What steps will reproduce the problem?
1. Setup a repository on reviewboard. 
Name: os-task-management

REPOSITORY HOSTING
Hosting service:

REPOSITORY INFORMATION
Repository type:
Path: remote git
For local Git repositories, this should be the path to a .git directory that 
Review Board can read from. For remote Git repositories, it should be the clone 
URL.

2. rbt setup-repo
3. rbt post


# What is the expected output? What do you see instead?
>>> RBTools 1.0.2
>>> Python 2.7.15 |Anaconda, Inc.| (default, Dec 14 2018, 13:10:39) 
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)]
>>> Running on Darwin-19.0.0-x86_64-i386-64bit
>>> Home = /Users/aaa
>>> Current directory = /Users/aaa/IdeaProjects/os-nlu
>>> Command line: rbt post --debug
>>> Running: tf vc help
>>> Checking for a Git repository...
>>> Running: git rev-parse --git-dir
>>> Running: git config core.bare
>>> Running: git rev-parse --show-toplevel
>>> Running: git symbolic-ref -q HEAD
>>> Running: git config --get branch.master.merge
>>> Running: git config --get branch.master.remote
>>> Running: git config --get remote.origin.url
>>> Repository info: Path: http://url:8090/ChatBotPlatform/OS/os-nlu.git, Base 
>>> path: , Supports changesets: False
>>> Making HTTP GET request to http://url:8087/api/
>>> Running: git rev-parse refs/heads/master
>>> Running: git config --get branch.master.merge
>>> Running: git config --get branch.master.remote
>>> Running: git branch --remotes
>>> Running: git rev-parse origin/master
>>> Running: git rev-list 970755582abb7549da5125f9b5ed77813f72cd38 --not 
>>> --remotes=origin
>>> Running: git status --porcelain --untracked-files=no 
>>> --ignore-submodules=dirty
>>> Running: git version
>>> Running: git -c core.quotepath=false -c diff.noprefix=false diff --no-color 
>>> --full-index --ignore-submodules -M --no-ext-diff 
>>> 970755582abb7549da5125f9b5ed77813f72cd38..f5426642a62a7345e7fc87d2f189d82364cecb0e
>>> Generated diff size: 1950 bytes
>>> Making HTTP GET request to http://url:8087/api/validation/diffs/
>>> Cached response for HTTP GET http://url:8087/api/validation/diffs/ expired 
>>> and was modified
>>> Making HTTP POST request to http://url:8087/api/validation/diffs/
>>> Got API Error 224 (HTTP code 400): fatal: not a git repository: 'None'

>>> Error data: {u'stat': u'fail', u'err': {u'msg': u"fatal: not a git 
>>> repository: 'None'\n", u'code': 224}}
Traceback (most recent call last):
  File "/Users/aaa/miniconda2/bin/rbt", line 11, in <module>
    load_entry_point('RBTools==1.0.2', 'console_scripts', 'rbt')()
  File 
"/Users/aaa/miniconda2/lib/python2.7/site-packages/RBTools-1.0.2-py2.7.egg/rbtools/commands/main.py",
 line 120, in main
    command.run_from_argv([RB_MAIN, command_name] + args)
  File 
"/Users/aaa/miniconda2/lib/python2.7/site-packages/RBTools-1.0.2-py2.7.egg/rbtools/commands/__init__.py",
 line 725, in run_from_argv
    exit_code = self.main(*args) or 0
  File 
"/Users/aaa/miniconda2/lib/python2.7/site-packages/RBTools-1.0.2-py2.7.egg/rbtools/commands/post.py",
 line 875, in main
    (msg_prefix, e))
rbtools.commands.CommandError: Error validating diff


# What operating system are you using? What browser?
reviewboard server: ubuntu 18.04
RBTools: Mac

# Please provide any additional information below.
I successfully posted a CR in my 50+ testing. 


------------------------------------------------------------------------------

-- 
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard-issues/20191119090343.21561.72848%40ip-10-1-54-209.ec2.internal.

Reply via email to