-
Notifications
You must be signed in to change notification settings - Fork 70
Unexpected JsonNode type in array: ARRAY when creating Skill #306
Copy link
Copy link
Open
Labels
Description
Seeing this error when creating a new Skill with the SDK
Unexpected JsonNode type in array: ARRAY
com.anthropic.errors.AnthropicInvalidDataException: Unexpected JsonNode type in array: ARRAY
at com.anthropic.core.http.HttpRequestBodies$multipartFormData$1$serializePart$1.invoke(HttpRequestBodies.kt:130)
at com.anthropic.core.http.HttpRequestBodies$multipartFormData$1$serializePart$1.invoke(HttpRequestBodies.kt:118)
at kotlin.sequences.TransformingSequence$iterator$1.next(Sequences.kt:210)
at kotlin.sequences.FilteringSequence$iterator$1.calcNext(Sequences.kt:170)
at kotlin.sequences.FilteringSequence$iterator$1.hasNext(Sequences.kt:194)
at kotlin.sequences.SequencesKt___SequencesKt.joinTo(_Sequences.kt:2892)
at kotlin.sequences.SequencesKt___SequencesKt.joinToString(_Sequences.kt:2914)
at kotlin.sequences.SequencesKt___SequencesKt.joinToString$default(_Sequences.kt:2913)
at com.anthropic.core.http.HttpRequestBodies$multipartFormData$1.serializePart(HttpRequestBodies.kt:135)
at com.anthropic.core.http.HttpRequestBodies$multipartFormData$1.access$serializePart(HttpRequestBodies.kt:70)
at com.anthropic.core.http.HttpRequestBodies$multipartFormData$1$entity$2.invoke(HttpRequestBodies.kt:83)
at com.anthropic.core.http.HttpRequestBodies$multipartFormData$1$entity$2.invoke(HttpRequestBodies.kt:71)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at com.anthropic.core.http.HttpRequestBodies$multipartFormData$1.getEntity(HttpRequestBodies.kt:71)
at com.anthropic.core.http.HttpRequestBodies$multipartFormData$1.repeatable(HttpRequestBodies.kt:157)
at com.anthropic.core.http.RetryingHttpClient.isRetryable(RetryingHttpClient.kt:141)
at com.anthropic.core.http.RetryingHttpClient.execute(RetryingHttpClient.kt:47)
at com.anthropic.services.blocking.beta.SkillServiceImpl$WithRawResponseImpl.create(SkillServiceImpl.kt:119)
at com.anthropic.services.blocking.beta.SkillServiceImpl.create(SkillServiceImpl.kt:62)
at com.anthropic.services.blocking.beta.SkillService.create(SkillService.kt:47)
at com.anthropic.services.blocking.beta.SkillServiceTest.create(SkillServiceTest.kt:29)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
To reproduce the issue, just enable this test and run with the mock server.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackNo fields configured for issues without a type.