|
| Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more. |
|
|||||||
| View Poll Results: Do you use Python on a powweb hosted site? | |||
| Always |
|
1 | 33.33% |
| Sometimes |
|
1 | 33.33% |
| Not yet |
|
0 | 0% |
| Never will |
|
1 | 33.33% |
| Voters: 3. You may not vote on this poll | |||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Registered
Join Date: Sep 2009
Location: Oakley, CA
Posts: 7
Reputation: 0
|
Python Error Reporting
I am trying to get errors from my python script without any luck. It just dies and reports
"The server encountered an unexpected condition which prevented it from fulfilling the request. The script had an error or it did not produce any output. If there was an error, you should be able to see it in the error log. " If I send the content type headers in advance it seems to just die quietly. UPDATE: I thought I would add this comment here in case someone else or me finds it again wondering how to print python errors. PHP Code:
|
|
|
|
|
|
#2 |
|
Join Date: Nov 2002
Location: Solomons Island
Posts: 3,119
Reputation: 318
|
You can check script error logs in OPS - CGI Error Logs
__________________
-bruce /* somdcomputerguy */ 'If you change the way you look at things, the things you look at change.' |
|
|
|
|
|
#3 |
|
Registered
Join Date: Sep 2009
Location: Oakley, CA
Posts: 7
Reputation: 0
|
neat, thanks! how did you find this?
short of having shell access and running tail on the actual log, this is divine. btw, do you happen to know where this log is located? |
|
|
|
|
|
#4 |
|
Registered
Join Date: Sep 2009
Location: Oakley, CA
Posts: 7
Reputation: 0
|
yes. this rocks. thanks.
|
|
|
|
|
|
#5 |
|
Thinkin' out loud again
Join Date: Nov 2002
Location: Illinois
Posts: 1,845
Reputation: 262
|
In your /stats/ folder, same level as htdocs. cgi_error_log is the file name (no extension) and can be viewed in a text editor.
Good luck! Kevin
__________________
A good friend will come and bail you out of jail... but a true friend will be sitting next to you saying, "Damn... that was fun!" |
|
|
|
![]() |
| Thread Tools | |
|
|