BridgesUNCC / bridges-python

Python client library for Bridges
http://bridgesuncc.github.io
MIT License
3 stars 4 forks source link

Symbol class warnings.. #83

Open krs-world opened 3 years ago

krs-world commented 3 years ago

Seeing these warnings in Symbol.py:

python3 book_analysis.py /Users/kalpathi/gr/bridges/client/python/bridges/symbol.py:258: SyntaxWarning: "is" with a literal. Did you mean "=="? if len(args) is 1: /Users/kalpathi/gr/bridges/client/python/bridges/symbol.py:262: SyntaxWarning: "is" with a literal. Did you mean "=="? elif len(args) is 2: /Users/kalpathi/gr/bridges/client/python/bridges/symbol.py:267: SyntaxWarning: "is" with a literal. Did you mean "=="? elif len(args) is 4: /Users/kalpathi/gr/bridges/client/python/bridges/symbol.py:281: SyntaxWarning: "is" with a literal. Did you mean "=="? if len(args) is 1: /Users/kalpathi/gr/bridges/client/python/bridges/symbol.py:295: SyntaxWarning: "is" with a literal. Did you mean "=="? elif len(args) is 3: 500 Server Error: INTERNAL SERVER ERROR for url: http://bridges-data-server-gutenberg.bridgesuncc.org/book?id=102

krs-world commented 3 years ago

The above server errors usually comes when you start with an empty cache, if that helps. Another strange thing I saw was that the final books found dont match t he book ids of the errors.

krs-world commented 3 years ago

These are all the data server errors:

500 Server Error: INTERNAL SERVER ERROR for url: http://bridges-data-server-gutenberg.bridgesuncc.org/book?id=102 504 Server Error: Gateway Time-out for url: http://bridges-data-server-gutenberg.bridgesuncc.org/book?id=1112 504 Server Error: Gateway Time-out for url: http://bridges-data-server-gutenberg.bridgesuncc.org/book?id=13214 504 Server Error: Gateway Time-out for url: http://bridges-data-server-gutenberg.bridgesuncc.org/book?id=17951 RUNTIME TIME: 978.7776627540588

It did run to completion..

AlecGoncharow commented 2 years ago

This is an easy fix

Basically