Comments (8)
Update your php version to 7 it should work fine
from pokemongoapi-php.
Thank you so much! I can't update to php 7 on my website, but I could on my mac, so I've updated and after that the web error now is:
( ! ) Fatal error: Uncaught GuzzleHttp\Exception\ConnectException: cURL error 35: SSL: CA certificate set, but certificate verification is disabled (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in /Library/WebServer/Documents/pokemongo/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 186
( ! ) GuzzleHttp\Exception\ConnectException: cURL error 35: SSL: CA certificate set, but certificate verification is disabled (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in /Library/WebServer/Documents/pokemongo/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 186
Do you know how can I fix it? Thank you again!
from pokemongoapi-php.
Try changing the SSL_VERIFICATION environment variable to true.
SSL_VERIFICATION=true
from pokemongoapi-php.
Thank you @NicklasWallgren !
I'm trying to do that but without success!
Can you help me to change that environment variable to true.
Thank you very much!
from pokemongoapi-php.
Make a copy of the ".env.example file", name it ".env".
Then add the file path as the fourth parameter to the ApplicationKernel constructor.
// Initialize the pokemon go application
$application = new ApplicationKernel('INSERT_EMAIL', 'INSERT_PASSWORD', Factory::AUTHENTICATION_TYPE_GOOGLE, INSERT_FILE_PATH_TO_ENVIRONMENT_FOLDER);
from pokemongoapi-php.
I tried in this way:
- Modifying .env file in this way:
DEBUG=false
LOG_FILE_PATH=
LOG_LEVEL=100
SSL_VERIFICATION=true
- Modifying the initialize function in example file RetrievePlayerProfile.php in this way:
$application = new ApplicationKernel(
'xxx-my-username-xxx', 'xxx-my-password-xxx', Factory::AUTHENTICATION_TYPE_GOOGLE, '/Library/WebServer/Documents/pokemongo/.env
');
( ! ) Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 51: SSL: certificate verification failed (result: 5) (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in /Library/WebServer/Documents/pokemongo/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 187
( ! ) GuzzleHttp\Exception\RequestException: cURL error 51: SSL: certificate verification failed (result: 5) (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in /Library/WebServer/Documents/pokemongo/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 187
Can I try others things?
from pokemongoapi-php.
Seems to be a problem related to OSX, nothing I can do about it I'm afraid.
Homebrew/legacy-homebrew#32019
from pokemongoapi-php.
I fixed it installing MAMP with PHP 7!
from pokemongoapi-php.
Related Issues (20)
- Exception about reading the full length HOT 1
- Call to a member function getOptions() on null HOT 5
- Fatal error: Call to a member function getType() on null HOT 15
- Update vendor/nicklasw/pkm-go-api/src/Api/Pokemon/Data/PokemonMetaRegistry.php HOT 6
- Where did getType1String() go? HOT 2
- More problems with move sets and pokemon types. HOT 9
- Pokémon Go 0.51.2 API using public hashing server HOT 2
- User Profile Details HOT 4
- When retrieving pokedex new baby eggs are missing HOT 2
- Authentification Exception (sometimes) HOT 3
- Hashing Server HOT 5
- language problem HOT 3
- Fatal error: Uncaught Exception: Retrieved a unknown status code 100 HOT 22
- Retrieved a invalid response. Response code: '403' HOT 2
- Slack and Status update? HOT 2
- Composer not run HOT 4
- Laravel begginer problem HOT 1
- Even after installing composer I'm getting the same error
- 403 Forbidden
- api credentials 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 pokemongoapi-php.