Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Torri Parsing error: EOF #2873

Open
alexhaloETH opened this issue Jan 7, 2025 · 1 comment
Open

[BUG] Torri Parsing error: EOF #2873

alexhaloETH opened this issue Jan 7, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@alexhaloETH
Copy link

alexhaloETH commented Jan 7, 2025

Torii is not able to serve certain model and leads to gRPC returning this error, this is also specific to the entity so all works well if the specific entity is not fetched
Parsing error: EOF while parsing a value at line 1 column 0
and graphql returning this
"Parsing error: EOF while parsing a value at line 1 column 0"
playground: { "jsonrpc": "2", "id": 1, "error": { "code": -32000, "message": "{\"jsonrpc\":\"2\",\"id\":1,\"error\":{\"code\":-32000,\"message\":\"received 500 from origin with empty body\"}}" } }

The models do correctly get filled in the database so this is an issue with the serving side

We currently think that to replicate the error you need a Model or an Event with an array of a struct and that struct also contains an array (nested arrays)
currently these two models are thought to be creating this behaviour
https://github.com/Provable-Games/ls-tournaments/blob/57822b40b4fce0a8dcf05e9afc4654cb9bbbdb5d/contracts/src/ls15_components/models/tournament.cairo#L74
https://github.com/grugslair/blob-arena-contracts/blob/dev/src/attacks/results.cairo#L4

this issue is being talked about here
https://discord.com/channels/1062934010722005042/1114312181480173689/1325855964066480179

Currently happening on version 1.0.8

@alexhaloETH alexhaloETH added the bug Something isn't working label Jan 7, 2025
@bengineer42
Copy link
Contributor

From the error being "encountered unexpected or invalid data: JSON parse error: EOF while parsing a value at line 1 column 0" its possible the error might be due to the json format being an array and not an object eg:

[{ "affect": { "Success": [] }, "target": { "Player": [] } }]

not

{ "array": [{ "affect": { "Success": [] }, "target": { "Player": [] } }] }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants