Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Poor/non-descriptive error messages when script log retrieval fails #551

Closed
mountaindude opened this issue Sep 29, 2022 · 0 comments · Fixed by #553
Closed

Poor/non-descriptive error messages when script log retrieval fails #551

mountaindude opened this issue Sep 29, 2022 · 0 comments · Fixed by #553
Assignees
Milestone

Comments

@mountaindude
Copy link
Collaborator

If retrieving a script log fails a very generic message is shown:

2022-08-29T02:05:09.649Z error: SCRIPTLOG ERROR: AxiosError: Request failed with status code 500

There is however more info available in the error object that is passed into the exception handler.
Exposing it via log error messages will make it clearer what caused the error:

2022-08-29T02:05:09.649Z error: SCRIPTLOG ERROR: AxiosError: Request failed with status code 500
2022-08-29T02:05:09.649Z error: SCRIPTLOG ERROR: Could not find file 'C:\Users\qlikservice\AppData\Local\Temp\ba0d33e5-de1b-41f7-b366-07ed49c47f4d.log'.

This extra info is available in the response.data part of the object that's passed into the exception handler that wraps the call to the Sense API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant