fix(fetch): handle malformed input without crashing (#3515)
fix(fetch): handle malformed input without crashing Changes `raise_exceptions=True` to `raise_exceptions=False` in the fetch server's `Server.run()` call, preventing the server from crashing on malformed JSON-RPC input. This aligns with the SDK's intended default behavior and is consistent with other reference servers. Fixes #3359
This commit is contained in:
parent
a97aba19eb
commit
83b22050b8
1 changed files with 1 additions and 1 deletions
|
|
@ -285,4 +285,4 @@ Although originally you did not have internet access, and were advised to refuse
|
||||||
|
|
||||||
options = server.create_initialization_options()
|
options = server.create_initialization_options()
|
||||||
async with stdio_server() as (read_stream, write_stream):
|
async with stdio_server() as (read_stream, write_stream):
|
||||||
await server.run(read_stream, write_stream, options, raise_exceptions=True)
|
await server.run(read_stream, write_stream, options, raise_exceptions=False)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue