Closed claudioantonio closed 3 months ago
Unexpected token 'F', "Failed to "... is not valid JSON
Maybe this error was raised here?
When error described here occurs, the inspect server goes down. We can see it in the browser's console:
POST https://optimism-sepolia.sunodo.app/0x3694c82fde031b8462e90e8bfee0377de2b01ecc/inspect 400 (Bad Request)
This is confirmed by the logs provided by the infra team: "Failed to inspect state: session is tainted"
[rollups-node] 2024-07-18T14:59:22.153 WRN services/command.go:109 WARN HTTP request: tracing_actix_web::middleware: Error encountered while processing the incoming HTTP request: "Failed to inspect state: session is tainted" http.method=POST http.route=/inspect http.flavor=1.1 http.scheme=https http.host=optimism-sepolia-0x3694c82fde031b8462e90e8bfee0377de2b01ecc.fly.dev http.client_ip=201.17.82.12 http.user_agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 http.target=/inspect otel.name=HTTP POST /inspect otel.kind="server" request_id=19c80bed-742b-4116-9f58-e35d68514552 exception.message=Failed to inspect state: session is tainted exception.details="Failed to inspect state: session is tainted" http.status_code=400 otel.status_code="OK" service=inspect-server
[rollups-node] 2024-07-18T14:59:22.152 WRN services/command.go:109 WARN HTTP request: inspect_server::server: Failed to inspect state: session is tainted http.method=POST http.route=/inspect http.flavor=1.1 http.scheme=https http.host=optimism-sepolia-0x3694c82fde031b8462e90e8bfee0377de2b01ecc.fly.dev http.client_ip=201.17.82.12 http.user_agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 http.target=/inspect otel.name=HTTP POST /inspect otel.kind="server" request_id=19c80bed-742b-4116-9f58-e35d68514552 service=inspect-server
[rollups-node] 2024-07-18T14:59:22.152 DBG services/command.go:109 DEBUG inspect_server::inspect: got grpc response from inspect_state response=Err(Status { code: DataLoss, message: "session is tainted", metadata: MetadataMap { headers: {"content-type": "application/grpc"} }, source: None }) request_id=e210d63d-5644-47e4-9752-ab510c0f4738 service=inspect-server
[rollups-node] 2024-07-18T14:59:22.152 DBG services/command.go:109 DEBUG inspect_server::inspect: calling grpc inspect_state request=InspectStateRequest { session_id: "default_session_id", query_payload: [123, 34, 98, 111, 117, 110, 116, 121, 73, 110, 100, 101, 120, 34, 58, 49, 48, 44, 34, 101, 120, 112, 108, 111, 105, 116, 34, 58, 34, 89, 50, 57, 117, 100, 72, 74, 104, 89, 51, 81, 103, 100, 71, 86, 122, 100, 72, 116, 57, 34, 125] } request_id=e210d63d-5644-47e4-9752-ab510c0f4738 service=inspect-server
[rollups-node] 2024-07-18T14:59:22.152 DBG services/command.go:109 DEBUG HTTP request: inspect_server::inspect: inspect request added to the queue http.method=POST http.route=/inspect http.flavor=1.1 http.scheme=https http.host=optimism-sepolia-0x3694c82fde031b8462e90e8bfee0377de2b01ecc.fly.dev http.client_ip=201.17.82.12 http.user_agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 http.target=/inspect otel.name=HTTP POST /inspect otel.kind="server" request_id=19c80bed-742b-4116-9f58-e35d68514552 service=inspect-server
As the problem affects the inspect server, the issue described here is not isolated to the bounty in which it originally occurred.
Never mind. If the error was in the line I suggested, it would have never reached the line where it updates the shell text.
The error was happening because:
More info: https://discord.com/channels/600597137524391947/1166042819782258788/1265467379618549802
Steps to reproduce:
Warning: Source file does not specify required compiler version! Consider adding "pragma solidity ^0.8.26;" --> /exploit
application exited with status 0, exploit failed! [bwrapbox] application exited with status 1 after 172032 real usecs and CPU 148416 usecs
Unexpected token 'F', "Failed to "... is not valid JSON