Visualstudio: Repository creation failed with control characters in description

Created on 12 Jul 2018  路  16Comments  路  Source: github/VisualStudio

  • GitHub Extension for Visual Studio version: 2.5.4
  • Visual Studio version: 2017

image

Looking at fiddler, it appears there are some restrictions in what chars are allowed in the description:

image

What I expected to happen

Maybe it should show the error message?

message=description control characters are not allowed
bug

Most helpful comment

You should try adding a description without any line break ie. Type your whole description in just a single line.
Type all of it without pressing [ENTER KEY.]

--Hope it helps.

All 16 comments

Nice find @jcansdale. The message description control characters are not allowed is still a bit vague because it's not clear which character isn't allowed but I think it's better than a general repository creation failure.

Also, I tried the same description when creating a repository on dotcom and it was able to be created just fine. I'm wondering why the control characters are allowed there but not in Visual Studio.

@jcansdale any idea what the control characters were in the description? I can't see any in the fiddler screenshot that you posted.

Also, I tried the same description when creating a repository on dotcom and it was able to be created just fine. I'm wondering why the control characters are allowed there but not in Visual Studio.

I suspect .com may just be stripping control characters? Assuming that's the case, it would make sense for us to do the same.

I think the control char in question might be \r. 馃槅

You should try adding a description without any line break ie. Type your whole description in just a single line.
Type all of it without pressing [ENTER KEY.]

--Hope it helps.

422 Unprocessable Entity - Repository creation failed. [Repository; description]custom: description control characters are not allowed
This characters might be lets say Including Uppercases in your description.

You need to type all the description in one line,
no line breaks

I think the control char in question might be \r. 馃槅

yes it is , make no sense , we are in 2020 and still having this issue

This came up when attempting to edit the description for a repo. Awful error message. Sort it out.

Type whole description without pressing ENTER key. It helped for me.

Why are we still having this problem in 2020? A simple line break lol

@nquayson this should have been fixed in https://github.com/github/VisualStudio/pull/1845

Is this not the case? 馃

Probably @jcansdale. Anyway, Im doing this directly on github. I'm just unhappy it doesn't accept my linebreak with an error message that is so not clear.

this isn't just a visualstudio issue. It also happens in the github webapp. thanks for the don't press enter solution, it works.

You should try adding a description without any line break ie. Type your whole description in just a single line.
Type all of it without pressing [ENTER KEY.]

--Hope it helps.

It worked for me. Thanks!

In my case it happened because of intentional returns(enters).

Was this page helpful?
0 / 5 - 0 ratings