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

Forking is not working #342

Closed
FlannelAxis opened this issue Apr 15, 2023 · 0 comments
Closed

Forking is not working #342

FlannelAxis opened this issue Apr 15, 2023 · 0 comments

Comments

@FlannelAxis
Copy link

Installed Version

OS type and version number

all

Expected behavior

fork

Actual Behavior

Welcome to BowlerStudio!
Making Fork...
org.kohsuke.github.HttpException: {"message":"Repository creation failed.","errors":[{"resource":"Repository","code":"custom","field":"name","message":"name already exists on this account"}],"documentation_url":"https://docs.github.com/rest/reference/repos#create-a-repository-for-the-authenticated-user"}
	at org.kohsuke.github.Requester.handleApiError(Requester.java:903)
	at org.kohsuke.github.Requester._to(Requester.java:415)
	at org.kohsuke.github.Requester.to(Requester.java:353)
	at org.kohsuke.github.GHCreateRepositoryBuilder.create(GHCreateRepositoryBuilder.java:199)
	at com.neuronrobotics.bowlerstudio.scripting.ScriptingEngine.makeNewRepoNoFailOver(ScriptingEngine.java:1853)
	at com.neuronrobotics.bowlerstudio.scripting.ScriptingEngine.fork(ScriptingEngine.java:1815)
	at com.neuronrobotics.bowlerstudio.scripting.ScriptingWebWidget.doFork(ScriptingWebWidget.java:141)
	at com.neuronrobotics.bowlerstudio.scripting.ScriptingWebWidget.access$500(ScriptingWebWidget.java:41)
	at com.neuronrobotics.bowlerstudio.scripting.ScriptingWebWidget$2.run(ScriptingWebWidget.java:109)
Caused by: org.kohsuke.github.HttpException: Server returned HTTP response code: 422, message: 'Unprocessable Entity' for URL: https://api.github.com/user/repos
	at org.kohsuke.github.Requester.parse(Requester.java:840)
	at org.kohsuke.github.Requester.parse(Requester.java:782)
	at org.kohsuke.github.Requester._to(Requester.java:393)
	... 7 more
Caused by: java.io.IOException: Server returned HTTP response code: 422 for URL: https://api.github.com/user/repos
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1950)
	at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1945)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1944)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1514)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268)
	at org.kohsuke.github.Requester.parse(Requester.java:818)
	... 9 more
Caused by: java.io.IOException: Server returned HTTP response code: 422 for URL: https://api.github.com/user/repos
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1900)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:352)
	at org.kohsuke.github.Requester.parse(Requester.java:790)
	... 9 more

Steps to reproduce the behavior

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants