You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.
DaprExtension is not working with newly released version of Dapr (0.8.0).
To Reproduce
Clone the tye repository and go to tye\samples\dapr\
cd .\samples\dapr\
Update Dapr.AspNetCore package for all project (order, products, store) to 0.8.1
Reassure that you are using the 0.8.1 runtime version of dapr.
dapr --version
// and upgrade if is necessary
dapr uninstall --all
dapr init --runtime-version 0.8.0
Run tye and open dashboard page
tye run --dashboard
In opened dashboard find the store binding address and open it. after clicking any buy button you will get following error:
In dashboard everything seems to be alright, but if you go to log details page of one dapr proxy service like "store-dapr" you will find following warning:
Further technical details
After some investigations I found following problem:
According to one of the latest changes (dapr/dapr@8f91634) in Dapr 0.8.0, if --components-path option is not provided, then $HOME/.dapr/component in Linux/MacOS and %USERPROFILE%.dapr\components for Windows will be selected to used as the default components path instead of "./components". But in DaprExtension there is no possibility to provide -components-path in tye.yaml file. (like config or log-level)
Since the new release of Dapr will automatically create %UserProfile%\.dapr\components folder. Therefore, we can work around by copying pubsub.yaml and statestore.yaml to this location.
I think supporting the components via the extension is fine. @mtaghavi2005 feel free to submit a PR.
I'd think tye shouldn't take an opinion on the components folder though, it should use the default based on the version of dapr used.
True, I 'd think the same, but it can just give a chance (providing option via extension) to configure it otherwise won't change the default behavior for dapr.
Describe the bug
DaprExtension is not working with newly released version of Dapr (0.8.0).
To Reproduce
tye run --dashboard
Further technical details
After some investigations I found following problem:
According to one of the latest changes (dapr/dapr@8f91634) in Dapr 0.8.0, if --components-path option is not provided, then $HOME/.dapr/component in Linux/MacOS and %USERPROFILE%.dapr\components for Windows will be selected to used as the default components path instead of "./components". But in DaprExtension there is no possibility to provide -components-path in tye.yaml file. (like config or log-level)
The text was updated successfully, but these errors were encountered: