Skip to content
GitLab
Next
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab FOSS GitLab FOSS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLab FOSSGitLab FOSS
  • Issues
  • #64151
Closed
Open
Issue created Jul 05, 2019 by Shinya Maeda@shinya.maeda💡Maintainer

User cannot create Releases entry via Releases API

Problem

Tested on https://gitlab.com/dosuken123/project-with-release.

shinya@shinya-MS-7A34:~/workspace/thin-gdk/service/rails/src$ curl --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: XXX" \
>      --data '{ "name": "New release", "tag_name": "v0.1", "description": "Super nice release", "assets": { "links": [{ "name": "hoge", "url": "https://google.com" }] } }' \
>      --request POST https://gitlab.com/api/v4/projects/13178579/releases
{"message":"PG::NotNullViolation: ERROR:  null value in column \"released_at\" violates not-null constraint\nDETAIL:  Failing row contains (848950, v0.1, Super nice release, 13178579, 2019-07-05 02:07:34.209728, 2019-07-05 02:07:34.209728, \u003cp data-sourcepos=\"1:1-1:18\" dir=\"auto\"\u003eSuper nice release\u003c/p\u003e, 1048576, 758045, New release, c203169a41febe64b19b57a1b09c5dcc5327abd9, null).\n: INSERT INTO \"releases\" (\"tag\", \"description\", \"project_id\", \"created_at\", \"updated_at\", \"description_html\", \"cached_markdown_version\", \"author_id\", \"name\", \"sha\") VALUES ('v0.1', 'Super nice release', 13178579, '2019-07-05 02:07:34.209728', '2019-07-05 02:07:34.209728', '\u003cp data-sourcepos=\"1:1-1:18\" dir=\"auto\"\u003eSuper nice release\u003c/p\u003e', 1048576, 758045, 'New release', 'c203169a41febe64b19b57a1b09c5dcc5327abd9') RETURNING \"id\""}
Assignee
Assign to
Time tracking