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

New ticket #5016 by shubhar
For Beanbag, Inc. > Review Board

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


------------------------------------------------------------------------------
perforce rbt post fails with 500 internal error
==============================================================================

# What version are you running?
rbtools-4.1
ReviewBoard 6.0.1


# What's the URL of the page containing the problem?


# What steps will reproduce the problem?
1. > rbt post -g --target-people <userid> --summary "hi this is a summary" 
--description "hi this is a description" --debug
2. 
3. 


# What is the expected output? What do you see instead?
I would expect rbt to succeed with diff URL

# What operating system are you using? What browser?
Chrome, RHEL 8.x

# Please provide any additional information below.

>>> Got HTTP error: 500: <!DOCTYPE html><html><head><title>500 - Internal 
>>> Server Error | Review Board</title></head><body><h1>Something broke! (Error 
>>> 500)</h1><p>
   It appears something broke when you tried to go to here. This is either
   a bug in Review Board or a server configuration error. Please report
   this to your administrator.
  </p></body></title>

Traceback (most recent call last):
  File 
"/tool/pandora64/.package/python-3.10.1/lib/python3.10/site-packages/rbtools/api/request.py",
 line 1222, in process_error
    rsp = json_loads(data_str)
  File 
"/tool/pandora64/.package/python-3.10.1/lib/python3.10/json/__init__.py", line 
346, in loads
    return _default_decoder.decode(s)
  File "/tool/pandora64/.package/python-3.10.1/lib/python3.10/json/decoder.py", 
line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/tool/pandora64/.package/python-3.10.1/lib/python3.10/json/decoder.py", 
line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File 
"/tool/pandora64/.package/python-3.10.1/lib/python3.10/site-packages/rbtools/commands/post.py",
 line 756, in post_request
    draft = draft.update(**update_fields)
  File 
"/tool/pandora64/.package/python-3.10.1/lib/python3.10/site-packages/rbtools/api/resource.py",
 line 319, in <lambda>
    meth(resource, **kwargs)))
  File 
"/tool/pandora64/.package/python-3.10.1/lib/python3.10/site-packages/rbtools/api/decorators.py",
 line 23, in request_method
    return self._transport.execute_request_method(method_wrapper,
  File 
"/tool/pandora64/.package/python-3.10.1/lib/python3.10/site-packages/rbtools/api/transport/sync.py",
 line 289, in execute_request_method
    return self._execute_request(request)
  File 
"/tool/pandora64/.package/python-3.10.1/lib/python3.10/site-packages/rbtools/api/transport/sync.py",
 line 310, in _execute_request
    rsp = self.server.make_request(request)
  File 
"/tool/pandora64/.package/python-3.10.1/lib/python3.10/site-packages/rbtools/api/request.py",
 line 1267, in make_request
    self.process_error(e.code, e.read())
  File 
"/tool/pandora64/.package/python-3.10.1/lib/python3.10/site-packages/rbtools/api/request.py",
 line 1234, in process_error
    raise APIError(http_status, None, None, data_str)
rbtools.api.errors.APIError: <!DOCTYPE html><html><head><title>500 - Internal 
Server Error | Review Board</title></head><body><h1>Something broke! (Error 
500)</h1><p>
   It appears something broke when you tried to go to here. This is either
   a bug in Review Board or a server configuration error. Please report
   this to your administrator.
  </p></body></title>
 (HTTP 500: Internal Server Error)

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File 
"/proj/pt_verif_dev4/users/shramani/pt_trunk/env_squash/default/squash_full/7AA3CBADF04B4FEE46E0C01EC37EFFFC-rhel7/PATH-2/rbt",
 line 8, in <module>
    sys.exit(main())
  File 
"/tool/pandora64/.package/python-3.10.1/lib/python3.10/site-packages/rbtools/commands/main.py",
 line 207, in main
    command.run_from_argv([RB_MAIN, command_name] + args)
  File 
"/tool/pandora64/.package/python-3.10.1/lib/python3.10/site-packages/rbtools/commands/__init__.py",
 line 1118, in run_from_argv
    exit_code = self.main(*args) or 0
  File 
"/tool/pandora64/.package/python-3.10.1/lib/python3.10/site-packages/rbtools/commands/post.py",
 line 968, in main
    review_request_id, review_request_url = self.post_request(
  File 
"/tool/pandora64/.package/python-3.10.1/lib/python3.10/site-packages/rbtools/commands/post.py",
 line 758, in post_request
    raise CommandError(
rbtools.commands.CommandError: Error updating review request draft: <!DOCTYPE 
html><html><head><title>500 - Internal Server Error | Review 
Board</title></head><body><h1>Something broke! (Error 500)</h1><p>
   It appears something broke when you tried to go to here. This is either
   a bug in Review Board or a server configuration error. Please report
   this to your administrator.
  </p></body></title>
 (HTTP 500: Internal Server Error)

Your review request still exists, but the diff is not attached.




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

-- 
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/20231213022553.26632.29623%40ip-10-1-54-209.ec2.internal.

Reply via email to