The issue is back. Please refer the issue and you will understand what I am asking.
This probably happened with the latest update of Abp Studio.
In Brief I have 2 mciroservice and when i try to generate proxy for one microservice it errors out stating the other microservice
angular>abp generate-proxy -t ng -url http://localhost:44319 -m artificialintelligence
[19:50:38 INF] You are running the second generation of the ABP CLI. If you're interested in the legacy CLI, see https://abp.io/new-cli
[19:50:39 WRN] "@abp/ng.schematics" version is lower than ABP Cli version.
[Invalid Module] Backend module "document" does not exist in API definition.
Thank You for finding this out.
I have sent out an email , i was able to resolve the issue of publishing events, the only issue is now the other microservice is unable to listen to the event. Everything checks out fine with RabbitMQ in term sof connection and configuration.
I am using the Microservice Template to build. And I am using the latest version.
Issue #1 : When I try to publish a a Distributed Event from a Domain Sevice
public class DocumentEventPublisher : DomainService
private readonly IDistributedEventBus _eventBus;
public DocumentEventPublisher(IDistributedEventBus eventBus)
{
_eventBus = eventBus;
}
public async Task PublishSucceededAsync(AnalyzeOperationSucceededEventEto input)
{
await _eventBus.PublishAsync(input);
}
The event doesn't publish meaning I try to log using DistributedEventSentHandler and I don't get a hit. However I could see an entry in Outbox table
But if I use a background job and try to publish it works fine.
What are the things I should look for to be able to publish without the need of a background job.
Issue #2 : I am unable to listen to the even from a different microservice. I did everything that was required , e.g. I create a similar Eto in the mciroservice and made sure the event name is correc. Something like the below :
public class DocumentAnalyzedEventHandler : IDistributedEventHandler<AnalyzeOperationSucceededEventEto>,ITransientDependency
I didn't want to write the whole code but i hope this should be enough to help you understand my issue
Why are you guys locking out the post so early. You should keep it at aleast 2 weeks. I was out fo station so couldn't find a chance to look at it. Your response :
Weโre currently working on a fix, which will be included in the upcoming release. In the meantime, I can share the updated file that resolves the issue directly with you via drive. https://drive.google.com/drive/folders/1MHQSeIa6rOw4rAcXAnq11U2XLfFYjTc5?usp=drive_link. If you replace the .suite folder under your angular app directory, you will be able to work around the issue.
We appreciate your patience and cooperation as we work to improve the experience. Let us know if you have any further questions!
I want to understand where exactly i need to put this as I don't see any .suite folder in my angular app directory. Please provide clear screenshots and let me know
In the previous issue the user was able to solve his problem and in my case I clearly laid out the issue. I am not sure if the previous user was using Abp suite and proxy together or how he was able to solve.
I am NOT able to solve the problem, I am stuck and unable to to proceed. I expect you guys to reproduce the issue at your end and provide a way forward.
I use Abp suite to create crud pages, then write some services and trying to generate a proxy.
Any updates ?
I am having the exact same issue as https://abp.io/support/questions/9043/Angular-proxy-generation-error
This is the first time I am using the command line to generate proxy and having the same issue as mentioned above.
I did see the proxy generation file has a different service name as that of RemoteServiceConsts .
e.g. in the Proxy Generated by Abp Suite have documentService as the module name where as in the RemoteServiceConsts file the service name is document.
I deleted the proxy generated json file and was able to create the proxies, but the problem is lot of files are getting created outside the controller folder which is causing major issues.
So the file generation through command line and AbpSuite are different which is causing the issue.
Please provide a solution.
Thank You @maliming. My whole issue was around the fact that options.AutoEventSelectors.AddAll(); is causing the issue.
I tested with explicit entity names and it works.
Do we know why it doesn't work, is it a bug that needs to be fixed ?
If someone would have tested when I reported this, we wouldn't have spent time going back and forth on this issue.
I am an user from the early days of ASPNET Zero and have been using your products since the beginning of time.As your company is growing the quality and time of resolution is going downhill and its causing massive issue for users like me who have to wait for 10 days to get an answer. The same or worse happened to me when I reported an issue about proxy generation in Angular and it turned out of you have a project name with 2 consecutive caps block it breaks it.
I hope you take this to your seniors and share this feedback.
@maliming There is no improvement. I am also now not able to catch the exception or see it in AbpStudio. The things you asked me to try is to basically control the flow of event into the outbox. When I upload a file I see several messages going into outbox and getting deleted , I assume that's behaviour is normal, buit not sure why so many similar events gets inserted.
BUT the problem is the transaction or file upload is never a success.
I have been going back and forth on this issue as well this has been my experience off late with the support. I gave my entire code base and I am not doing anything different that you or your team couldn't do it to replicate the issue. I am always been asked to try it from my end, but it would be very helpful and fast if you guys can create a new microservice solution and just add a single line of code to enable the feature and test it. Literally it doesn't take more than 10-15 mins for someone at your end to test and clarify if its working at your end. This issue is open since last 10 days. I need a better and faster resolution to my problems.