JWTRefreshTokenBundle: Name or service not known

Patrick

We have a working app that successfully returns a token from /auth/user-token using Symfony 4 and Lexik JWT Authentication Bundle. After I install JWTRefreshTokenBundle, (completing the installation up through step 3), however, I get this error when visiting that existing endpoint:

An exception occurred in driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known

Reverting my files to a pre-installation state allows the app to work again.

Does anyone have any ideas about what might be going on here?

===

Update: Attempting to run the installation through step 5 (schema update) results in this error:

In AbstractMySQLDriver.php line 113: An exception occurred in driver: SQLSTATE[HY000] [2002] Connection refused In PDOConnection.php line 50: SQLSTATE[HY000] [2002] Connection refused In PDOConnection.php line 46: SQLSTATE[HY000] [2002] Connection refused

Mohammad Zare Moghadam

You have to install mysql and then add the following line to your .env file at symfony root:

DATABASE_URL="mysql://db_user:[email protected]:3306/db_name"

Then replace the following values with desired values:

db_user your database user

db_password your database password

db_name your database name

Then do the following changes in config/packages/doctrine.yaml:

doctrine:
    dbal:
        url: '%env(DATABASE_URL)%'

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

ftp: Name or Service not known

hostname: Name or service not known

Ping : Name or service not known

ping displays "Name or service not known"

Telnet returns Name or service not known

Python variable Name or service not known

Suppress "Name or service not known" on ping

Name or service not known in DHCP subnet

java.net.UnknownHostException: Name or service not known

gaierror: [Errno -2] Name or service not known | pysftp

Using ftp command results name or service not known

Name or service not known when running a Dash app

Name or Service not known - intermittent error in Azure

Rails Heroku SocketError: getaddrinfo: Name or service not known

AWS [Errno -2] Name or service not known

Name or service not known [tcp://redis:6379]

Getting Name of service not known with Redis [Error -2]

Newbie, error: [Errno -2] Name or service not known

Connection error with PHPMailer and SMTP: node name or service name not known

Ubuntu ssh: Could not resolve hostname myserver: Name or service not known

rails 5 Seahorse::Client::NetworkingError (getaddrinfo: Name or service not known):

Cannot connect Wordpress on external dbgetaddrinfo failed: Name or service not known

django-elasticsearch error : [Errno -2] Name or service not known

fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known

rabbtimqadmin - Could not connect: [Errno -2] Name or service not known

Apache httpcomponent returns java.net.UnknownHostException: Name or service not known

scp can't access SSH alias: Name or service not known

Error “ssh: Name or service not known” while using mpirun in Linux

socket.gaierror: [Errno -2] Name or service not known