bohua / nprinting-sense-on-demand

NPrinting On-demand extension for Qlik Sense
MIT License
10 stars 13 forks source link

Any Logs for error's #20

Open sirpod opened 5 years ago

sirpod commented 5 years ago

Hello, thanks for this great extension. But I have a problem with one report.

The report and task works in NPrinting as expected, but if i press the button in QlikSense nothing happens. In the log I found following line: Qlik.NPrinting.WebEngine 18.19.6.0 Qlik.NPrinting.WebEngine.ExceptionHandling.GenericTextExceptionHandler 20181023T110856.506+02:00 ERROR SERVER USER 0 0 0 0 0 0 0 0 Unhandled exception in request:http://nprinting.domain.com:4996/api/v1/ondemand/requests.↓Exception:One or more errors occurred.

But no further informations. Is there any other log I can read or find out what kind of errors occur?

Thanks & regrads Tobias

bohua commented 5 years ago

Hi

It might be a front end (javascript error) preventing the action. Please turn on your web browser dev-tool (usually by pressing F12) and see if there’s any errors generated there.

Regards, //Bohua

On Oct 23, 2018, at 11:12 AM, sirpod notifications@github.com wrote:

Hello, thanks for this great extension. But I have a problem with one report.

The report and task works in NPrinting as expected, but if i press the button in QlikSense nothing happens. In the log I found following line: Qlik.NPrinting.WebEngine 18.19.6.0 Qlik.NPrinting.WebEngine.ExceptionHandling.GenericTextExceptionHandler 20181023T110856.506+02:00 ERROR SERVER USER 0 0 0 0 0 0 0 0 Unhandled exception in request:http://nprinting.domain.com:4996/api/v1/ondemand/requests.↓Exception:One or more errors occurred.

But no further informations. Is there any other log I can read or find out what kind of errors occur?

Thanks & regrads Tobias

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bohua/nprinting-sense-on-demand/issues/20, or mute the thread https://github.com/notifications/unsubscribe-auth/ADQoL6OhwiOmhbZAZGY-bh-PNnvxccyqks5unt2LgaJpZM4X1FZh.

sirpod commented 5 years ago

I get following errors in the console: POST https://nprinting.domain.com:4993/api/v1/ondemand/requests 500 (Internal Server Error) analysis:1 Failed to load https://nprinting.domain.com:4993/api/v1/ondemand/requests: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://qliksense.domain.com' is therefore not allowed access. The response had HTTP status code 500.

It seams like NPrinting can not authorize QlikSense. But in other QlikSense application the plugin works as expected. QlikSense is add in NPrinting as a trusted origin and the certificates from QlikSense and NPrinting are signed by the same CA.