Comments (10)
Debugging it: \Query\Findable.php line 66: infinite loop:
while ($this->connection()->nextUrl !== null)
{
$nextResult = $this->connection()->get($this->connection()->nextUrl);
$result = array_merge($result, $nextResult);
}
from exact-php-client.
Have you tried on another server? And just the example.php file? Did you update of change the server this code runs on?
from exact-php-client.
I tried it on my local instance, on the online dev env and the live website, the latter 2 give the error, my local hangs on the while loop. Nothing has been update since last week. Tried running the example.php locally in a new vagrant box, same result.
edit: used a default debian box from vagrant, exact the same result, works for getting division and making the connection, fails on the first ->get(); no matter the model.
from exact-php-client.
What code are you executing?
from exact-php-client.
The connection is straight from the example, and then that code to get some results
$customersModel = new \Picqer\Financials\Exact\Account($connection);
$customers = $customersModel->get();
from exact-php-client.
I'm having no issues with this code using dev-master of this repo. Using a Laravel Homestead vagrant box for testing.
from exact-php-client.
it is really strange, a couple of lines above, I do:
$salesEntryModel = new \Picqer\Financials\Exact\SalesEntry($connection); $salesResults = $salesEntryModel->get();
and that works fine too. But then the second request to \Accounts fails either with that infinite loop or with the error in my first post. I am stuck at the moment of where to go now.
from exact-php-client.
Okay, going to leave it here for today:
- \Query\Findable.php line 66 causes infinite loop and a 504 gateway error.
- Thanks to the time out error, I get the SSL error. Restarting PHP fixes it.
- Running the composer command from the page along with the example.php gives the same problem when making 2 calls.
- Tried it on 3 custom debians wheezys, 1 default wheezy and 1 ubuntu 16.01
from exact-php-client.
Okay, fixed it.. There is a limit on how much you can get through this library. I made my own curl set up and started testing with that. I noted that there is a big loop if you have more then 100 records. With only curl that wasn't a problem. This library with that while loop crashes. I fixed it by limiting with ['$top'=> 50] and a loop around it to check if it completly filled.
from exact-php-client.
Thanks you for the info @duncan-qabana. We're using this library in production and haven't experienced this with one of our clients before. I'll note this for my README rewrite, that is some cases this might be a problem with getting too much results.
It's still odd this happens though.
from exact-php-client.
Related Issues (20)
- SalesOrderOrderChargeLines not available in bulk HOT 6
- Not able to Authorize HOT 1
- Requesting AccountItem results in 400 Bad Request - Error in query syntax HOT 2
- SalesOrderLines and SalesOrderOrderChargeLines HOT 2
- Client with identifier 'xxx-yyy-zzz' not found. HOT 5
- SalesEntry payments HOT 1
- What endpoint to get all articles?
- cURL error 77 HOT 4
- Provide a way to let exceptions bubble through to application HOT 6
- Picqer\Financials\Exact\Connection::upload() is missing optional parameters. HOT 1
- Referenced page is empty. Perhaps the endpoint is also removed? HOT 1
- PurchaseEntry approve for payment HOT 1
- PSR 18 compatibility HOT 3
- Error: Typed property Picqer\Financials\Exact\Connection::$minutelyLimitReset must not be accessed before initialization HOT 4
- Weird problem with paging and Documents/DocumentAttachment HOT 1
- Exception "Error 500: Not allow to update in Basic : Warehouse." HOT 7
- Error 401 with the message: "Unauthorized Client: Old refresh token used." HOT 6
- Strict type error HOT 11
- Could not connect to Exact Error 401: {"error":"unauthorized_client","error_description":"Old refresh token used."} HOT 8
- how to do an orderby HOT 1
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 exact-php-client.