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

Sample of debug service to service request #4333

Open
gaspa85 opened this issue Sep 2, 2024 · 1 comment
Open

Sample of debug service to service request #4333

gaspa85 opened this issue Sep 2, 2024 · 1 comment
Labels
content/missing-information More information requested or needed

Comments

@gaspa85
Copy link

gaspa85 commented Sep 2, 2024

What content needs to be created or modified?
Sample of debug service to service request. Ex.

  1. inside of function add.post('/divide', (req, res) => {
    have request to other microservice for return something
  2. debug react-calculator project, for Ex. server.js and function "app.post('/calculate/subtract', async (req, res) => {"

Describe the solution you'd like
Need to view configuration, tools need for obtain this kind of debug

Where should the new material be placed?
Same place of actual Developing applications
Debugging
Bridge to Kubernetes

The associated pull request from dapr/dapr, dapr/components-contrib, or other Dapr code repos

Additional context

@gaspa85 gaspa85 added the content/missing-information More information requested or needed label Sep 2, 2024
@gaspa85
Copy link
Author

gaspa85 commented Sep 17, 2024

I have find way for debug with service to service.

You need to take port for serve to service comuncation from Environment Variable "DAPR_HTTP_PORT"
NOT USE fixed port 3500.

Like this url
var url = $"http://127.0.0.1:{Environment.GetEnvironmentVariable("DAPR_HTTP_PORT")}/v1.0/invoke/{appId}/method/{method}"

In this way if container is start inside cluster DAPR_HTTP_PORT contains 3500, if is run from B2K DAPR_HTTP_PORT in my case DAPR_HTTP_PORT 55049.

Please add this information for help someone for this kind of problem.

thanks so much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content/missing-information More information requested or needed
Projects
None yet
Development

No branches or pull requests

1 participant