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

[NOTE] Notes on "GET /jobs/replication" API #29

Open
moooofly opened this issue Nov 7, 2018 · 0 comments
Open

[NOTE] Notes on "GET /jobs/replication" API #29

moooofly opened this issue Nov 7, 2018 · 0 comments
Assignees
Labels
note markdown some conclusions v1.6.0-66709daa

Comments

@moooofly
Copy link
Owner

moooofly commented Nov 7, 2018

by swagger file

image

image

by harborctl

[#791#root@ubuntu-1604 /go/src/github.com/moooofly/harborctl]$./harborctl job scan log -i 1
==> GET https://localhost/api/jobs/scan/1/log
<==
<== Rsp Status: 500 Internal Server Error
<== Rsp Body:
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>beego application error</title>
    <style>
        html, body, body * {padding: 0; margin: 0;}
        #header {background:#ffd; border-bottom:solid 2px #A31515; padding: 20px 10px;}
        #header h2{ }
        #footer {border-top:solid 1px #aaa; padding: 5px 10px; font-size: 12px; color:green;}
        #content {padding: 5px;}
        #content .stack b{ font-size: 13px; color: red;}
        #content .stack pre{padding-left: 10px;}
        table {}
        td.t {text-align: right; padding-right: 5px; color: #888;}
    </style>
    <script type="text/javascript">
    </script>
</head>
<body>
    <div id="header">
        <h2>Harbor:runtime error: invalid memory address or nil pointer dereference</h2>
    </div>
    <div id="content">
        <table>
            <tr>
                <td class="t">Request Method: </td><td>GET</td>
            </tr>
            <tr>
                <td class="t">Request URL: </td><td>/api/jobs/scan/1/log</td>
            </tr>
            <tr>
                <td class="t">RemoteAddr: </td><td>172.18.0.1</td>
            </tr>
        </table>
        <div class="stack">
            <b>Stack</b>
            <pre>/usr/local/go/src/runtime/asm_amd64.s:509
/usr/local/go/src/runtime/panic.go:491
/usr/local/go/src/runtime/panic.go:63
/usr/local/go/src/runtime/signal_unix.go:367
/go/src/github.com/vmware/harbor/src/ui/api/scan_job.go:56
/go/src/github.com/vmware/harbor/src/vendor/github.com/astaxie/beego/router.go:781
/usr/local/go/src/net/http/server.go:2619
/usr/local/go/src/net/http/server.go:1801
/usr/local/go/src/runtime/asm_amd64.s:2337
</pre>
        </div>
    </div>
    <div id="footer">
        <p>beego 1.9.0 (beego framework)</p>
        <p>golang version: go1.9.2</p>
    </div>
</body>
</html>

[#792#root@ubuntu-1604 /go/src/github.com/moooofly/harborctl]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
note markdown some conclusions v1.6.0-66709daa
Projects
None yet
Development

No branches or pull requests

1 participant