Comments (7)
Rebuilt everything from scratch and am no longer encountering this problem. Unfortunately I can't say what caused it.
from dotnet-sdk.
@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.
Hi @philliphoff, thanks for your response.
web
is generating the error. This is the exception it causes:
Dapr runtime: 1.11.2
SDK: 7.0.401
from dotnet-sdk.
@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.
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.
@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.
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)
- Error actor instance is missing HOT 4
- Missing ability to pass datacontenttype in StateTransactionRequest
- Support .NET 8 HOT 3
- [Workflow] Examples do not work due to alpha -> beta changes HOT 2
- [Bug] Console will be stuck in workflow sample HOT 3
- GetWorkflowStateAsync throws an exception when instanceid is not found HOT 7
- SubscribeConfiguration is not working with Azure App Configuration HOT 2
- Dapr Topic subscription does not work on Azure Container Apps HOT 1
- [Proposal] Ability to pass per entry metadata to bulk publish. HOT 5
- WorkflowActivityContext cannot be mocked HOT 2
- Proposal: Support cancellation tokens for non-remoted actor interfaces HOT 1
- Add more workflow samples HOT 1
- [Proposal] Remove usage of DaprClient APIs for wokflow HOT 2
- Workflow never completes when waiting on multiple activities unless ToList is used HOT 4
- Weakly-typed actors should support polymorphic response and null response
- Workflow status displays as `Unknown` after being paused using
- [Workflows] Returning an entity that was added to an EF context causes the activity to retry. HOT 2
- [Proposal] [.NET 8] Use `ExperimentalAttribute` instead of `ObsoleteAttribute` to indicate alpha APIs. HOT 4
- Support workflow ID reuse policy HOT 1
- dapr-api-token not pass to app when invoking dapr sidecar of an Azure Container App. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dotnet-sdk.