# Harness Java client waitForInitialization hangs forever with a bad API key

## What's going on

Calling waitForInitialization() with an invalid API key never returns and never throws. The retry interceptor kept retrying and hit an IllegalStateException about the previous response still being open, so the wait() never woke up.

## The verified fix

Fixed in the SDK via PR #137. Update the ff-java-server-sdk past that fix and a bad API key fails fast instead of hanging forever.

Source: https://github.com/harness/ff-java-server-sdk/issues/136

## How to use this

Take the question above and check if it matches what you're seeing. If it does, work through the verified fix step by step. Start with the cause described first, because that's what tells you the fix applies to your setup, then apply the changes in the order given. Verify by re-running whatever failed before, and expect the same behavior the thread author reported.
