Comments (1)
This appears to have been introduced by a new bug in the API (an old bug by time I've come around to noticing it). The Error you experienced was from the attempted handling of results which were empty due to a <500>
response produced by this bug.
It is triggered by use of the units
argument. I have updated the code to allow the units argument to be omitted by passing the default_units=None
keyword argument when instantiating your client. So...
my_client = Client(token, default_units=None, default_limit=1000)
This means the results of your query will take the API default units, which can be a little bit unexpected, such as tenths of degrees Celsius, but valid requests are returned.
As an example for the API maintainers, the example requests in the documentation here do not work with the units='metric'
or units='standard'
arguments. They work fine however if the arguments are omitted.
from cdo-api-py.
Related Issues (3)
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 cdo-api-py.