Unable to create more than one snippet per project
Summary
On production/staging, when version_snippets
is enabled, sometime it would err when creating public/private snippets.
I can only reproduce this on production/staging, not locally.
Steps to reproduce
Enable feature flag version_snippets
first.
Case 1
- Create a public project
- In that project, create a snippet
- In that project, create a snippet again
- It would give error flash message "API is not accessible"
Case 2
- Create a public project
- In that project, create a snippet
- It would give error flash message "API is not accessible"
Sometimes it happens when creating public snippet, and sometimes private. However I was never able to create past three snippets in one project.
Example Project
https://staging.gitlab.com/lulalala/op1/snippets https://staging.gitlab.com/lulalala/op2/snippets https://staging.gitlab.com/lulalala/op3/snippets
What is the current bug behavior?
Creating snippets results in error
What is the expected correct behavior?
Should create snippet successfully.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)