Server Error 500 on viewing reports when not using FQDN

95 views
Skip to first unread message

David

unread,
May 16, 2013, 12:01:38 PM5/16/13
to bots...@googlegroups.com
If for example if my bots server (windows) was called bots in a domain mydomain.local

If I go to http://bots:8080 and from "All Runs" -> "Report (per run)" and then selecting any of the options on any run I get the following error

Log in 
Server Error (500)

        Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django\core\handlers\base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "C:\Python27\lib\site-packages\django\contrib\auth\decorators.py", line 20, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "C:\Python27\lib\site-packages\bots\views.py", line 62, in reports
    request.POST = viewlib.preparereport2view(request.POST,int(request.POST['report2process']))
ValueError: invalid literal for int() with base 10: 'View process errors'

webserver.log contains:

20130516 16:44:35 INFO     : Run bots-engine with parameters: "['C:\\Python27\\python.exe', 'C:\\Python27\\Scripts\\bots-engine.py', u'--new']"
20130516 16:44:40 INFO     : Ran into server error: "Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django\core\handlers\base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "C:\Python27\lib\site-packages\django\contrib\auth\decorators.py", line 20, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "C:\Python27\lib\site-packages\bots\views.py", line 62, in reports
    request.POST = viewlib.preparereport2view(request.POST,int(request.POST['report2process']))
ValueError: invalid literal for int() with base 10: 'View process errors'
"
20130516 16:48:20 INFO     : Ran into server error: "Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django\core\handlers\base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "C:\Python27\lib\site-packages\django\contrib\auth\decorators.py", line 20, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "C:\Python27\lib\site-packages\bots\views.py", line 62, in reports
    request.POST = viewlib.preparereport2view(request.POST,int(request.POST['report2process']))
ValueError: invalid literal for int() with base 10: 'View process errors'
"
20130516 16:49:35 INFO     : Ran into server error: "Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django\core\handlers\base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "C:\Python27\lib\site-packages\django\contrib\auth\decorators.py", line 20, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "C:\Python27\lib\site-packages\bots\views.py", line 56, in reports
    request.POST = viewlib.preparereport2view(request.POST,int(request.POST['report2incoming']))
ValueError: invalid literal for int() with base 10: 'View incoming'
"
20130516 16:49:38 INFO     : Ran into server error: "Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django\core\handlers\base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "C:\Python27\lib\site-packages\django\contrib\auth\decorators.py", line 20, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "C:\Python27\lib\site-packages\bots\views.py", line 59, in reports
    request.POST = viewlib.preparereport2view(request.POST,int(request.POST['report2outgoing']))
ValueError: invalid literal for int() with base 10: 'View outgoing'
"
20130516 16:49:42 INFO     : Ran into server error: "Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django\core\handlers\base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "C:\Python27\lib\site-packages\django\contrib\auth\decorators.py", line 20, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "C:\Python27\lib\site-packages\bots\views.py", line 65, in reports
    newpost = viewlib.preparereport2view(request.POST,int(request.POST['report2errors']))
ValueError: invalid literal for int() with base 10: 'View file errors'

If I use the FQDN (eg in this example http://bots.mydomain.local:8080) it doesn't do it and works perfectly.

Bug or config error?

It's not a biggie and with an easy workround but just in case anyone else runs into it and puzzles over it for a bit (like I did) I thought I'd post it. :)

Regards

David

henk-jan ebbers

unread,
May 16, 2013, 12:14:10 PM5/16/13
to bots...@googlegroups.com
what browser are you using?

henk-jan
> --
> You received this message because you are subscribed to the Google Groups "Bots Open Source EDI Translator" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to botsmail+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

PGMEUP

unread,
May 2, 2014, 2:44:41 AM5/2/14
to bots...@googlegroups.com

Dear Henk-Jan,

I have the same issue. I am using Internet Explorer without JavaScript. Might that be the issue?

This is the webserver.log :

20140502 08:10:50 STARTINFO: Bots web-server started.
20140502 08:10:50 STARTINFO: Bots web-server configdir: "c:\python27\lib\site-packages\bots\config-RIE".
20140502 08:10:50 STARTINFO: Bots web-server serving at port: "8080".
20140502 08:10:50 STARTINFO: Bots web-server uses plain http (no ssl).
20140502 08:11:39 INFO : Ran into server error: "Traceback (most recent call last):
File "c:\python27\lib\site-packages\django\core\handlers\base.py", line 111, in get_response


response = callback(request, *callback_args, **callback_kwargs)

File "c:\python27\lib\site-packages\django\contrib\auth\decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File "c:\python27\lib\site-packages\bots\views.py", line 54, in reports


request.POST = viewlib.preparereport2view(request.POST,int(request.POST['report2incoming']))
ValueError: invalid literal for int() with base 10: 'View incoming'
"

20140502 08:12:13 INFO : Ran into server error: "Traceback (most recent call last):
File "c:\python27\lib\site-packages\django\core\handlers\base.py", line 111, in get_response


response = callback(request, *callback_args, **callback_kwargs)

File "c:\python27\lib\site-packages\django\contrib\auth\decorators.py", line 23, in _wrapped_view
return view_func(request, *args, **kwargs)
File "c:\python27\lib\site-packages\bots\views.py", line 60, in reports


request.POST = viewlib.preparereport2view(request.POST,int(request.POST['report2process']))
ValueError: invalid literal for int() with base 10: 'View process errors'
"


Regards,

Dominik

henk-jan ebbers

unread,
May 2, 2014, 6:09:07 AM5/2/14
to bots...@googlegroups.com
hi Dominik,

this is issue 302
Think I found what the issue was and sloved it:
see https://code.google.com/p/bots/source/detail?r=0bc6e16700fcb39eaefb6410b84834f9a087e0a9

kind regards,
henk-jan
For more options, visit https://groups.google.com/d/optout.

PGMEUP

unread,
Jun 17, 2014, 3:04:46 AM6/17/14
to bots...@googlegroups.com
Hello Henk-Jan,

I just wanted to give feedback about this. I was able to implement these changes (current version on that servers is 2.2), but the error is still there.
After I installed a different browser than Internet Explorer, it worked.

Regards,
Dominik Müller

henk-jan ebbers

unread,
Jun 19, 2014, 10:19:17 AM6/19/14
to bots...@googlegroups.com
hi Dominik,

I will check this here.

thank,
henk-jan

henk-jan ebbers

unread,
Jun 23, 2014, 9:31:43 AM6/23/14
to bots...@googlegroups.com
hi Dominik,

you are right.
(thought I fixed a bug that causes this. I fixed a bug in the html, but this problem is still there).

this has to do with the compatibility-settings of IE (tools->compatibility view settings): Websites that were designed for earlier versions of Internet Explorer might not display correctly in IE8, IE9, or IE10. When you turn on Compatibility View, the webpage you're viewing, as well as any other webpages within the website's domain, will be displayed as if you were using an earlier version of Internet Explorer.

So: if the compatibility view is used this error occurs, else it goes OK.

kind regards,

henk-jan

 
On 06/17/2014 09:04 AM, PGMEUP wrote:
Reply all
Reply to author
Forward
0 new messages