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.

support invokeXXX method return Response

See original GitHub issue

Describe the proposal

it is not support return Response(with code and headers) in invokeXXX method now. it just convert body data by jackson and return.(there is a bug that jackson can’t convert the string without json format) image

it is unsupport if somebody need code and header.

i think that it needs deserialize layer and response interface(implement of http and grpc) to adapt.

use the below code to get Response.

invokeMethod(request,TypeRef<Response>)

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
yaron2commented, Jul 25, 2022

We should create a new API that is HTTP specific instead of having a break change here. This API was originally designed to be protocol agnostic.

Using an HTTP client directly (which is the preferred method for service invocation) is essentially HTTP specific and will address the problem described here.

0reactions
yaron2commented, Jul 26, 2022

We should create a new API that is HTTP specific instead of having a break change here. This API was originally designed to be protocol agnostic.

Using an HTTP client directly (which is the preferred method for service invocation) is essentially HTTP specific and will address the problem described here.

In Java SDK, we handle serialization on behalf of the user too (differently from .Net SDK). So there is an advantage of letting the SDK handle the abstraction for the user.

Agreed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Method invocation error handling for invalid method name
Whenever one makes a HTTP call to Dapr with invalid app ID, it handles it gracefully and returns a proper message. Sample request....
Read more >
Return ViewComponent from Action in a Controller - MSDN
The most obvious way is call this method inside a controller: // Method on PageController public IActionResult Content() { return View(); }.
Read more >
Why is Invoke-WebRequest and Invoke-RestMethod failing ...
Does anyone know why the Invoke-XXX cmdlets are returning an error and what I can do to fix it? Again, it works perfectly...
Read more >
Solved Java code: Cannot invoke "xxx" because "this.type
Question: Java code: Cannot invoke "xxx" because "this.type' null. Can't figure out how to fix this error. Error in compiler: Pictures of the...
Read more >
Java – Stateless Blocking Server Design – iTecNote
The appropriate response (based on the outcome) is created, the client is ... Builder (recognizeable by creational methods returning the instance itself).
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