Blazor designer doesn't store headers for JSON connections

Stimulsoft Reports.BLAZOR discussion
Post Reply
InnoM
Posts: 7
Joined: Fri Sep 29, 2023 12:41 pm

Blazor designer doesn't store headers for JSON connections

Post by InnoM »

When using the Blazor/WASM Stimulsoft libraries, I load a report that has a JSON connection with headers specified (Auth/Bearer for dev)

However, when loading the report, the headers aren't visible at all in the designer, and I receive an error message when testing locally.

This can be reporoduced in the demo designer, see attached.

Go to https://designer.stimulsoft.com/, create a new report or dashboard, add a json data source, I use the nuget api https://api.nuget.org/v3/index.json to test.
Add a header in the headers, and add/save the data source.
Go back to edit the data source, open the headers, and the list is blank.

When testing locally, the json datasource doesn't work at all.

Are the headers not supported for Blazor?
Attachments
Capture.PNG
Capture.PNG (38.53 KiB) Viewed 4119 times
Max Shamanov
Posts: 850
Joined: Tue Sep 07, 2021 10:11 am

Re: Blazor designer doesn't store headers for JSON connections

Post by Max Shamanov »

Hello,

We require more time to investigate the issue thoroughly.
We will let you know when we get any result.

Thank you.
Max Shamanov
Posts: 850
Joined: Tue Sep 07, 2021 10:11 am

Re: Blazor designer doesn't store headers for JSON connections

Post by Max Shamanov »

Hello,
Go to https://designer.stimulsoft.com/, create a new report or dashboard, add a json data source, I use the nuget api https://api.nuget.org/v3/index.json to test.
Add a header in the headers, and add/save the data source.
Go back to edit the data source, open the headers, and the list is blank.
We have reproduced the issue and need some time to make an improvement.
We will let you know when we get any results.
However, when loading the report, the headers aren't visible at all in the designer, and I receive an error message when testing locally.
When testing locally, the json datasource doesn't work at all.
Are the headers not supported for Blazor?
Could you please explain your issue in more detail?

Thank you.
InnoM
Posts: 7
Joined: Fri Sep 29, 2023 12:41 pm

Re: Blazor designer doesn't store headers for JSON connections

Post by InnoM »

Hi Max,

Apologies for the delay, hectic week and I lost track of this.

The message is attached as a screenshot.

To reproduce, I created a project in ASP.NET Blazor using webassembly (standalone), added the StiBlazorDesigner control, loaded a sample report with a JSON source with the same test header in it.
The message appears when I right-click -> "View Data" on the Json Data source.

Kind Regards
Attachments
Capture.PNG
Capture.PNG (80.84 KiB) Viewed 3734 times
Max Shamanov
Posts: 850
Joined: Tue Sep 07, 2021 10:11 am

Re: Blazor designer doesn't store headers for JSON connections

Post by Max Shamanov »

Hello,
Go to https://designer.stimulsoft.com/, create a new report or dashboard, add a json data source, I use the nuget api https://api.nuget.org/v3/index.json to test.
Add a header in the headers, and add/save the data source.
Go back to edit the data source, open the headers, and the list is blank.
We have made an improvement.
Please, check your issue and let us know about the result.
To reproduce, I created a project in ASP.NET Blazor using webassembly (standalone), added the StiBlazorDesigner control, loaded a sample report with a JSON source with the same test header in it.
The message appears when I right-click -> "View Data" on the Json Data source.
We have reproduced the issue and need some time to make an improvement.
We will let you know when we get any results.

Thank you.
#15047
InnoM
Posts: 7
Joined: Fri Sep 29, 2023 12:41 pm

Re: Blazor designer doesn't store headers for JSON connections

Post by InnoM »

Hi Max,

That works great now! Haven't tested in my project yet, just the one at designer.stimulsoft.com, but the disappearing headers are definitely all appearing now.
Thanks also for looking into my other issue

Kind Regards
Max Shamanov
Posts: 850
Joined: Tue Sep 07, 2021 10:11 am

Re: Blazor designer doesn't store headers for JSON connections

Post by Max Shamanov »

Hello,

Ok.
We let you know about the results of a problem in the Blazor designer.

Thank you
Post Reply