xxxxxxxxxx
import requests
try:
response = requests.get(url, verify=True) # Making an SSL request
# Process the response
except requests.exceptions.SSLError as e:
print("Invalid request: Unsupported SSL request")
# Handle the error or log it appropriately
xxxxxxxxxx
//Invalid request (Unsupported SSL request)
//Alterar
URL::forceScheme('https');
//para
URL::forceScheme('`http`');
//limpar o cache usando o comando:
php artisan config:cache
xxxxxxxxxx
//check that app is local
if ($this->app->isLocal()) {
//if local register your services you require for development
$this->app->register('Barryvdh\Debugbar\ServiceProvider');
} else {
//else register your services you require for production
$this->app['request']->server->set('HTTPS', true);
}