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

Feature Request: Add error details to 500 errors #413

Open
ravensorb opened this issue Dec 8, 2015 · 9 comments
Open

Feature Request: Add error details to 500 errors #413

ravensorb opened this issue Dec 8, 2015 · 9 comments

Comments

@ravensorb
Copy link
Contributor

It appears that almost all 500 errors do not provide any detail to track down what caused the error. There is nothing in the HTTP resource and there is nothing in any of the log files.

Request -- all 500 errors should at the very least provide a full stack trace and message in the structr log files.

@amorgner amorgner changed the title Bug: 500 errors do not contain any detail in responce or log file Feature Request: Add error details to 500 errors Dec 10, 2015
@amorgner
Copy link
Member

Hm, I see your point, but it's not a bug, rather a feature request.

@eric-schleicher
Copy link
Contributor

+1

I too find this challenging

@ravensorb
Copy link
Contributor Author

Any update to this?

@eric-schleicher
Copy link
Contributor

eric-schleicher commented Apr 16, 2016

+ 10 The visibility of error/event logging is a significant drag on our ability to use some of the more powerful capabilities of structr.

I find myself avoiding StructrScript almost in it's entirety since it's impossible to tell what goes on inside the box. worse yet... when there are issues, the service will provide 200/201 responses, when in actuality unvalidatable (underlying) errors and DML in the meta layer falls on the floor (e.g. inside function attributes, methods) .

@amorgner
Copy link
Member

We'll add a lot more logging for the server-side scripting soon.

@vigorouscoding
Copy link
Member

vigorouscoding commented Apr 20, 2016

We just added lots of logging to StructrScript functions (see 6be7320) and made a lot of those functions a bit more strict.

You will see a lot more log entries for wrong parameters and for caught exceptions in structrscript functions. You can test this for example by writing ${inc_counter('test')} which will result in error output because counters need to be numeric.

@ravensorb
Copy link
Contributor Author

Is there an update to the logging for server side issues as well?

@amorgner
Copy link
Member

It's all about server-side logging (StructrScript and JavaScript are executed on the server).

@ravensorb
Copy link
Contributor Author

Excellent. How about the REST interface and 500 errors - has any improvement been made there to include more details?

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

No branches or pull requests

4 participants