Activities of "Sturla"

Hi

We are having problems connecting SignalR to the public MVC page and are getting the following error

We have successfully been using SignalR for our Blazor WASM backend (hosted as static website in Azure) so we know all about how SignalR should work (or we thought at least).

We have been trying all kinds versions of CORS settings in HttpApi.Host without luck

This didn´t do anything (now we are just using app.UseCors())

  app.UseCors(x => x
           .AllowAnyMethod()
           .AllowAnyHeader()
           .SetIsOriginAllowed(origin => true)
           .AllowCredentials());

Is there a documentation or some other steps that we might be missing for for connecting with signalR in MVC public web app?

  • ABP Framework version: 7.0.2
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated: yes

Based on this https://support.abp.io/QA/Questions/4513/Gdpr-Module-Unauthorized-to-download-Personal-Data#answer-3a098ab9-16d8-036d-f117-06e18b42d998, @EngincanV I updated to 7.0.2 but this has not fixed my issue.

Is there anything I can try out?

CDN cache got flushed and Redis is up and running (flushed that also)

But I see in the log we are getting AuthenticationScheme: Bearer was challenged.

2023-02-20 15:31:39.976 +00:00 [INF] CORS policy execution successful.
2023-02-20 15:31:39.984 +00:00 [INF] Executing endpoint 'Volo.Abp.Gdpr.GdprRequestController.GetDownloadTokenAsync (Volo.Abp.Gdpr.HttpApi)'
2023-02-20 15:31:40.001 +00:00 [INF] Route matched with {controller = "GdprRequest", area = "gdpr", action = "GetDownloadToken", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Volo.Abp.Gdpr.DownloadTokenResultDto] GetDownloadTokenAsync(System.Guid) on controller Volo.Abp.Gdpr.GdprRequestController (Volo.Abp.Gdpr.HttpApi).
2023-02-20 15:31:40.142 +00:00 [INF] Request starting HTTP/1.1 GET https://myAPI.azurewebsites.net/api/app/financial/get-payment-host?FilterDateTime=2023-02-20T15%3A31%3A33.8560000Z&Sorting=&SkipCount=0&MaxResultCount=10&api-version=1.0 - -
2023-02-20 15:31:40.143 +00:00 [INF] CORS policy execution successful.
2023-02-20 15:31:40.144 +00:00 [INF] Executing endpoint 'BSR.Beinni.Controllers.Financials.FinancialController.GetHostToTenantPaymentInfo (BSR.Beinni.HttpApi)'
2023-02-20 15:31:40.144 +00:00 [INF] Route matched with {area = "app", controller = "Financial", action = "GetHostToTenantPaymentInfo", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Volo.Abp.Application.Dtos.PagedResultDto`1[BSR.Beinni.Financials.Dto.FinancialInfoWithTenantOutputDto]] GetHostToTenantPaymentInfo(BSR.Beinni.Financials.Dto.FinancialPagedAndSortedInputDto) on controller BSR.Beinni.Controllers.Financials.FinancialController (BSR.Beinni.HttpApi).
2023-02-20 15:31:40.174 +00:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Gdpr.DownloadTokenResultDto'.
2023-02-20 15:31:40.181 +00:00 [INF] Executed action Volo.Abp.Gdpr.GdprRequestController.GetDownloadTokenAsync (Volo.Abp.Gdpr.HttpApi) in 180.7125ms
2023-02-20 15:31:40.181 +00:00 [INF] Executed endpoint 'Volo.Abp.Gdpr.GdprRequestController.GetDownloadTokenAsync (Volo.Abp.Gdpr.HttpApi)'
2023-02-20 15:31:40.182 +00:00 [INF] Request finished HTTP/1.1 GET https://myAPI.azurewebsites.net/api/gdpr/requests/download-token?id=cc4b2bfc-8b1c-1f8c-60b7-3a077937f944&api-version=1.0 - - - 200 - application/json;+charset=utf-8 206.0568ms
2023-02-20 15:31:40.325 +00:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Application.Dtos.PagedResultDto`1[[BSR.Beinni.Financials.Dto.FinancialInfoWithTenantOutputDto, BSR.Beinni.Application.Contracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
2023-02-20 15:31:40.326 +00:00 [INF] Executed action BSR.Beinni.Controllers.Financials.FinancialController.GetHostToTenantPaymentInfo (BSR.Beinni.HttpApi) in 181.9332ms
2023-02-20 15:31:40.326 +00:00 [INF] Executed endpoint 'BSR.Beinni.Controllers.Financials.FinancialController.GetHostToTenantPaymentInfo (BSR.Beinni.HttpApi)'
2023-02-20 15:31:40.326 +00:00 [INF] Request finished HTTP/1.1 GET https://myAPI.azurewebsites.net/api/app/financial/get-payment-host?FilterDateTime=2023-02-20T15%3A31%3A33.8560000Z&Sorting=&SkipCount=0&MaxResultCount=10&api-version=1.0 - - - 200 - application/json;+charset=utf-8 183.6733ms
2023-02-20 15:31:40.442 +00:00 [INF] Request starting HTTP/1.1 GET https://myAPI.azurewebsites.net/api/gdpr/requests/data/cc4b2bfc-8b1c-1f8c-60b7-3a077937f944?token=574ac128-3118-4bad-bee4-1173002415da - -
2023-02-20 15:31:40.443 +00:00 [INF] Executing endpoint 'Volo.Abp.Gdpr.GdprRequestController.GetUserDataAsync (Volo.Abp.Gdpr.HttpApi)'
2023-02-20 15:31:40.462 +00:00 [INF] Route matched with {controller = "GdprRequest", area = "gdpr", action = "GetUserData", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Volo.Abp.Content.IRemoteStreamContent] GetUserDataAsync(System.Guid, System.String) on controller Volo.Abp.Gdpr.GdprRequestController (Volo.Abp.Gdpr.HttpApi).
2023-02-20 15:31:40.632 +00:00 [INF] AuthenticationScheme: Bearer was challenged.
2023-02-20 15:31:40.633 +00:00 [INF] Executed action Volo.Abp.Gdpr.GdprRequestController.GetUserDataAsync (Volo.Abp.Gdpr.HttpApi) in 171.1934ms
2023-02-20 15:31:40.633 +00:00 [INF] Executed endpoint 'Volo.Abp.Gdpr.GdprRequestController.GetUserDataAsync (Volo.Abp.Gdpr.HttpApi)'

I can't see any other relavant logs in the Auth service or in these API logs...

OK looks like this works fine locally

What could that mean? Everything else is working with authentication.. What can I check?

Hi we figured out that our Blazor WASM issue with this is still an issue (we are on 7.0.1 separte Identity)

https://support.abp.io/QA/Questions/4071/401-error-when-trying-to-download-GDPR-information

We still get a 401 error and have no idea what we need to do/add to gett it to work (if there is somethint we can do on our side).

Btw commenting here because our issue is locked..

First I´m trying to figure out if/how I can do this without loading files first into memory but if I get that to work it would be great to know if anybody has done anything like this here?

I found this good answer and I think this should be possible but I need to get a SAS token and enable Cross-Origin Resource Sharing (CORS) support for Azure Storage

Is this something that can be built into the current ABP.io Blob storage wrapper?

Before I begin I would like to have some validation on my approach.

I need to upload big files (+3GB) to Azure blob storage from Blazor WASM.

I did set this up so that the files are streamed through an API to the service where they are then moved from there to a blob storage. This is an extra step from just going directly to blob and takes space and resources from the server.

So my question is: can't I just us https://docs.abp.io/en/abp/7.0/Blob-Storing and go directly to blob? Are there any issues? Can I use this directly from Blazor WASM?

The reason I ask would be because of the Azure.Storage.Account.ConnectionString I would need to fetch somehow (API?) encrypted and decrypt when using.

And then I need to enable CORS to the blob (having trouble finding information on that)

Access to fetch at 'https://mystuff.blob.core.windows.net/0-event-poster-images?restype=container' from origin 'https://localhost:44307' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

  • ABP Framework version: v7.0.1
  • UI type: Blazor WASM
  • DB provider: EF Core
  • Identity Server Separated: yes

I created file new project (that will send you now) where I could reproduce this.

Just navigate between Dashboard and Users few times (3-5x rather fast (doesn´t have to be super fast) and you will see this error

Hi

Do you have a workaround for me or is this a bug and if so will it be fixed in 7.0.2.

Any news on this liangshiwei?

Should be super easy to test on your end and see it fail, that is if its not something else I’m doing wrong (and you can hopefully help me with)

Showing 1 to 10 of 137 entries
Made with ❤️ on ABP v8.3.0-preview Updated on July 05, 2024, 15:13