Coder Social home page Coder Social logo

Comments (7)

danobis avatar danobis commented on June 2, 2024 1

Rebuilt everything from scratch and am no longer encountering this problem. Unfortunately I can't say what caused it.

from dotnet-sdk.

philliphoff avatar philliphoff commented on June 2, 2024

@danobis Can you provide a bit more information about the error you're seeing, such as which application (web or event-catalog) generates it and, if possible, the actual exception that causes it (e.g. by logging it in the application)? Which version of Dapr runtime and SDK are you using?

I attempted to reproduce this issue with a similar setup but I am getting successful calls via Dapr from service A to service B.

from dotnet-sdk.

danobis avatar danobis commented on June 2, 2024

Hi @philliphoff, thanks for your response.

web is generating the error. This is the exception it causes:

image

Dapr runtime: 1.11.2
SDK: 7.0.401

from dotnet-sdk.

philliphoff avatar philliphoff commented on June 2, 2024

@danobis Looking at the error, it appears that web gets the request, makes a request of event-catalog, which gets received but returns a 500, which then causes web to itself return an error. In other words, it seems like the Dapr method invocation works, but the event-catalog controller returns an error.

I see that the event-catalog controller method requires a categoryId GUID argument extracted from the query string, but I don't see any provided in the URL of the call being made by web (i.e. /api/events). Might that be an issue?

from dotnet-sdk.

danobis avatar danobis commented on June 2, 2024

Sorry @philliphoff , I made a mistake and pasted the wrong methods into my question. I am actually trying to get the categories, not the events. I corrected the code snippets above.

Interestingly, it works just fine if I register the service like this:

builder.Services.AddHttpClient<IEventCatalogService, EventCatalogService>(c =>
{
     c.BaseAddress = new Uri(builder.Configuration["ApiConfigs:EventCatalog:Uri"]);
 });

However, when using the DaprClient variant, I get the above exception.

from dotnet-sdk.

philliphoff avatar philliphoff commented on June 2, 2024

@danobis Are you (also) seeing an exception in the categories application? You might also bump up the logging level of the Dapr sidecars (e.g. --log-level debug) and see if they show any errors in how they're attempting to make/receive method invocations.

from dotnet-sdk.

danobis avatar danobis commented on June 2, 2024

Thanks for the suggestion, @philliphoff. It seems that the Get() method of event-catalog never gets executed. Maybe these log statements in web can indicate where the problem is?

DEBU[0010] no mDNS address found in cache, browsing network for app id event-catalog  app_id=web component="mdns (nameResolution/v1)" instance=MacBook-Pro.local scope=dapr.contrib type=log ver=1.11.2
DEBU[0010] Browsing for first mDNS address for app id event-catalog  app_id=web component="mdns (nameResolution/v1)" instance=MacBook-Pro.local scope=dapr.contrib type=log ver=1.11.2
DEBU[0010] no mDNS address found in cache, browsing network for app id event-catalog  app_id=web component="mdns (nameResolution/v1)" instance=MacBook-Pro.local scope=dapr.contrib type=log ver=1.11.2
DEBU[0010] mDNS response for app id event-catalog received.  app_id=web component="mdns (nameResolution/v1)" instance=MacBook-Pro.local scope=dapr.contrib type=log ver=1.11.2
DEBU[0010] Adding IPv4 address 193.170.132.110:61702 for app id event-catalog cache entry.  app_id=web component="mdns (nameResolution/v1)" instance=MacBook-Pro.local scope=dapr.contrib type=log ver=1.11.2
DEBU[0010] mDNS browse for app id event-catalog canceled.  app_id=web component="mdns (nameResolution/v1)" instance=MacBook-Pro.local scope=dapr.contrib type=log ver=1.11.2
DEBU[0010] Browsing for first mDNS address for app id event-catalog canceled.  app_id=web component="mdns (nameResolution/v1)" instance=MacBook-Pro.local scope=dapr.contrib type=log ver=1.11.2
DEBU[0010] Refreshing mDNS addresses for app id event-catalog.  app_id=web component="mdns (nameResolution/v1)" instance=MacBook-Pro.local scope=dapr.contrib type=log ver=1.11.2
DEBU[0010] mDNS response for app id event-catalog received.  app_id=web component="mdns (nameResolution/v1)" instance=MacBook-Pro.local scope=dapr.contrib type=log ver=1.11.2
DEBU[0010] Adding IPv4 address 193.170.132.110:61702 for app id event-catalog cache entry.  app_id=web component="mdns (nameResolution/v1)" instance=MacBook-Pro.local scope=dapr.contrib type=log ver=1.11.2
DEBU[0033] mDNS browse for app id event-catalog timed out.  app_id=web component="mdns (nameResolution/v1)" instance=MacBook-Pro.local scope=dapr.contrib type=log ver=1.12.0
DEBU[0033] Refreshing mDNS addresses for app id event-catalog timed out.  app_id=web component="mdns (nameResolution/v1)" instance=MacBook-Pro.local scope=dapr.contrib type=log ver=1.12.0

Not sure if this is related, but I am also getting this error in event-catalog:

DEBU[0030] Error while reading spiffe id from client cert. applying default global policy action app_id=event-catalog instance=MacBook-Pro.local scope=dapr.acl type=log ver=1.12.0

Also tried it on a Windows machine and ran into the same issue.

from dotnet-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.