Hi guys, thanks for the answers.
No Liang, I don't think I need to add a new MicroService (I might be wrong), as gterdem mentioned I want to add an application (Like Auth server is, just as example).
All I can find with "public-web application" is the docs is a nuget package, can you guys send me a link to this? I would really appreciate it.
Thanks!
Hey guys,
I need to add a new MVC project to a microservice based solution, however I can't find a way to add it with the CLI, and the suite doesn't allow me to add the microservice solution. (I am basically adding it since I added ELSA using Razor for the dashboard to my microservice based solution)
Is there a way for me to add this so it uses ABP roles and all the other things that the microservice uses? (For example, create an ELSA role and only that role be allowed to check my ELSA implementation)
Thanks for the help.
Hi Liang, I was able to fix the issue, it was related with the Ocelot configuration.
I have another small quesiton here, I send a chat to another user but I don't see the icon changing to notify that he has unread messages, is this a known issue?
Hey, thanks for the answer.
I added what you mentioned to our Chat Service, however I have some questions:
1- When starting the websocket for the chat service we are having issue here:
We enabled the websocket for Ocelot too as we were having an issue connecting to the websocket and this was not mention on the tutorial of the page.
Is there something we need to specify or something for the web sockets on this module?
2- Even though we added the module and the previous steps you mention, I don't see the contacts loading on the left side. Debugging it also fails when bringing the Users from the Administration mode, I created another use just to check if in any of the methods on the GetContactsAsync to get contacts/users work but they return object reference or a 0.
_conversationRepository.GetListByUserIdAsync always returns 0,
_chatUserLookupService.SearchAsync throws an error.
"System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=Volo.Abp.IdentityModel
StackTrace:
at Volo.Abp.IdentityModel.IdentityModelAuthenticationService.<GetAccessTokenAsync>d__32.MoveNext()
at Volo.Abp.IdentityModel.IdentityModelAuthenticationService.<GetAccessTokenOrNullAsync>d__31.MoveNext()
at Volo.Abp.IdentityModel.IdentityModelAuthenticationService.<TryAuthenticateAsync>d__30.MoveNext()
at Volo.Abp.Http.Client.IdentityModel.IdentityModelRemoteServiceHttpClientAuthenticator.<Authenticate>d__4.MoveNext()
at Volo.Abp.Http.Client.IdentityModel.Web.HttpContextIdentityModelRemoteServiceHttpClientAuthenticator.<Authenticate>d__5.MoveNext()
at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase1.<RequestAsync>d__34.MoveNext() at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase
1.<RequestAsync>d__331.MoveNext() at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase
1.<RequestAsync>d__311.MoveNext() at Volo.Abp.Identity.IdentityUserLookupClientProxy.<SearchAsync>d__2.MoveNext() at Volo.Abp.Identity.HttpClientExternalUserLookupServiceProvider.<SearchAsync>d__6.MoveNext() at Volo.Abp.Users.UserLookupService
2.<SearchAsync>d__17.MoveNext()
at Volo.Chat.Users.ContactAppService.<GetContactsAsync>d__3.MoveNext() in C:\Juvenal\NVC\code\testChat\services\FGChat\modules\Volo.Chat\src\Volo.Chat.Application\Volo\Chat\Users\ContactAppService.cs:line 44
This exception was originally thrown at this call stack: [External Code] Volo.Chat.Users.ContactAppService.GetContactsAsync(Volo.Chat.Users.GetContactsInput) in ContactAppService.cs"
Is it possible for you guys to send me a working example of a chat service for a microservice solution? Just so I can compare and modify what ever I find as difference with my project.
Hey guys, we are trying to implement the Chat Module for a Microservice based template. We added a new microservice and added the Chat module on this new microservice, however we are having the following issue:
ABP Framework version: v7.2.2
UI type: Angular
DB provider: EF Core
** Identity Server Separated (Angular): yes
Exception message and stack trace:
System.InvalidCastException: 'Unable to cast object of type 'Volo.Chat.Users.ChatUser' to type 'Volo.Abp.Users.IUserData'.'
System.InvalidCastException
HResult=0x80004002
Message=Unable to cast object of type 'Volo.Chat.Users.ChatUser' to type 'Volo.Abp.Users.IUserData'.
Source=System.Linq
StackTrace:
at System.Linq.Enumerable.<CastIterator>d__671.MoveNext() at System.Collections.Generic.List
1..ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable
1 source)
at Volo.Abp.Users.UserLookupService`2.
This exception was originally thrown at this call stack: [External Code] Volo.Chat.Users.ContactAppService.GetContactsAsync(Volo.Chat.Users.GetContactsInput) in ContactAppService.cs
Steps to reproduce the issue:"
We followed the guide https://docs.abp.io/en/commercial/latest/modules/chat
We are able to see the Chat module on the Angular, however when we click on the "start conversation" we get a 503 error. When debugging this method:
public virtual async Task<List
if (input.IncludeOtherContacts)
{
var lookupUsers = await _chatUserLookupService.SearchAsync(
nameof(ChatUser.UserName),
input.Filter,
maxResultCount: ChatConsts.OtherContactLimitPerRequest);
var lookupContacts = lookupUsers
.Where(x => !(conversationContacts.Any(c => c.Username == x.UserName) || x.Id == CurrentUser.GetId()))
.Select(x => new ChatContactDto
{
UserId = x.Id,
Name = x.Name,
Surname = x.Surname,
Username = x.UserName
});
conversationContacts.AddRange(lookupContacts);
}
return conversationContacts;
}