Actions
Bug #5450
openrhodecode-api get_license_info no longer works
Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
19.03.2018
Due date:
% Done:
0%
Estimated time:
Sorting:
Commit Number:
Affected Version:
Description
I just noticed that but it seems the method get_license_info no longer works in the api.
I get the same error using either a curl request or rhodecode-api bin. I also checked get_users and it works fine.
Can you reproduce this error ?
ERROR: Backend server at `http://127.0.0.1:10002/_admin/api` returned non 2XX http code (500). Please make sure it is running and accepting connections. Original response: <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Error - 500 Internal Server Error</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="robots" content="index, nofollow"/>
<link rel="icon" href="/_static/rhodecode/images/favicon.ico" sizes="16x16 32x32" type="image/png" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link rel="stylesheet" type="text/css" href="/_static/rhodecode/css/style.css" media="screen"/>
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="/_static/rhodecode/css/ie.css" media="screen"/>
<![endif]-->
<style>body { background:#eeeeee; }</style>
<script type="text/javascript">
// register templateContext to pass template variables to JS
var templateContext = {timeago: {}};
</script>
<script type="text/javascript" src="/_static/rhodecode/js/scripts.js"></script>
</head>
<body>
<div class="wrapper error_page">
<div class="sidebar">
<a href="/"><img class="error-page-logo" src="/_static/rhodecode/images/RhodeCode_Logo_Black.png" alt="RhodeCode"/></a>
</div>
<div class="main-content">
<h1>
<span class="error-branding">
RhodeCode
</span><br/>
500 Internal Server Error | <span class="error_message">The server has either erred or is incapable of performing the requested operation.</span>
</h1>
<div class="inner-column">
<h4>Possible Causes</h4>
<ul>
<li>Server is overloaded.</li>
<li>Server database connection is lost.</li>
<li>Server expected unhandled error.</li>
</ul>
</div>
<div class="inner-column">
<h4>Support</h4>
<p>For support, go to <a href="https://rhodecode.com/help/" target="_blank">Support</a>.
It may be useful to include your log file; see the log file locations <a href="https://rhodecode.com/r1/enterprise/docs/admin-system-overview/">here</a>.
</p>
</div>
<div class="inner-column">
<h4>Documentation</h4>
<p>For more information, see <a href="https://rhodecode.com/r1/enterprise/docs/">docs.rhodecode.com</a>.</p>
</div>
</div>
</div>
</body>
</html>
None
Updated by Marcin Kuzminski [CTO] over 6 years ago
Hi Gildas,
Can you check on server side what 500 error calling this method generates?
Updated by Gildas Fargeas over 6 years ago
Hi, finally got the chance to get back on this matter. We are running rhodecode 4.12.2 and rhodecode-api v0.14.1.
Thanks in advance about that :)
I got the trace of this error below :
2018-07-17 14:48:52.919 INFO [rhodecode.api] Access for IP:127.0.0.1 allowed
2018-07-17 14:48:52.927 ERROR [rhodecode.config.middleware] error occurred handling this request for path: /_admin/api
Traceback (most recent call last):
File "/opt/rhodecode/store/lnzg7yaxbpy59hpvax55s8s3w2kzyka8-python2.7-pyramid-1.9.1/lib/python2.7/site-packages/pyramid/tweens.py", line 39, in excview_tween
response = handler(request)
File "/opt/rhodecode/store/lnzg7yaxbpy59hpvax55s8s3w2kzyka8-python2.7-pyramid-1.9.1/lib/python2.7/site-packages/pyramid/router.py", line 156, in handle_request
view_name
File "/opt/rhodecode/store/lnzg7yaxbpy59hpvax55s8s3w2kzyka8-python2.7-pyramid-1.9.1/lib/python2.7/site-packages/pyramid/view.py", line 642, in _call_view
response = view_callable(context, request)
File "/opt/rhodecode/store/lnzg7yaxbpy59hpvax55s8s3w2kzyka8-python2.7-pyramid-1.9.1/lib/python2.7/site-packages/pyramid/config/views.py", line 181, in __call__
return view(context, request)
File "/opt/rhodecode/store/lnzg7yaxbpy59hpvax55s8s3w2kzyka8-python2.7-pyramid-1.9.1/lib/python2.7/site-packages/pyramid/viewderivers.py", line 390, in attr_view
return view(context, request)
File "/opt/rhodecode/store/lnzg7yaxbpy59hpvax55s8s3w2kzyka8-python2.7-pyramid-1.9.1/lib/python2.7/site-packages/pyramid/viewderivers.py", line 368, in predicate_wrapper
return view(context, request)
File "/opt/rhodecode/store/lnzg7yaxbpy59hpvax55s8s3w2kzyka8-python2.7-pyramid-1.9.1/lib/python2.7/site-packages/pyramid/viewderivers.py", line 410, in viewresult_to_response
result = view(context, request)
File "/opt/rhodecode/store/lnzg7yaxbpy59hpvax55s8s3w2kzyka8-python2.7-pyramid-1.9.1/lib/python2.7/site-packages/pyramid/viewderivers.py", line 148, in _requestonly_view
response = view(request)
File "/opt/rhodecode/store/v5v407yacsjjwwf47sdim5m2jx7baz8x-python2.7-rhodecode-enterprise-ce-4.12.2/lib/python2.7/site-packages/rhodecode/api/__init__.py", line 234, in request_view
argspec = inspect.getargspec(func)
File "/opt/rhodecode/store/g7qzsl3a8sb23daxgs3gin4j22dhs3sw-python-2.7.12/lib/python2.7/inspect.py", line 816, in getargspec
raise TypeError('{!r} is not a Python function'.format(func))
TypeError: <cyfunction get_license_info at 0x7f786af40350> is not a Python function
Actions