question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incorrect response with RpcErrors

See original GitHub issue

I have a problem with request validation: If request value is non-JsonRpc object(no version property) library return null value. At specification JSON-RPC 2.0 (https://www.jsonrpc.org/specification), if we can not parse or validate request, we sould return response object with error data

for req image

for batch image

i think problem in RpcRequestHandler.HandleRequestAsync on error request processing: if result has any error, we don`t should test id of default value

image

Issue Analytics

  • State:closed
  • Created 6 months ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
amorallercommented, Apr 4, 2023

For examlpe, if i send empty json “{}”, library is correct parse input, and return RpcRequestParseResult with null-value id. RpcRequestHandler.HandleRequestAsync not write responce, because responce no have id. In specification, if we have invalid request we MUST send responce with null id property.

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

RPC error troubleshooting guidance - Windows Client
Learn how to troubleshoot Remote Procedure Call (RPC) errors that occur during computer-to-computer communication.
Read more >
RPC errors - Forum - Server & Application Monitor (SAM)
This error can occur when the remote Server is unable to receive or respond to RPC Requests. Verify there is no firewall preventing...
Read more >
How to Fix "The RPC Server is Unavailable" Error in ...
Method 2: Check the firewall on your computer. Firewalls can block traffic requested by RPC and therefore cause RPC server unavailable problem.
Read more >
Troubleshooting “RPC Server Unavailable” Errors on ...
“ The RPC server is unavailable ” error appears on Windows when a communication error occurs between two computers in a network.
Read more >
How to fix an “RPC server is unavailable” error
Possible solutions to RPC server unavailable error · 1. Search for the Services app and Open it. Open the Services app · 2....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found