Got API Error 207 (HTTP code 400): The file was not found in the repository

53 views
Skip to first unread message

Chanson Joy

unread,
Mar 16, 2023, 7:58:43 PM3/16/23
to Review Board Community
Hi,

When I run command "rbt post", I got the following message, any input will be appreciated


>>> RBTools 4.0
>>> Python 3.10.8 (tags/v3.10.8:aaaf517, Oct 11 2022, 16:50:30) [MSC v.1933 64 bit (AMD64)]
>>> Running on Windows-10-10.0.19042-SP0

...

>>> Running: svn --non-interactive status -q --ignore-externals
>>> Running: svn --non-interactive diff --diff-cmd=diff --notice-ancestry -r BASE
>>> Running: svn --non-interactive diff --diff-cmd=diff --notice-ancestry -r BASE --no-diff-deleted
>>> Running: svn --non-interactive info mtd/mtdHunit.c
>>> Running: svn --non-interactive info mtd/mtdHunit.h
>>> Making HTTP GET request to http://ir-dt1042/api/reviewboard/api/validation/diffs/
>>> HTTP GET request to http://ir-dt1042/api/reviewboard/api/validation/diffs/ cannot be cached
>>> Making HTTP POST request to http://ir-dt1042/api/reviewboard/api/validation/diffs/
>>> Got API Error 207 (HTTP code 400): The file was not found in the repository.
>>> Error data: {'err': {'code': 207, 'msg': 'The file was not found in the repository.'}, 'file': '/X3240/trunk/API/mtd/mtdHunit.c', 'revision': '12399', 'stat': 'fail'}
Traceback (most recent call last):
  File "C:\Program Files\RBTools\Python\lib\site-packages\rbtools-4.0-py3.10.egg\rbtools\api\request.py", line 1164, in make_request
    rsp = self._urlopen(Request(
  File "C:\Program Files\RBTools\Python\lib\site-packages\rbtools-4.0-py3.10.egg\rbtools\api\cache.py", line 397, in make_request
    return LiveHTTPResponse(urlopen(request))
  File "C:\Program Files\RBTools\Python\lib\urllib\request.py", line 216, in urlopen
    return opener.open(url, data, timeout)
  File "C:\Program Files\RBTools\Python\lib\urllib\request.py", line 525, in open
    response = meth(req, response)
  File "C:\Program Files\RBTools\Python\lib\site-packages\rbtools-4.0-py3.10.egg\rbtools\api\request.py", line 382, in http_response
    response = self.parent.error('http', request, response,
  File "C:\Program Files\RBTools\Python\lib\urllib\request.py", line 563, in error
    return self._call_chain(*args)
  File "C:\Program Files\RBTools\Python\lib\urllib\request.py", line 496, in _call_chain
    result = func(*args)
  File "C:\Program Files\RBTools\Python\lib\urllib\request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request

Chanson Joy

unread,
Mar 16, 2023, 8:57:26 PM3/16/23
to Review Board Community
I traced down to the C:\Program Files\RBTools\Python\Lib\urllib\request.py

it  seems that it failed when trying to upload something 

from the other_vhosts_access.log in the apache2

this is the last cmd from the request.py:

mrvl-phy-api-reviewboard.com:80 172.18.32.1 - - [17/Mar/2023:00:48:19 +0000] "POST /api/reviewboard/api/validation/diffs/ HTTP/1.1" 400 583 "-" "RBTools/4.0"

evidently the "POST" command returns HTTP Error 400.

can anybody give a hint where to dig into it

thanks

David Trowbridge

unread,
Mar 17, 2023, 7:40:16 PM3/17/23
to revie...@googlegroups.com
Hi,

The problem is not on the client, but on the Review Board server's connection to your SVN server:

Error data: {'err': {'code': 207, 'msg': 'The file was not found in the repository.'}, 'file': '/X3240/trunk/API/mtd/mtdHunit.c', 'revision': '12399', 'stat': 'fail'}

You'll need to look at the repository configuration in the Review Board admin and verify that paths/credentials are correct.

David

--
Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard/bb3bc7ee-45a3-452e-8d47-8fb34a9dcf29n%40googlegroups.com.

ocean

unread,
Mar 31, 2023, 10:54:40 AM3/31/23
to Review Board Community
Please confirm whether the user has permission in  repository Information !!!

20230329164922.png
Reply all
Reply to author
Forward
0 new messages