Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    databasedav
    @databasedav
    4 replies
    are there plans to add key expiration to the state store?
    Davide Bedin
    @dabedin

    Not solving this (silly) issue by myself.
    Dotnet SDK 0.10, two ASP.NET http WebApi projects: app order-service has to invoke app reservation-service method via await daprClient.InvokeMethodAsync<object>("reservation-service", "reserve", data, httpExtension);.
    Both applications correctly appear in VS Code extension while debugging, their methods can be invoked via http or VS Code extension, the reservation-service can also be invoked with DaprClient client.InvokeMethodAsync by a console proj I launch as a Dapr app.
    Once order-service, in the scope of a method call, does attempt to invoke reservation-service method, I received the error: "Error starting gRPC call: No connection could be made because the target machine actively refused it."
    Any hint on the plausible cause?

    The full stack trace:

    Grpc.Core.RpcException: Status(StatusCode=Internal, Detail="Error starting gRPC call: No connection could be made because the target machine actively refused it.")
       at Dapr.Client.DaprClientGrpc.MakeGrpcCallHandleError[TResponse](Func`2 callFunc, CancellationToken cancellationToken)
       at Dapr.Client.DaprClientGrpc.MakeInvokeRequestAsync(String appId, String methodName, Any data, HTTPExtension httpExtension, CancellationToken cancellationToken)
       at Dapr.Client.DaprClientGrpc.InvokeMethodAsync[TRequest](String appId, String methodName, TRequest data, HTTPExtension httpExtension, CancellationToken cancellationToken)
       at sample.microservice.order.Controllers.OrderController.SubmitOrder(Order order, DaprClient daprClient) in C:\Repos\dapr-samples\chapter03\sample.microservice.order\Controllers\OrderController.cs:line 33
       at lambda_method(Closure , Object )
       at Microsoft.Extensions.Internal.ObjectMethodExecutorAwaitable.Awaiter.GetResult()
       at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|19_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
       at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
       at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
       at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
    10 replies
    hichamveo
    @hichamveo
    HI, i'm new on dapr and facing some install issues, can add my questions here?
    hichamveo
    @hichamveo
    image.png
    first i installed dapr:
    image.png
    and docker:
    now i'm facing dapr init issue:
    image.png
    i' don't know it looks at the version v0.2.0 . the first script install has installed the version V0.10.0
    Yaron Schneider
    @yaron2
    @hichamveo it tries to download version 0.2.0 of the dashboard, not Dapr. However we dont yet have an ARM image for the dashboard. Theres an issue tracking it here: dapr/dashboard#75
    hichamveo
    @hichamveo
    @yaron2 thanks for your response. I faced a lot of problems to get start on win server 2016 and bought a raspberry to work with :(
    i wasn't aware that there is no ARM image
    so I cannot init dapr and work with without this dashboard?
    Yaron Schneider
    @yaron2
    @hichamveo you should have Dapr installed just without the dashboard. Try it out.
    Andrea Tosato
    @andreatosato
    Hi, I'm starting to look dapr for a new project. I would need to process files in a folder, is there a trigger for the filesystem? Must I only use timer trigger?
    Davide Bedin
    @dabedin
    I have a .NET grpc service (reservation-service) and exposed via Dapr with --app-protocol grpc.
    As expected, another ASP.NET service (order-service), once invoked via http://localhost:5010/v1.0/invoke/order-service/method/order, is in turn able to reach the reserve method of gRPC service reservation-service via DaprClient.
    Should I be able to reach reservation-service also with http requests to a Dapr sidecar, such as http://localhost:5010/v1.0/invoke/reservation-service/method/reserve?
    I receive back the error, therefore my question.
    {
      "errorCode": "ERR_DIRECT_INVOKE",
      "message": "Message field is nil"
    }
    3 replies
    Charlie Stanley
    @wcs1only
    @yittg You around? If you can validate that I implemented your recommended fix correctly? dapr/dapr#2039
    3 replies
    aktxyz
    @aktxyz
    level=error msg="could not find active reminder with key:
    I basically activate an actor, add a reminder that fires every 5 sec, and that works fine ... then kill dapr
    then start dapr again ... and the reminder is NOT firing and I get the message above in the console
    aktxyz
    @aktxyz
    I thought reminders persist, and will run even if the actor is not currently activated (ie will activate id) ... the fact that it is trying to find the reminder means it's persisted, but not sure why it can run it (as I type this, I wonder if I need to save the state of that actor for it to exist enough to be reminder activatable??? hmmm)
    Artur Souza
    @artursouza
    @aktxyz Please, create an issue in dapr/dapr. Also give the exact commands you used to repro (if possible) and which Dapr runtime version and SDK you are using for Actors.
    aktxyz
    @aktxyz
    tried the saving thing and that did not help ... will create an issue
    xavier geerinck
    @XavierGeerinck
    Question: I am trying to persist a state value in one application and fetch it in another, how would I do that? Since the format is <App ID>||<state key> which means that the APP ID will be different :)
    6 replies
    aktxyz
    @aktxyz
    are reminders per actor instance (actorid), or per actor type ... based on the docs it sounds like per actor instance, but looking at the code it sure looks like per actor type
    also, you can get/set/remove a reminder ... but does not seem you can get a list of reminders ... in the code there is a nice internal method for this, but seems like this should also be exposed?
    https://github.com/dapr/dapr/blob/75badd13131c28aea24ac26129cc6d3214f106a9/pkg/actors/actors.go#L1096
    estibent10
    @estibent10
    Hi! right now I can use Dapr for production environment? Dapr is ready for Apps on production? Thanks!
    2 replies
    aktxyz
    @aktxyz
    looking thru the actor api specs ... is there a way to delete an actor?
    https://github.com/dapr/docs/blob/master/reference/api/actors_api.md#deactivate-actor
    answering my own question from above ... reminders are definitely per actor instance (actorid)
    Artur Souza
    @artursouza
    @aktxyz The actor instance is deactivated automatically after some time (idle time). No need to actively invoke deactivate.
    aktxyz
    @aktxyz
    @artursouza thanks ... more asking about truly deleting ... ie removing from the state store and removing any saved timers/reminders
    meant to say removing any saved reminders (timers don't get persisted !)
    3 replies
    clintsinger
    @clintsinger
    I have a service that starts trying to send messages to actors before the Dapr runtime is ready so starts throwing a bunch of exceptions. Is there a mechanism to tell if dapr is available and ready before I send anything to it?
    2 replies
    Artur Souza
    @artursouza
    @aktxyz This behavior can be implemented as a method in your actor class.
    Artur Souza
    @artursouza
    @clintsinger You can create a method to ping the health endpoint for the Dapr's sidecar. There are two issues related to this: dapr/dapr#1933 and dapr/dapr#1493
    Amit Hansda
    @amitHansda
    Hi, Anyone using DaprClient dotnet sdk?
    I am facing issues while trying to Publisher messages since this morning? Have not faced same previous week.
    Can anyone confirm on the same?
    3 replies
    aktxyz
    @aktxyz
    is there anything to help with deactivating actors when a memory threshold is reached? or is this left up to the process hosting the actors?
    another interesting tidbit, may be working as intended ... but when I remove all state for an actor, it's entry in the state store (I am using postgres) does get removed ... but the reminder entries in the key="actors||<actor-name>" state entry are still there for the now cleared out actors ... this is probably as intended since a reminder should fire for any actor, not just an actor that happens to persist some state ... but was neat to figure out nonetheless :)
    Gokhan Altinoren
    @altinoren
    I'm trying to understand if Dapr to Dapr calling across namespaces is still an open issue or not: dapr/dapr#1275
    Is this implemented, or is there an issue that I can follow this? Ingress to Dapr requires a Dapr sidecar on Ingress gateway, but that also means they need to be in the same namespace, which is not possible based on our design.
    1 reply
    Yaron Schneider
    @yaron2
    Hey everyone, community call will be starting in a few minutes: https://us02web.zoom.us/j/85305980190. Password: eWRhSklVTjJjSnhTaURDcFZaU2ZzQT09
    aktxyz
    @aktxyz
    +1 on the community calls ... learned a lot ... will have to go back and watch the earlier ones !
    Eduardo Monteiro de Barros
    @eduardomb08

    Hey everyone, community call will be starting in a few minutes: https://us02web.zoom.us/j/85305980190. Password: eWRhSklVTjJjSnhTaURDcFZaU2ZzQT09

    Is there a recurrent calendar event for it?

    Mark Chmarny
    @mchmarny
    If you are using our go SDK we would like to hear from you. We've updated the client and serving (callback) portions recently and would like to hear about your experience. How are our docs? What's missing feature-wise? How can we make things easier? We can chat here, do hangouts/teams/zoom session, or just DM me (@mchmarny) on Twitter.
    aktxyz
    @aktxyz
    are there any rules/limits for dapr actor keys ... I tried to use a key with a slash in it "123/ABC" ... I got the vague exception "ServerErrorNoMeaningFulResponse" ...
    with a slightly less vague inner exception "'N' is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0."
    this is using the dapr dotnet-sdk
    aktxyz
    @aktxyz
    seems to just like not like /'s in the actor id string, maybe related to an internal format for the id that uses slashes ?
    https://github.com/dapr/dotnet-sdk/blob/900727f35187bb887de9a79b5b9df18f51ec9f67/src/Dapr.Actors/Constants.cs#L32
    Nkosinathi Sangweni
    @malotho
    level=fatal msg="failed to start internal gRPC server: error from authenticator CreateSignedWorkloadCert: error from sentry SignCertificate: rpc error: code = Unavailable desc = connection error: desc = \"transport: authentication handshake failed: x509: certificate signed by unknown authority (possibly because of \\"x509: ECDSA verification failure\\" while trying to verify candidate authority certificate \\"cluster.local\\")\"" app_id=leadinboundsvc instance=leadinboundsvcapp-6f6697f466-6dlbr scope=dapr.runtime type=log ver=0.10.0
    We are getting the error since upgrading to v0.10.0
    We are running on Dapr on AKS
    Nkosinathi Sangweni
    @malotho
    I have verified that we get this error only if we upgrade Dapr, but if we unisntall and reinstall the deployment works.
    2 replies
    Santiago Molina
    @smolina74
    hi, I'm trying to use uppercase middleware (middleware.http.uppercase) in an echo service example (from Learning Dapr book). I'm adding a pipeline.yaml file in the root of the project like this: