Comments (3)
I think root cause is getSeries
which has meanwhile been modified:
public function getSeries()
{
$series = array_map(
function ($object) {
if (isset($object['error'])) {
throw new ClientException($object['error']);
}
return isset($object['series']) ? $object['series'] : [];
},
$this->parsedResults['results']
);
return array_shift($series);
}
array_shift($series);
on empty array will yield NULL
and hence yield the notice.
from influxdb-php.
Seems this was changed in ba96a93. However, upgrading to 1.15, I'm getting:
In ResultSet.php line 107: Invalid statement index provided
from influxdb-php.
I feel the reason is that in
influxdb-php/src/InfluxDB/ResultSet.php
Line 74 in 4a1efb4
getSeries()
is called without parameter which means default value of 0
.
In getSeries()
, in
influxdb-php/src/InfluxDB/ResultSet.php
Line 106 in 4a1efb4
0
series.
Is that the desired behaviour?
from influxdb-php.
Related Issues (20)
- PhP my Admin HOT 1
- Adding new query methods?
- [Question Only] Is it usable with InfluxDB 2.0 HOT 12
- [Feature request] Parameter Binding HOT 2
- Contact request
- Client results differ vs CLI HOT 2
- Can you add a parameter to QueryBuilder->getResultSet() ? HOT 1
- get the return result when save points with curl driver HOT 1
- HTTPS Request, not HTTP
- getResultSet(['epoch' => 's']) HOT 2
- select query with different time format HOT 3
- PHP 8 compatibility HOT 6
- InfluxDB2\FluxRecord getValue() can spit out a PHP “Undefined Index” Notice HOT 1
- Code 500
- Incorrect PRECISION_NANOSECONDS marker
- Can't omit port if running influxdb behind reverse proxy HOT 1
- Isn't 202 a valid status code as well?
- TypeError with php 8.1
- Identify repo owner and move to InfluxCommunity org 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 influxdb-php.