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

POST to api/plugins/version-control/branches/ results in 500 #177

Open
schreyack opened this issue Apr 11, 2022 · 1 comment
Open

POST to api/plugins/version-control/branches/ results in 500 #177

schreyack opened this issue Apr 11, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@schreyack
Copy link

curl -X POST "https://vc.test.nautobot.com/api/plugins/version-control/branches/" -H  "accept: application/json" -H  "Authorization: XX" -H  "Content-Type: application/json" -H  "X-CSRFToken: XX" -d "{  \"name\": \"tim-test-api\",  \"hash\": \"njjmga0j9rmq1jubo7jcgcsjr849m91w\",  \"latest_committer\": \"ntc\",  \"latest_committer_email\": \"[email protected]\",  \"latest_commit_date\": \"2022-04-11T15:28:43.569Z\",  \"latest_commit_message\": \"testasfd\"}"

Results in:

<!DOCTYPE html>
<html lang="en">

<head>
    <title>Server Error</title>
    <link rel="stylesheet" href="https://mhs-ntc-sandbox-nautobot-resources.s3.amazonaws.com/sandbox/test/dolt/bootstrap-3.4.1-dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://mhs-ntc-sandbox-nautobot-resources.s3.amazonaws.com/sandbox/test/dolt/materialdesignicons-5.4.55/css/materialdesignicons.min.css">
    <meta charset="UTF-8">
</head>

<body>
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-6 col-md-offset-3">
                <div class="panel panel-danger" style="margin-top: 200px">
                    <div class="panel-heading">
                        <strong>
                            <i class="mdi mdi-alert"></i>
                            Server Error
                        </strong>
                    </div>
                    <div class="panel-body">
                        
                            <p>
                                There was a problem with your request. Please contact an administrator.
                            </p>
                        
                        <hr />
                        <p>
                            The complete exception is provided below:
                        </p>
<pre><strong>&lt;class &#x27;django.db.utils.OperationalError&#x27;&gt;</strong><br />
(1105, &#x27;invalid ref spec&#x27;)

Python version: 3.7.12
Nautobot version: 1.2.7</pre>
                        <p>
                            If further assistance is required, please post to the <a href="https://networktocode.slack.com/">#nautobot channel on Network to Code's Slack</a>.
                        </p>
                        <div class="text-right">
                            <a href="/" class="btn btn-primary">Home Page</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>

</html>
@jathanism jathanism added the bug Something isn't working label Apr 11, 2022
@jathanism
Copy link
Contributor

Confirmed. Looks like the serializer for the API is not fully vetted for creating new branches at this time and needs to be shored up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants