Comments (8)
For reference I believe this is a permissions problem. thephpleague/uri-hostname-parser tries to write a cache file in your vendor directory. Specifically uri-hostname-parser/data by default. When it can't write to the directory it throws the misleading exception about not being able to get the SuffixList.
from php-whois-client.
I recall we discussed this already in #13 as well, however when I provided you with debugging steps I didn't get any feedback. If you can find a solution for this I'd be more than happy to accept a PR that fixes this.
At this point though I believe this is not an issue I can resolve because a) it's in an upstream dependency, b) I have never been able to recreate it to debug it myself, and c) it could also be a system environment issue.
from php-whois-client.
could you please kindly tell me your current os and php version to work well with this whois-client, I try many times online with my centos 7 and php7.2, these errors reproduce for me
from php-whois-client.
I have successfully used this in the following setups:
- Arch Linux
- PHP 5.6 (no longer supported tho)
- PHP 7.0 (same)
- PHP 7.1
- PHP 7.2
- PHP 7.3
- Ubuntu
- PHP 7.1
- PHP 7.2
- CentOS 7 (WHM & cPanel)
- PHP 7.0 (no longer supported)
- PHP 7.1
- PHP 7.2
from php-whois-client.
Also, the repo has automated testing running on Ubuntu Trusty with 7.1 and 7.2 and includes full code coverage. You can review the commit history and dive into Scrutinizer, Coveralls, or even Codecov.
from php-whois-client.
@erichuang2015 Have you made any progress in debugging the issue on your end?
If you do believe the issue is related to the version change for league/uri-components, then it's likely that if there is a bug then it's in that package (or one of it's dependencies).
However, the specific package throwing the Exception you're seeing is actually thephpleague/uri-hostname-parser, who's version used doesn't change at all in uri-components from 1.7.1 to 1.8.1 - so I find it highly unlikely that the issue is related to this version change.
from php-whois-client.
Closing due to inactivity.
from php-whois-client.
@Ascerta Thank you for the insight - that certainly seems to be a reasonable explanation. Looking over things further that makes a lot more sense too. Maybe someone can push a PR to thephpleague to update the Exception message to be more clear.
It should really say 'unable to refresh', instead of 'unable to load' - as the Exception will be thrown due to network errors, disk errors, and permission errors. Or even better maybe instead of returning false on permission issues their FileCache could throw an exception.
from php-whois-client.
Related Issues (5)
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 php-whois-client.