Bug #5450


rhodecode-api get_license_info no longer works

Added by Gildas Fargeas about 6 years ago. Updated almost 6 years ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:
Commit Number:
Affected Version:


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 `` returned non 2XX http code (500). Please make sure it is running and accepting connections. Original response: <!DOCTYPE html>
<html xmlns="">
        <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"/>
        <style>body { background:#eeeeee; }</style>
        <script type="text/javascript">
            // register templateContext to pass template variables to JS
            var templateContext = {timeago: {}};
        <script type="text/javascript" src="/_static/rhodecode/js/scripts.js"></script>

        <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 class="main-content">
                    <span class="error-branding">
                    500 Internal Server Error | <span class="error_message">The server has either erred or is incapable of performing the requested operation.</span>
                <div class="inner-column">
                    <h4>Possible Causes</h4>
                            <li>Server is overloaded.</li>
                            <li>Server database connection is lost.</li>
                            <li>Server expected unhandled error.</li>
                <div class="inner-column">
                    <p>For support, go to <a href="" target="_blank">Support</a>.
                       It may be useful to include your log file; see the log file locations <a href="">here</a>.
                <div class="inner-column">
                    <p>For more information, see <a href=""></a>.</p>


Actions #1

Updated by Marcin Kuzminski [CTO] about 6 years ago

Hi Gildas,

Can you check on server side what 500 error calling this method generates?

Actions #2

Updated by Gildas Fargeas almost 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: 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/", 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/", line 156, in handle_request
  File "/opt/rhodecode/store/lnzg7yaxbpy59hpvax55s8s3w2kzyka8-python2.7-pyramid-1.9.1/lib/python2.7/site-packages/pyramid/", 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/", 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/", 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/", 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/", 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/", 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/", line 234, in request_view
    argspec = inspect.getargspec(func)
  File "/opt/rhodecode/store/g7qzsl3a8sb23daxgs3gin4j22dhs3sw-python-2.7.12/lib/python2.7/", 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


Also available in: Atom PDF