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

Log content of responses that result in an error #3

Open
hexmode opened this issue Sep 5, 2016 · 0 comments
Open

Log content of responses that result in an error #3

hexmode opened this issue Sep 5, 2016 · 0 comments

Comments

@hexmode
Copy link
Contributor

hexmode commented Sep 5, 2016

Right now I'm only concerned with
Returned unexpected JSON when requesting library data
like those found here:
https://wikiapiary.com/wiki/Computer_Lexikon#Logs_for_Computer_Lexikon

I already added a column to the database table to hold the
information:
ALTER TABLE apiary_wwebsite_logs ADD log_data blob;

Now we need to

  1. Add the column to record_errors()
    https://github.com/WikiApiary/wikibees/blob/master/lib/apiary.py#L158
  2. Add add a log_data parameter to record_errors() so it can record
    the information in the db when it is passed in.
  3. Pass the raw response in from record_libraries()
    https://github.com/WikiApiary/wikibees/blob/master/bumble-bee/bumble-bee.py#L762
  4. Find a way to return the raw response from from pull_json()
    https://github.com/WikiApiary/wikibees/blob/master/lib/apiary.py#L87

Based on the information we collect as a result, we'll be able to find
out what is happening when those errors are given and may find a
better way to desl with them.

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

No branches or pull requests

1 participant