web3labs/chainlens-free

"An error occurred on client" - Front-end issue?

Closed this issue · 6 comments

It seems like everything is working. Blocks are getting imported:

2024-02-20T23:08:49.988Z  INFO 1 --- [pool-5-thread-6] i.e.e.i.blocks.BlockHeightExtractor      : Import reached block 22024 (0x48fc4fdaf22d1bc12532ce6f81b7390654aeadd4f5cc3877af913575ffebd8fa)

etc. etc.

The problem is that whenever I try to open the localhost, I am presented with a blank screen with text that says "An error occurred on client." This is affecting all pages.

In firefox, the following appears in the console:

TypeError: u.oW is undefined
    NextJS 8
    NextJS 21
TypeError: u.oW is undefined
    NextJS 8

In chrome, the following appears:

TypeError: Cannot read properties of undefined (reading 'concat')
    at 238-7651b095e46b62511564.js:1:20012
    at Ii (framework-7612f137f39df1be4160.js:1:105611)
    at t.unstable_runWithPriority (framework-7612f137f39df1be4160.js:1:130410)
    at Wl (framework-7612f137f39df1be4160.js:1:45782)
    at Oi (framework-7612f137f39df1be4160.js:1:105072)
    at framework-7612f137f39df1be4160.js:1:104983
    at D (framework-7612f137f39df1be4160.js:1:129469)
    at w.port1.onmessage (framework-7612f137f39df1be4160.js:1:128191)

This might be because of the latest commit.

Change docker-compose.yml web sections environment "- WS_API_URL=http://localhost:8090" to "- WS_API_URL=ws://localhost:8090" and try again

it is fixed for me

Works for me too, thanks!

@mnkhod thanks! i love you!

It works for me too. Thank u so much

As the issue has been fixed, I'm closing this issue.