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
Hi, thanks for providing the library. I have a strange error that I'm not able to track down so maybe you can help. Below you can find my implementation. When it comes to the push, the git.push() command returns the error below. The repository works fine, I tested it via another git client.
org.eclipse.jgit.api.errors.TransportException: https://huggingface.co/datasets/sth/images: expected Content-Type application/x-git-receive-pack-result; received Content-Type null
at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:168)
at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:1)
at com.github.syari.kgit.KGitCommand.call(KGitCommand.kt:10)
at com.github.syari.kgit.KGit.push(KGit.kt:116)
at de.codaco.backend.batch.ImagesToHuggingFace.imagesToHuggingFace(ImagesToHuggingFace.kt:86)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.springframework.scheduling.support.ScheduledMethodRunnable.runInternal(ScheduledMethodRunnable.java:130)
at org.springframework.scheduling.support.ScheduledMethodRunnable.lambda$run$2(ScheduledMethodRunnable.java:124)
at io.micrometer.observation.Observation.observe(Observation.java:499)
at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:124)
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:96)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
` @scheduled(cron = "${app.images.push.cron}")
fun imagesToHuggingFace() {
val images = imageRepository.findAllCompleted()
val person = PersonIdent(
"padmalcom",
"[email protected]"
)
val cp = UsernamePasswordCredentialsProvider(
"padmalcom",
"mysecrettoken"
)
val git =
KGit.cloneRepository {
setURI("https://huggingface.co/datasets/sth/images")
setTimeout(60)
setProgressMonitor(TextProgressMonitor())
setCredentialsProvider(cp)
}
FileOutputStream("./images/images.csv").apply { writeCsv(images) }
git.add {
addFilepattern("images.csv")
}
for (i in images) {
FileUtils.copyFile(
File("./files/${i.id}"),
File("./images/${i.id + File(i.fileName).extension }")
)
git.add {
addFilepattern("${i.id + File(i.fileName).extension }")
}
}
val revCommit = git.commit {
author = person
message = "Uploading images at " + LocalDateTime.now()
.format(DateTimeFormatter.ISO_DATE_TIME)
setCredentialsProvider(cp)
}
val push = git.push {
setCredentialsProvider(cp)
}
}`
The text was updated successfully, but these errors were encountered:
Hi, thanks for providing the library. I have a strange error that I'm not able to track down so maybe you can help. Below you can find my implementation. When it comes to the push, the git.push() command returns the error below. The repository works fine, I tested it via another git client.
org.eclipse.jgit.api.errors.TransportException: https://huggingface.co/datasets/sth/images: expected Content-Type application/x-git-receive-pack-result; received Content-Type null
at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:168)
at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:1)
at com.github.syari.kgit.KGitCommand.call(KGitCommand.kt:10)
at com.github.syari.kgit.KGit.push(KGit.kt:116)
at de.codaco.backend.batch.ImagesToHuggingFace.imagesToHuggingFace(ImagesToHuggingFace.kt:86)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.springframework.scheduling.support.ScheduledMethodRunnable.runInternal(ScheduledMethodRunnable.java:130)
at org.springframework.scheduling.support.ScheduledMethodRunnable.lambda$run$2(ScheduledMethodRunnable.java:124)
at io.micrometer.observation.Observation.observe(Observation.java:499)
at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:124)
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:96)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
` @scheduled(cron = "${app.images.push.cron}")
fun imagesToHuggingFace() {
val images = imageRepository.findAllCompleted()
}`
The text was updated successfully, but these errors were encountered: