You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GitHub github = GitHub.connect();
GHRepository repo = github.createRepository(
"new-repository","this is my new repository",
"http://www.kohsuke.org/",true/*public*/);
repo.delete();
on android 4.4.4 API 19 and on delete got error
----- begin exception -----
04-21 23:58:06.992 1823-1836/? I/TestRunner﹕ java.net.ProtocolException: DELETE does not support writing
at com.android.okhttp.internal.http.HttpURLConnectionImpl.initHttpEngine(HttpURLConnectionImpl.java:258)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:86)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:197)
at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:254)
at org.kohsuke.github.Requester.buildRequest(Requester.java:299)
at org.kohsuke.github.Requester._to(Requester.java:221)
at org.kohsuke.github.Requester.to(Requester.java:191)
at org.kohsuke.github.Requester.to(Requester.java:179)
at org.kohsuke.github.GHRepository.delete(GHRepository.java:502)
at com.example.varis.githubtest.ApplicationTest.test(ApplicationTest.java:25)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:115)
at junit.framework.TestResult.runProtected(TestResult.java:133)
at junit.framework.TestResult.run(TestResult.java:118)
at junit.framework.TestCase.run(TestCase.java:124)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)
at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:554)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1701)
The text was updated successfully, but these errors were encountered:
run example from http://github-api.kohsuke.org/
on android 4.4.4 API 19 and on delete got error
----- begin exception -----
04-21 23:58:06.992 1823-1836/? I/TestRunner﹕ java.net.ProtocolException: DELETE does not support writing
at com.android.okhttp.internal.http.HttpURLConnectionImpl.initHttpEngine(HttpURLConnectionImpl.java:258)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:86)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:197)
at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:254)
at org.kohsuke.github.Requester.buildRequest(Requester.java:299)
at org.kohsuke.github.Requester._to(Requester.java:221)
at org.kohsuke.github.Requester.to(Requester.java:191)
at org.kohsuke.github.Requester.to(Requester.java:179)
at org.kohsuke.github.GHRepository.delete(GHRepository.java:502)
at com.example.varis.githubtest.ApplicationTest.test(ApplicationTest.java:25)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:115)
at junit.framework.TestResult.runProtected(TestResult.java:133)
at junit.framework.TestResult.run(TestResult.java:118)
at junit.framework.TestCase.run(TestCase.java:124)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)
at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:554)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1701)
The text was updated successfully, but these errors were encountered: