Recently, we have upgraded to abp.io 5.3.2 and found that ITenantAppService CreateAsync is broken. Earlier with 5.2.1, it would create database and apply migration successfully.
did you change its behavior ? if yes, How do I accomplish the same now?
Regards, Pravin Raijade.
Dear Support,
**Its little urgent. appreciate your quick turnaround. ** Regards, Pravin Raijade.
Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.
If you're creating a bug/problem report, please include followings:
Hi Support,
Facing issues while calling API deployed on remote server from react-native client. After deploying Web Application on remote cloud VM (running Windows Server ), API calls are failing from react native client. However, they are working when called from swagger.
Getting user Token successfully with below code, var token; await axiosInstance({ method: 'POST', url: '/connect/token', headers: {'Content-Type': 'application/x-www-form-urlencoded'}, data: `grant_type=password&scope=${oAuthConfig.scope}&username=${localUserName}&password=${localPassword}&client_id=${oAuthConfig.clientId}&client_secret=${oAuthConfig.clientSecret}&__tenant=${localTenantId}`, baseURL: oAuthConfig.issuer, }) .then(({data}) => { token = data; console.log('Token from Get Tenant ID Success'); }) .catch(error => { console.log('token from get Tenant Id failed'); Alert.alert('Error', 'Getting Token Failed for Tenant-Id '); });
Below request to get Tenant by name failing,
await axiosInstance({ method: 'GET', baseURL: oAuthConfig.issuer, url: `/api/abp/multi-tenancy/tenants/by-name/${localTenantName}`, headers: { 'Content-Type': 'application/json', __tenant: `${localTenantId}`, Authorization: `${token.token_type} ${token.access_token}`, }, })
localTenantId is '' (null) for host.
Note: a) It works when running on local machine with IIS express in development environment. Mobile App is able to call API successfully.
Appreciate quick turnaround. we have demo to senior management.
Regards, Pravin Raijade.
using (CurrentTenant.Change(tenantId))
{
Guid tmp = CurrentTenant.GetId(); // this line is just to check whether tenant switched properly
await _XXXXAppService.CreateAsync(MyEntityDto);
return NoContent();
}
getting correct tenant ID in using statement.
Note : I am using separate DB per tenant. appreciate your help.
Getting following error :
Failed to load resource: the server responded with a status of 500 () [https://192.168.254.51:44346/XXXXs/CreateModal]
Remember, I have separate DB per Tenant.
Need solution on URGENT basis.
Appreciate your help.
Hi Support,
I am developing mobile app using react native and wants to connect to Tenant DB (separate DB per Tenant) and get given Users Roles details. But, I don't see API accepting Tenant Identification. This is little urgent. Please help.