Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type error while dash in project name #33

Open
will-mei opened this issue Apr 2, 2020 · 1 comment
Open

type error while dash in project name #33

will-mei opened this issue Apr 2, 2020 · 1 comment

Comments

@will-mei
Copy link

will-mei commented Apr 2, 2020

here is the code I use

>>> for i in  gl.project('openstack/rabbitmq-server-3.3.5').branches():
...     print(i.name)
...
key: id
@will-mei will-mei changed the title type error while slash in project name type error while dash in project name Apr 2, 2020
@will-mei
Copy link
Author

will-mei commented Apr 2, 2020

error at /site-packages/gitlab3/init.py line 319

json_data

data: b'<!DOCTYPE html>\n<html lang=\'en\'>\n<head>\n<meta charset=\'utf-8\'>\n<meta content=\'IE=edge\' http-equiv=\'X-UA-Compatible\'>\n<meta content=\'GitLab Community Edition\' name=\'description\'>\n<meta content=\'origin-when-cross-origin\' name=\'referrer\'>\n<title>Sign in | GitLab</title>\n<link href="/assets/favicon-5738a6efe01f3282080df5f467da72a9.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />\n<link href="/assets/application-b6b8b78ea4c3735483f6100ef977bb15.css" media="all" rel="stylesheet" />\n<link href="/assets/print-47fe51cdf70398e5e54b544e0f5cc718.css" media="print" rel="stylesheet" />\n<script src="/assets/application-225958ece19ac21c75cc49ae0d2719ec.js"></script>\n<meta content="authenticity_token" name="csrf-param" />\n<meta content="wU5HPa7EB5zZC5lKv7rO6+m3S1ct6fp/BJUClsaGEZU=" name="csrf-token" />\n<script type="text/javascript">\n//<![CDATA[\nwindow.gon={};gon.api_version="v3";gon.default_avatar_url="http://172.16.99.4:10080/assets/no_avatar-0b64d25ac5f63e6f0caee99e819105ba.png";gon.default_issues_tracker="gitlab";gon.max_file_size=100;gon.relative_url_root="";gon.user_color_scheme="white";\n//]]>\n</script>\n<meta content=\'width=device-width, initial-scale=1, maximum-scale=1\' name=\'viewport\'>\n<meta content=\'#474D57\' name=\'theme-color\'>\n<link href="/assets/touch-icon-iphone-4c0496ac9f88e7961644c66b289a6614.png" rel="apple-touch-icon" type="image/vnd.microsoft.icon" />\n<link href="/assets/touch-icon-ipad-d64abe7a8e8be6e02245d2ed79da6ff9.png" rel="apple-touch-icon" sizes="76x76" type="image/vnd.microsoft.icon" />\n<link href="/assets/touch-icon-iphone-retina-54af16810ab006406b4df81f8a92fe8d.png" rel="apple-touch-icon" sizes="120x120" type="image/vnd.microsoft.icon" />\n<link href="/assets/touch-icon-ipad-retina-72774a950890a9e3811ab91f186cc11f.png" rel="apple-touch-icon" sizes="152x152" type="image/vnd.microsoft.icon" />\n<meta content=\'/assets/msapplication-tile-0cf7066c37c04d40809fdcc2bf53a754.png\' name=\'msapplication-TileImage\'>\n<meta content=\'#30353E\' name=\'msapplication-TileColor\'>\n\n\n\n\n<style>\n  [data-user-is] {\n    display: none !important;\n  }\n  \n  [data-user-is=""] {\n    display: block !important;\n  }\n  \n  [data-user-is=""][data-display="inline"] {\n    display: inline !important;\n  }\n  \n  [data-user-is-not] {\n    display: block !important;\n  }\n  \n  [data-user-is-not][data-display="inline"] {\n    display: inline !important;\n  }\n  \n  [data-user-is-not=""] {\n    display: none !important;\n  }\n</style>\n\n</head>\n\n<body class=\'ui_charcoal login-page application\'>\n<header class=\'navbar navbar-fixed-top navbar-empty\'>\n<div class=\'container\'>\n<div class=\'center-logo\'>\n<svg width="36px" height="36px" viewBox="0 0 210 210" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="tanuki-logo">\n    <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n        <g id="logo" sketch:type="MSLayerGroup" transform="translate(0.000000, 10.000000)">\n            <g id="Page-1" sketch:type="MSShapeGroup">\n                <g id="Fill-1-+-Group-24">\n                    <g id="Group-24">\n                        <g id="Group">\n                            <path d="M105.0614,193.655 L105.0614,193.655 L143.7014,74.734 L66.4214,74.734 L105.0614,193.655 L105.0614,193.655 Z" id="Fill-4" fill="#E24329" class="tanuki-shape"></path>\n                            <path d="M105.0614,193.6548 L66.4214,74.7338 L12.2684,74.7338 L105.0614,193.6548 L105.0614,193.6548 Z" id="Fill-8" fill="#FC6D26" class="tanuki-shape"></path>\n                            <path d="M12.2685,74.7341 L12.2685,74.7341 L0.5265,110.8731 C-0.5445,114.1691 0.6285,117.7801 3.4325,119.8171 L105.0615,193.6551 L12.2685,74.7341 L12.2685,74.7341 Z" id="Fill-12" fill="#FCA326" class="tanuki-shape"></path>\n                            <path d="M12.2685,74.7342 L66.4215,74.7342 L43.1485,3.1092 C41.9515,-0.5768 36.7375,-0.5758 35.5405,3.1092 L12.2685,74.7342 L12.2685,74.7342 Z" id="Fill-16" fill="#E24329" class="tanuki-shape"></path>\n                            <path d="M105.0614,193.6548 L143.7014,74.7338 L197.8544,74.7338 L105.0614,193.6548 L105.0614,193.6548 Z" id="Fill-18" fill="#FC6D26" class="tanuki-shape"></path>\n                            <path d="M197.8544,74.7341 L197.8544,74.7341 L209.5964,110.8731 C210.6674,114.1691 209.4944,117.7801 206.6904,119.8171 L105.0614,193.6551 L197.8544,74.7341 L197.8544,74.7341 Z" id="Fill-20" fill="#FCA326" class="tanuki-shape"></path>\n                            <path d="M197.8544,74.7342 L143.7014,74.7342 L166.9744,3.1092 C168.1714,-0.5768 173.3854,-0.5758 174.5824,3.1092 L197.8544,74.7342 L197.8544,74.7342 Z" id="Fill-22" fill="#E24329" class="tanuki-shape"></path>\n                        </g>\n                    </g>\n                </g>\n            </g>\n        </g>\n    </g>\n</svg>\n\n</div>\n</div>\n</header>\n\n\n<div class=\'container navless-container\'>\n<div class=\'content\'>\n<div class=\'flash-container\'>\n<div class=\'flash-alert\'>\nYou need to sign in or sign up before continuing.\n</div>\n</div>\n\n<div class=\'row prepend-top-20\'>\n<div class=\'col-sm-5 pull-right\'>\n<div>\n<div class=\'login-box\'>\n<div class=\'login-heading\'>\n<h3>Sign in</h3>\n</div>\n<div class=\'login-body\'>\n<ul class=\'nav nav-tabs\'>\n<li class=\'active\'>\n<a data-toggle="tab" href="#tab-ldapmain">LDAP</a>\n</li>\n<li>\n<a data-toggle="tab" href="#tab-signin">Standard</a>\n</li>\n</ul>\n<div class=\'tab-content\'>\n<div class=\'active tab-pane\' id=\'tab-ldapmain\'>\n<form accept-charset="UTF-8" action="/users/auth/ldapmain/callback" id="new_ldap_user" method="post"><div style="display:none"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="wU5HPa7EB5zZC5lKv7rO6+m3S1ct6fp/BJUClsaGEZU=" /></div>\n<input autofocus="autofocus" class="form-control top" id="username" name="username" placeholder="LDAP Login" type="text" />\n<input class="form-control bottom" id="password" name="password" placeholder="Password" type="password" />\n<div class=\'remember-me checkbox\'>\n<label for=\'remember_me\'>\n<input id="remember_me" name="remember_me" type="checkbox" value="1" />\n<span>Remember me</span>\n</label>\n</div>\n<button class="btn-save btn" name="button" type="submit">Sign in</button>\n</form>\n\n\n</div>\n<div class=\'tab-pane\' id=\'tab-signin\'>\n<form accept-charset="UTF-8" action="/users/sign_in" class="new_user" id="new_user" method="post"><div style="display:none"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="wU5HPa7EB5zZC5lKv7rO6+m3S1ct6fp/BJUClsaGEZU=" /></div><input autocapitalize="off" autocorrect="off" autofocus="autofocus" class="form-control top" id="user_login" name="user[login]" placeholder="Username or Email" type="text" />\n<input class="form-control bottom" id="user_password" name="user[password]" placeholder="Password" type="password" />\n<div class=\'remember-me checkbox\'>\n<label for=\'user_remember_me\'>\n<input name="user[remember_me]" type="hidden" value="0" /><input id="user_remember_me" name="user[remember_me]" type="checkbox" value="1" />\n<span>Remember me</span>\n</label>\n<div class=\'pull-right\'>\n<a href="/users/password/new">Forgot your password?</a>\n</div>\n</div>\n<div>\n<input class="btn btn-save" name="commit" type="submit" value="Sign in" />\n</div>\n</form>\n\n\n</div>\n</div>\n</div>\n</div>\n\n</div>\n\n</div>\n<div class=\'col-sm-7 brand-holder pull-left\'>\n<h1>\nGitLab Community Edition\n</h1>\n<h3>Open source software to collaborate on code</h3>\n<p>\nManage git repositories with fine grained access controls that keep your code secure.\nPerform code reviews and enhance collaboration with merge requests.\nEach project can also have an issue tracker and a wiki.\n</p>\n<p><a href="http://192.168.89.100:10080/openstack/work_plan/wikis/pages" rel="nofollow">\xe5\xb7\xa5\xe4\xbd\x9c\xe8\xae\xa1\xe5\x88\x92</a></p>\n\n</div>\n</div>\n</div>\n</div>\n<hr>\n<div class=\'container\'>\n<div class=\'footer-links\'>\n<a href="/explore">Explore</a>\n<a href="/help">Help</a>\n<a href="https://about.gitlab.com/">About GitLab</a>\n</div>\n</div>\n</body>\n</html>\n'

self._key_name

key: id

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant