Skip to content

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Jun 6, 2025

Close #2137

Work time: 45mn

.then(async (chain) => {
const response = await chain.nextJsonRpcResponse();
const parsed = JSON.parse(response);
if (parsed.id === null && parsed.error)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, this shouldn't be null, right? It should be the id sent.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed. The tests take a very long time to run for me locally (several minutes), and I ran out of patience before it hit the new test.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand the feeling, our zombienet tests have the same problem :)

@carlosala
Copy link

carlosala commented Jun 6, 2025

Thanks for the prompt fix Pierre 🫶

Copy link
Contributor

@josepot josepot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for the prompt fix!

@tomaka tomaka added this pull request to the merge queue Jun 6, 2025
@tomaka tomaka removed this pull request from the merge queue due to a manual request Jun 6, 2025
@tomaka tomaka enabled auto-merge June 6, 2025 12:55
@tomaka tomaka added this pull request to the merge queue Jun 6, 2025
Merged via the queue into smol-dot:main with commit 120738c Jun 6, 2025
21 checks passed
@tomaka tomaka deleted the fix-2137 branch June 6, 2025 13:25
@carlosala
Copy link

Hey @tomaka!
Would you mind releasing this small patch? It kinda unblocks us so we don't have to add specific code for smoldot.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parse error on valid JSON-RPC messages
3 participants