Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

java.lang.ArrayIndexOutOfBoundsException

Open
#9,325 6 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
kotlin
Domain
networking

Research direction

Start by tracing the stack from okio.SegmentedByteString.checkOffsetAndCount in Util.kt through AsyncTimeout.kt and the OkHttp Http1ExchangeCodec.writeRequest path. The issue provides no reproduction steps or expected behavior, so first gather those and identify the request that triggers the exception; done means reproducing the failure and verifying the fix prevents it.

Written by the indexing model from the issue text.

Description

bug needs info

java.lang.ArrayIndexOutOfBoundsException, msg: size=92 offset=0 byteCount=2394, st:[okio.-SegmentedByteString.checkOffsetAndCount(Util.kt:26), okio.AsyncTimeout$sink$1.write(AsyncTimeout.kt:84), okio.RealBufferedSink.emitCompleteSegments(RealBufferedSink.kt:256), okio.RealBufferedSink.writeUtf8(RealBufferedSink.kt:163), okhttp3.internal.http1.Http1ExchangeCodec.writeRequest(Http1ExchangeCodec.kt:161), okhttp3.internal.http1.Http1ExchangeCodec.writeRequestHeaders(Http1ExchangeCodec.kt:119), okhttp3.internal.connection.Exchange.writeRequestHeaders(Exchange.kt:63), okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:41), okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109), okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:34), okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109), okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95), okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109), okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83), okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109), okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76), okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)

Dominant language
Kotlin
Stars
47.1k
Forks
9.3k
Avg merge
18h 18m
Merged PRs (30d)
15

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lysine-dev/okhttp

All issues in lysine-dev/okhttp

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.