# Attempting to load invalid block (when nxt.isLightClient=true)

**URL:** <https://talk.jelurida.com/t/attempting-to-load-invalid-block-when-nxt-islightclient-true/356>\
**Category:** Developers\
**Created:** [17 May 2021 14:04 UTC](https://talk.jelurida.com/t/attempting-to-load-invalid-block-when-nxt-islightclient-true/356 "2021-05-17T14:04:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandoche](https://talk.jelurida.com/user_avatar/talk.jelurida.com/sandoche/32/89_2.png) [@sandoche](https://talk.jelurida.com/u/sandoche)\
**Post date:** [17 May 2021 14:04 UTC](https://talk.jelurida.com/t/attempting-to-load-invalid-block-when-nxt-islightclient-true/356/1 "2021-05-17T14:04:42Z")

</div>

Hi,

I have this issue again:

```auto
2021-05-17 14:50:24 INFO: 2021-05-17T13:50:24.063Z Cannot connect to /nxt-proxy java.lang.IllegalStateException: Attempting to load invalid block

```

But this time only with this setting: `nxt.isLightClient=true`

Also note that I did apply this patch ([Problems Displaying Blockchain in Forging Mode After Exception - #10 by petko.petkov](https://talk.jelurida.com/t/problems-displaying-blockchain-in-forging-mode-after-exception/280/10)), and it solved the issue when the wallet is running a full node and not a light client.

Any idea?

---

<div class="post-metadata">

**Author:** ![petko.petkov](https://talk.jelurida.com/letter_avatar_proxy/v4/letter/p/eb8c5e/32.png) [@petko.petkov](https://talk.jelurida.com/u/petko.petkov)\
**Post date:** [17 May 2021 15:57 UTC](https://talk.jelurida.com/t/attempting-to-load-invalid-block-when-nxt-islightclient-true/356/2 "2021-05-17T15:57:11Z")

</div>

Hi, could you provide a full stacktrace and steps to reproduce? Are they same as in [Problems Displaying Blockchain in Forging Mode After Exception](https://talk.jelurida.com/t/problems-displaying-blockchain-in-forging-mode-after-exception/280)?

---

<div class="post-metadata">

**Author:** ![petko.petkov](https://talk.jelurida.com/letter_avatar_proxy/v4/letter/p/eb8c5e/32.png) [@petko.petkov](https://talk.jelurida.com/u/petko.petkov)\
**Post date:** [17 May 2021 16:03 UTC](https://talk.jelurida.com/t/attempting-to-load-invalid-block-when-nxt-islightclient-true/356/3 "2021-05-17T16:03:44Z")

</div>

Ah, it's an UI error, right? Probably you still have some openAPI nodes which run without the patch? The light client connects to foreign nodes. Seems the error is returned by some of the openAPI nodes the light client is connected to.
