Error handling? No message in browser console

Stimulsoft Reports.JS discussion
grbspltt
Posts: 25
Joined: Fri Apr 28, 2017 2:50 pm

Error handling? No message in browser console

Post by grbspltt »

I am loading a report from a string into the designer in the browser. Everything works perfectly in development on localhost. When I deploy to production the same exact report loads into the designer and the designer shows a window with an unhelpful message "Error!" with nothing in the console. Is there a way to add error handling to capture the error or somehow display more information about an error? Like I said it works perfectly on local so I'm not sure if a sample project would be helpful.
Lech Kulikowski
Posts: 6238
Joined: Tue Mar 20, 2018 5:34 am

Re: Error handling? No message in browser console

Post by Lech Kulikowski »

Hello,

Please send us your report for analysis.
Also, please try to check the browser console.

Thank you.
grbspltt
Posts: 25
Joined: Fri Apr 28, 2017 2:50 pm

Re: Error handling? No message in browser console

Post by grbspltt »

There is no message in browser console. I attached the project. Be aware that it works perfectly on local.
Attachments
designer-demo.zip
(357.62 KiB) Downloaded 111 times
Lech Kulikowski
Posts: 6238
Joined: Tue Mar 20, 2018 5:34 am

Re: Error handling? No message in browser console

Post by Lech Kulikowski »

Hello,

We apologize for the delay, but we need some extra time to investigate the issue thoroughly. We will keep you informed about the result as soon as possible.

Thank you for your patience.
grbspltt
Posts: 25
Joined: Fri Apr 28, 2017 2:50 pm

Re: Error handling? No message in browser console

Post by grbspltt »

I appreciate your efforts. Thank you.
grbspltt
Posts: 25
Joined: Fri Apr 28, 2017 2:50 pm

Re: Error handling? No message in browser console

Post by grbspltt »

Any updates? I published the demo to a host for your pleasure. http://stim-report-demo.surge.sh/
Lech Kulikowski
Posts: 6238
Joined: Tue Mar 20, 2018 5:34 am

Re: Error handling? No message in browser console

Post by Lech Kulikowski »

Hello,

We apologize for the delay, but we couldn't run sent project.
Please check your report on our sample and let us know about the result:
https://github.com/stimulsoft/Samples-J ... ster/React

Thank you.
grbspltt
Posts: 25
Joined: Fri Apr 28, 2017 2:50 pm

Re: Error handling? No message in browser console

Post by grbspltt »

Anything in particular you couldn't run? I installed and tested and ran fine on my end before I sent to you. The link you sent shows a bump in version number. Is there anything in the version update that would address my issue? Is there any way to add error handling to the designer?
grbspltt
Posts: 25
Joined: Fri Apr 28, 2017 2:50 pm

Re: Error handling? No message in browser console

Post by grbspltt »

The updated version of your report library has no effect on the production deployment. Still works perfectly on local. Would be easier to fix if there was a way to add error handling to the designer over the "Error!" message.
Lech Kulikowski
Posts: 6238
Joined: Tue Mar 20, 2018 5:34 am

Re: Error handling? No message in browser console

Post by Lech Kulikowski »

Hello,

Please try to change the package.json file:

Code: Select all

"browserslist": {
    "production": [
      "> 1% and not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  }
Thank you.
Post Reply