First time here? Check out the FAQ!

Revision history  [back]

The 'API' does not work on our site - it results in errors. How can this be fixed?

I tried to use the 'API' as described by this page:

http://askbot.org/doc/api.html#api-v1-questions

Unfortunately the only 'API' url that works is: /api/v1/info/

The others result in emails being sent with content similar to the following:

ERROR (EXTERNAL IP): Internal Server Error: /api/v1/questions/

Traceback (most recent call last):

  File "C:\Python27\lib\site-packages\django\core\handlers\base.py", line 115, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File ".\askbot\views\api_v1.py", line 190, in questions
    datum = get_question_data(thread)

  File ".\askbot\views\api_v1.py", line 31, in get_question_data
    'added_at': thread.added_at.strftime('%s'),

ValueError: Invalid format string

Is this a known bug and how can we fix it? I am assuming this is something in the py file that is failing based on the error message

When I comment out the line that has the strftime and then retry the 'API' url, I get another error:

Server Error

500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.

It does not appear to me that this ever worked. How can this be fixed?

The 'API' does not work on our site - it results in errors. How can this be fixed?

I tried to use the 'API' as described by this page:

http://askbot.org/doc/api.html#api-v1-questions

Unfortunately the only 'API' url that works is: /api/v1/info/

The others result in emails being sent with content similar to the following:

ERROR (EXTERNAL IP): Internal Server Error: /api/v1/questions/

Traceback (most recent call last):

  File "C:\Python27\lib\site-packages\django\core\handlers\base.py", line 115, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File ".\askbot\views\api_v1.py", line 190, in questions
    datum = get_question_data(thread)

  File ".\askbot\views\api_v1.py", line 31, in get_question_data
    'added_at': thread.added_at.strftime('%s'),

ValueError: Invalid format string

Is this a known bug and how can we fix it? I am assuming this is something in the py file that is failing based on the error message

When I comment out the line that has the strftime and then retry the 'API' url, I get another error:

Server Error

500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.

It does not appear to me that this ever worked. How can this be fixed?

The 'API' does not work on our site - it results in errors. How can this be fixed?

I tried to use the 'API' as described by this page:

http://askbot.org/doc/api.html#api-v1-questions

Unfortunately the only 'API' url that works is: /api/v1/info/

The others result in emails being sent with content similar to the following:

ERROR (EXTERNAL IP): Internal Server Error: /api/v1/questions/

Traceback (most recent call last):

  File "C:\Python27\lib\site-packages\django\core\handlers\base.py", line 115, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File ".\askbot\views\api_v1.py", line 190, in questions
    datum = get_question_data(thread)

  File ".\askbot\views\api_v1.py", line 31, in get_question_data
    'added_at': thread.added_at.strftime('%s'),

ValueError: Invalid format string

Is this a known bug and how can we fix it? I am assuming this is something in the py file that is failing based on the error message

When I comment out the line that has the strftime and then retry the 'API' url, I get another error:

Server Error

500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.

It does not appear to me that this ever worked. How can this be fixed?

The 'API' does not work on our site - it results in errors. How can this be fixed?

I tried to use the 'API' as described by this page:

http://askbot.org/doc/api.html#api-v1-questions

Unfortunately the only 'API' url that works is: /api/v1/info/

The others result in emails being sent with content similar to the following:

ERROR (EXTERNAL IP): Internal Server Error: /api/v1/questions/

Traceback (most recent call last):

  File "C:\Python27\lib\site-packages\django\core\handlers\base.py", line 115, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File ".\askbot\views\api_v1.py", line 190, in questions
    datum = get_question_data(thread)

  File ".\askbot\views\api_v1.py", line 31, in get_question_data
    'added_at': thread.added_at.strftime('%s'),

ValueError: Invalid format string

Is this a known bug and how can we fix it? I am assuming this is something in the py file that is failing based on the error message

When I comment out the line that has the strftime and then retry the 'API' url, I get another error:

Server Error

500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.

It does not appear to me that this ever worked. How can this be fixed?