Comments (1)
It could be that this is the same timeout error as #25.
As in #36 and #25, one problem is that _get_endpoint()
does not handle errors well. When get fails, the data returned will not have the right entries.
If you replace _get_endpoint()
with this:
def _get_endpoint(self, endpoint=""):
url = "{base_url}{endpoint}" \
.format(base_url = self.base_url,
endpoint = endpoint)
req = requests.get(url, verify=False, cookies=self.cookies,timeout=3000)
data = req.json()
if 'error_code' in data:
print('Error:',data['error_code'],' ',data['message'])
print('status:',req.status_code)
return req
you'll be able to see the error.
Though there are probably better ways to do this.
from dpt-rp1-py.
Related Issues (20)
- Cannot Register HOT 14
- Testing Quaderno FMV-DPP04 HOT 8
- Attempting to register - AttributeError: 'list' object has no attribute 'endswith' HOT 3
- registering no longer works HOT 1
- Registration not working with Fujitsu Quaderno 2nd Gen HOT 13
- update due to changes in zeroconf HOT 1
- How to recover the file deleted?
- AttributeError: function/symbol 'SHA256_init' not found in library HOT 2
- sync throws error 'count' on refreshing file information HOT 7
- Exception when registering device HOT 3
- Random error during register process (Quaderno A4 v2) HOT 1
- Renaming/moving folders
- DEBUG:fuse.log-mixin:<- init None HOT 2
- Unable to connect to DPT-RP1 via bluetooth from Ubuntu 20.04 HOT 2
- Is it available to print documents to dpt-rp1 on ubuntu22?
- API Call list
- cannot register HOT 1
- list-folders not listing specific folder
- Stuck on Getting Certificate from device CA...
- Can't install/run - missing "pkg_resources" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dpt-rp1-py.