Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in localhost #100

Open
medrockstar opened this issue Mar 14, 2019 · 5 comments
Open

Error in localhost #100

medrockstar opened this issue Mar 14, 2019 · 5 comments

Comments

@medrockstar
Copy link

Hi,

when I put in htacess :
Header set Access-Control-Allow-Origin "*"

I have many error like this in console :
/api/trips?is_passenger=false&page=1&page_size=20 500 (Internal Server Error)
/api/users/my-trips?as_driver=false 500 (Internal Server Error)
/api/users/requests 500 (Internal Server Error)

@p4bl1t0
Copy link
Contributor

p4bl1t0 commented Mar 14, 2019

Internal Server Error is not a CORS problem, look at your apache logs file to find the error

@medrockstar
Copy link
Author

medrockstar commented Mar 15, 2019

Hi,

these erroes are occurs when the users are login, and I don't have errors in apache logs, just in console.

@p4bl1t0
Copy link
Contributor

p4bl1t0 commented Mar 15, 2019

Check the laravel logs, php logs and apache logs. The error must be there.

I couldn't help you without it

@medrockstar
Copy link
Author

medrockstar commented Mar 16, 2019

Hi, here is the log :

[2019-03-16 13:43:46] production.ERROR: RuntimeException: Unable to boot ApiServiceProvider, configure an API domain or prefix. in C:\wamp64\www\backend\vendor\dingo\api\src\Provider\DingoServiceProvider.php:82
Stack trace:
#0 C:\wamp64\www\backend\vendor\dingo\api\src\Provider\DingoServiceProvider.php(46): Dingo\Api\Provider\DingoServiceProvider->registerConfig()
#1 C:\wamp64\www\backend\vendor\dingo\api\src\Provider\LaravelServiceProvider.php(92): Dingo\Api\Provider\DingoServiceProvider->register()
#2 C:\wamp64\www\backend\bootstrap\cache\compiled.php(1812): Dingo\Api\Provider\LaravelServiceProvider->register()
#3 C:\wamp64\www\backend\bootstrap\cache\compiled.php(7626): Illuminate\Foundation\Application->register(Object(Dingo\Api\Provider\LaravelServiceProvider))
#4 C:\wamp64\www\backend\bootstrap\cache\compiled.php(1802): Illuminate\Foundation\ProviderRepository->load(Array)
#5 C:\wamp64\www\backend\bootstrap\cache\compiled.php(2220): Illuminate\Foundation\Application->registerConfiguredProviders()
#6 C:\wamp64\www\backend\bootstrap\cache\compiled.php(1666): Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap(Object(Illuminate\Foundation\Application))
#7 C:\wamp64\www\backend\bootstrap\cache\compiled.php(2412): Illuminate\Foundation\Application->bootstrapWith(Array)
#8 C:\wamp64\www\backend\bootstrap\cache\compiled.php(2365): Illuminate\Foundation\Http\Kernel->bootstrap()
#9 C:\wamp64\www\backend\bootstrap\cache\compiled.php(2350): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#10 C:\wamp64\www\backend\public\index.php(53): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#11 {main}
[2019-03-16 13:43:47] production.ERROR: RuntimeException: Unable to boot ApiServiceProvider, configure an API domain or prefix. in C:\wamp64\www\backend\vendor\dingo\api\src\Provider\DingoServiceProvider.php:82
Stack trace:
#0 C:\wamp64\www\backend\vendor\dingo\api\src\Provider\DingoServiceProvider.php(46): Dingo\Api\Provider\DingoServiceProvider->registerConfig()
#1 C:\wamp64\www\backend\vendor\dingo\api\src\Provider\LaravelServiceProvider.php(92): Dingo\Api\Provider\DingoServiceProvider->register()
#2 C:\wamp64\www\backend\bootstrap\cache\compiled.php(1812): Dingo\Api\Provider\LaravelServiceProvider->register()
#3 C:\wamp64\www\backend\bootstrap\cache\compiled.php(7626): Illuminate\Foundation\Application->register(Object(Dingo\Api\Provider\LaravelServiceProvider))
#4 C:\wamp64\www\backend\bootstrap\cache\compiled.php(1802): Illuminate\Foundation\ProviderRepository->load(Array)
#5 C:\wamp64\www\backend\bootstrap\cache\compiled.php(2220): Illuminate\Foundation\Application->registerConfiguredProviders()
#6 C:\wamp64\www\backend\bootstrap\cache\compiled.php(1666): Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap(Object(Illuminate\Foundation\Application))
#7 C:\wamp64\www\backend\bootstrap\cache\compiled.php(2412): Illuminate\Foundation\Application->bootstrapWith(Array)
#8 C:\wamp64\www\backend\bootstrap\cache\compiled.php(2365): Illuminate\Foundation\Http\Kernel->bootstrap()
#9 C:\wamp64\www\backend\bootstrap\cache\compiled.php(2350): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#10 C:\wamp64\www\backend\public\index.php(53): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#11 {main}
[2019-03-16 13:45:00] production.ERROR: RuntimeException: Unable to boot ApiServiceProvider, configure an API domain or prefix. in C:\wamp64\www\backend\vendor\dingo\api\src\Provider\DingoServiceProvider.php:82
Stack trace:
#0 C:\wamp64\www\backend\vendor\dingo\api\src\Provider\DingoServiceProvider.php(46): Dingo\Api\Provider\DingoServiceProvider->registerConfig()
#1 C:\wamp64\www\backend\vendor\dingo\api\src\Provider\LaravelServiceProvider.php(92): Dingo\Api\Provider\DingoServiceProvider->register()
#2 C:\wamp64\www\backend\bootstrap\cache\compiled.php(1812): Dingo\Api\Provider\LaravelServiceProvider->register()
#3 C:\wamp64\www\backend\bootstrap\cache\compiled.php(7626): Illuminate\Foundation\Application->register(Object(Dingo\Api\Provider\LaravelServiceProvider))
#4 C:\wamp64\www\backend\bootstrap\cache\compiled.php(1802): Illuminate\Foundation\ProviderRepository->load(Array)
#5 C:\wamp64\www\backend\bootstrap\cache\compiled.php(2220): Illuminate\Foundation\Application->registerConfiguredProviders()
#6 C:\wamp64\www\backend\bootstrap\cache\compiled.php(1666): Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap(Object(Illuminate\Foundation\Application))
#7 C:\wamp64\www\backend\bootstrap\cache\compiled.php(2412): Illuminate\Foundation\Application->bootstrapWith(Array)
#8 C:\wamp64\www\backend\bootstrap\cache\compiled.php(2365): Illuminate\Foundation\Http\Kernel->bootstrap()
#9 C:\wamp64\www\backend\bootstrap\cache\compiled.php(2350): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#10 C:\wamp64\www\backend\public\index.php(53): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#11 {main}
[2019-03-16 13:45:00] production.ERROR: RuntimeException: Unable to boot ApiServiceProvider, configure an API domain or prefix. in C:\wamp64\www\backend\vendor\dingo\api\src\Provider\DingoServiceProvider.php:82
Stack trace:
#0 C:\wamp64\www\backend\vendor\dingo\api\src\Provider\DingoServiceProvider.php(46): Dingo\Api\Provider\DingoServiceProvider->registerConfig()
#1 C:\wamp64\www\backend\vendor\dingo\api\src\Provider\LaravelServiceProvider.php(92): Dingo\Api\Provider\DingoServiceProvider->register()
#2 C:\wamp64\www\backend\bootstrap\cache\compiled.php(1812): Dingo\Api\Provider\LaravelServiceProvider->register()
#3 C:\wamp64\www\backend\bootstrap\cache\compiled.php(7626): Illuminate\Foundation\Application->register(Object(Dingo\Api\Provider\LaravelServiceProvider))
#4 C:\wamp64\www\backend\bootstrap\cache\compiled.php(1802): Illuminate\Foundation\ProviderRepository->load(Array)
#5 C:\wamp64\www\backend\bootstrap\cache\compiled.php(2220): Illuminate\Foundation\Application->registerConfiguredProviders()
#6 C:\wamp64\www\backend\bootstrap\cache\compiled.php(1666): Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap(Object(Illuminate\Foundation\Application))
#7 C:\wamp64\www\backend\bootstrap\cache\compiled.php(2412): Illuminate\Foundation\Application->bootstrapWith(Array)
#8 C:\wamp64\www\backend\bootstrap\cache\compiled.php(2365): Illuminate\Foundation\Http\Kernel->bootstrap()
#9 C:\wamp64\www\backend\bootstrap\cache\compiled.php(2350): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#10 C:\wamp64\www\backend\public\index.php(53): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#11 {main}
[2019-03-16 13:45:01] local.ERROR: PDOException: SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO) in C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:55
Stack trace:
#0 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php(55): PDO->__construct('mysql:host=loca...', 'forge', '', Array)
#1 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Database\Connectors\MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection('mysql:host=loca...', Array, Array)
#2 C:\wamp64\www\backend\bootstrap\cache\compiled.php(11845): Illuminate\Database\Connectors\MySqlConnector->connect(Array)
#3 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors{closure}()
#4 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Database\Connection.php(924): call_user_func(Object(Closure))
#5 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Database\Connection.php(792): Illuminate\Database\Connection->getPdo()
#6 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Database\Connection.php(677): Illuminate\Database\Connection->reconnectIfMissingConnection()
#7 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Database\Connection.php(349): Illuminate\Database\Connection->run('select * from ...', Array, Object(Closure)) #8 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Database\Query\Builder.php(1610): Illuminate\Database\Connection->select('select * from ...', Array, true)
#9 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Database\Query\Builder.php(1596): Illuminate\Database\Query\Builder->runSelect()
#10 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Builder.php(625): Illuminate\Database\Query\Builder->get(Array)
#11 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Builder.php(316): Illuminate\Database\Eloquent\Builder->getModels(Array)
#12 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Builder.php(286): Illuminate\Database\Eloquent\Builder->get(Array)
#13 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Builder.php(167): Illuminate\Database\Eloquent\Builder->first(Array)
#14 C:\wamp64\www\backend\bootstrap\cache\compiled.php(1009): Illuminate\Database\Eloquent\Builder->find(2)
#15 C:\wamp64\www\backend\bootstrap\cache\compiled.php(677): Illuminate\Auth\EloquentUserProvider->retrieveById(2)
#16 [internal function]: Illuminate\Auth\SessionGuard->onceUsingId(2)
#17 C:\wamp64\www\backend\bootstrap\cache\compiled.php(465): call_user_func_array(Array, Array)
#18 C:\wamp64\www\backend\vendor\tymon\jwt-auth\src\Providers\Auth\IlluminateAuthAdapter.php(50): Illuminate\Auth\AuthManager->__call('onceUsingId', Array)
#19 C:\wamp64\www\backend\vendor\tymon\jwt-auth\src\JWTAuth.php(126): Tymon\JWTAuth\Providers\Auth\IlluminateAuthAdapter->byId(2)
#20 C:\wamp64\www\backend\vendor\dingo\api\src\Auth\Provider\JWT.php(46): Tymon\JWTAuth\JWTAuth->authenticate()
#21 C:\wamp64\www\backend\vendor\dingo\api\src\Auth\Auth.php(82): Dingo\Api\Auth\Provider\JWT->authenticate(Object(Dingo\Api\Http\Request), Object(Dingo\Api\Routing\Route))
#22 C:\wamp64\www\backend\vendor\dingo\api\src\Http\Middleware\Auth.php(52): Dingo\Api\Auth\Auth->authenticate(Array)
#23 [internal function]: Dingo\Api\Http\Middleware\Auth->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#24 C:\wamp64\www\backend\bootstrap\cache\compiled.php(9963): call_user_func_array(Array, Array)
#25 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Dingo\Api\Http\Request))
#26 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(32): call_user_func(Object(Closure), Object(Dingo\Api\Http\Request))
#27 [internal function]: Illuminate\Routing\Pipeline->Illuminate\Routing{closure}(Object(Dingo\Api\Http\Request))
#28 C:\wamp64\www\backend\bootstrap\cache\compiled.php(9948): call_user_func(Object(Closure), Object(Dingo\Api\Http\Request))
#29 C:\wamp64\www\backend\bootstrap\cache\compiled.php(9467): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#30 C:\wamp64\www\backend\bootstrap\cache\compiled.php(9454): Illuminate\Routing\ControllerDispatcher->callWithinStack(Object(STS\Http\Controllers\Api\v1\TripController), Object(Illuminate\Routing\Route), Object(Dingo\Api\Http\Request), 'myTrips')
#31 C:\wamp64\www\backend\bootstrap\cache\compiled.php(8524): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Dingo\Api\Http\Request), 'STS\Http\Contro...', 'myTrips')
#32 C:\wamp64\www\backend\bootstrap\cache\compiled.php(8511): Illuminate\Routing\Route->runController(Object(Dingo\Api\Http\Request))
#33 C:\wamp64\www\backend\bootstrap\cache\compiled.php(8225): Illuminate\Routing\Route->run(Object(Dingo\Api\Http\Request))
#34 [internal function]: Illuminate\Routing\Router->Illuminate\Routing{closure}(Object(Dingo\Api\Http\Request))
#35 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(52): call_user_func(Object(Closure), Object(Dingo\Api\Http\Request))
#36 C:\wamp64\www\backend\vendor\barryvdh\laravel-cors\src\HandleCors.php(42): Illuminate\Routing\Pipeline->Illuminate\Routing{closure}(Object(Dingo\Api\Http\Request))
#37 [internal function]: Barryvdh\Cors\HandleCors->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#38 C:\wamp64\www\backend\bootstrap\cache\compiled.php(9963): call_user_func_array(Array, Array)
#39 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Dingo\Api\Http\Request))
#40 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(32): call_user_func(Object(Closure), Object(Dingo\Api\Http\Request))
#41 C:\wamp64\www\backend\vendor\dingo\api\src\Http\Middleware\PrepareController.php(45): Illuminate\Routing\Pipeline->Illuminate\Routing{closure}(Object(Dingo\Api\Http\Request))
#42 [internal function]: Dingo\Api\Http\Middleware\PrepareController->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#43 C:\wamp64\www\backend\bootstrap\cache\compiled.php(9963): call_user_func_array(Array, Array)
#44 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Dingo\Api\Http\Request))
#45 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(32): call_user_func(Object(Closure), Object(Dingo\Api\Http\Request))
#46 [internal function]: Illuminate\Routing\Pipeline->Illuminate\Routing{closure}(Object(Dingo\Api\Http\Request))
#47 C:\wamp64\www\backend\bootstrap\cache\compiled.php(9948): call_user_func(Object(Closure), Object(Dingo\Api\Http\Request))
#48 C:\wamp64\www\backend\bootstrap\cache\compiled.php(8226): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#49 C:\wamp64\www\backend\bootstrap\cache\compiled.php(8217): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Dingo\Api\Http\Request))
#50 C:\wamp64\www\backend\bootstrap\cache\compiled.php(8207): Illuminate\Routing\Router->dispatchToRoute(Object(Dingo\Api\Http\Request))
#51 C:\wamp64\www\backend\vendor\dingo\api\src\Routing\Adapter\Laravel.php(81): Illuminate\Routing\Router->dispatch(Object(Dingo\Api\Http\Request))
#52 C:\wamp64\www\backend\vendor\dingo\api\src\Routing\Router.php(513): Dingo\Api\Routing\Adapter\Laravel->dispatch(Object(Dingo\Api\Http\Request), 'v1')
#53 C:\wamp64\www\backend\vendor\dingo\api\src\Http\Middleware\Request.php(126): Dingo\Api\Routing\Router->dispatch(Object(Dingo\Api\Http\Request))
#54 [internal function]: Dingo\Api\Http\Middleware\Request->Dingo\Api\Http\Middleware{closure}(Object(Dingo\Api\Http\Request))
#55 C:\wamp64\www\backend\bootstrap\cache\compiled.php(9970): call_user_func(Object(Closure), Object(Dingo\Api\Http\Request))
#56 C:\wamp64\www\backend\bootstrap\cache\compiled.php(3286): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Dingo\Api\Http\Request))
#57 [internal function]: Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#58 C:\wamp64\www\backend\bootstrap\cache\compiled.php(9963): call_user_func_array(Array, Array)
#59 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Dingo\Api\Http\Request))
#60 C:\wamp64\www\backend\bootstrap\cache\compiled.php(9948): call_user_func(Object(Closure), Object(Dingo\Api\Http\Request))
#61 C:\wamp64\www\backend\vendor\dingo\api\src\Http\Middleware\Request.php(127): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#62 C:\wamp64\www\backend\vendor\dingo\api\src\Http\Middleware\Request.php(103): Dingo\Api\Http\Middleware\Request->sendRequestThroughRouter(Object(Dingo\Api\Http\Request))
#63 [internal function]: Dingo\Api\Http\Middleware\Request->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#64 C:\wamp64\www\backend\bootstrap\cache\compiled.php(9963): call_user_func_array(Array, Array)
#65 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))
#66 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#67 [internal function]: Illuminate\Routing\Pipeline->Illuminate\Routing{closure}(Object(Illuminate\Http\Request))
#68 C:\wamp64\www\backend\bootstrap\cache\compiled.php(9948): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#69 C:\wamp64\www\backend\bootstrap\cache\compiled.php(2366): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#70 C:\wamp64\www\backend\bootstrap\cache\compiled.php(2350): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#71 C:\wamp64\www\backend\public\index.php(53): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#72 {main}
[2019-03-16 13:45:01] local.ERROR: PDOException: SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO) in C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:55
Stack trace:
#0 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php(55): PDO->__construct('mysql:host=loca...', 'forge', '', Array)
#1 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Database\Connectors\MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection('mysql:host=loca...', Array, Array)
#2 C:\wamp64\www\backend\bootstrap\cache\compiled.php(11845): Illuminate\Database\Connectors\MySqlConnector->connect(Array)
#3 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors{closure}()
#4 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Database\Connection.php(924): call_user_func(Object(Closure))
#5 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Database\Connection.php(792): Illuminate\Database\Connection->getPdo()
#6 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Database\Connection.php(677): Illuminate\Database\Connection->reconnectIfMissingConnection()
#7 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Database\Connection.php(349): Illuminate\Database\Connection->run('select * from ...', Array, Object(Closure)) #8 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Database\Query\Builder.php(1610): Illuminate\Database\Connection->select('select * from ...', Array, true)
#9 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Database\Query\Builder.php(1596): Illuminate\Database\Query\Builder->runSelect()
#10 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Builder.php(625): Illuminate\Database\Query\Builder->get(Array)
#11 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Builder.php(316): Illuminate\Database\Eloquent\Builder->getModels(Array)
#12 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Builder.php(286): Illuminate\Database\Eloquent\Builder->get(Array)
#13 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Builder.php(167): Illuminate\Database\Eloquent\Builder->first(Array)
#14 C:\wamp64\www\backend\bootstrap\cache\compiled.php(1009): Illuminate\Database\Eloquent\Builder->find(2)
#15 C:\wamp64\www\backend\bootstrap\cache\compiled.php(677): Illuminate\Auth\EloquentUserProvider->retrieveById(2)
#16 [internal function]: Illuminate\Auth\SessionGuard->onceUsingId(2)
#17 C:\wamp64\www\backend\bootstrap\cache\compiled.php(465): call_user_func_array(Array, Array)
#18 C:\wamp64\www\backend\vendor\tymon\jwt-auth\src\Providers\Auth\IlluminateAuthAdapter.php(50): Illuminate\Auth\AuthManager->__call('onceUsingId', Array)
#19 C:\wamp64\www\backend\vendor\tymon\jwt-auth\src\JWTAuth.php(126): Tymon\JWTAuth\Providers\Auth\IlluminateAuthAdapter->byId(2)
#20 C:\wamp64\www\backend\vendor\dingo\api\src\Auth\Provider\JWT.php(46): Tymon\JWTAuth\JWTAuth->authenticate()
#21 C:\wamp64\www\backend\vendor\dingo\api\src\Auth\Auth.php(82): Dingo\Api\Auth\Provider\JWT->authenticate(Object(Dingo\Api\Http\Request), Object(Dingo\Api\Routing\Route))
#22 C:\wamp64\www\backend\vendor\dingo\api\src\Http\Middleware\Auth.php(52): Dingo\Api\Auth\Auth->authenticate(Array)
#23 [internal function]: Dingo\Api\Http\Middleware\Auth->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#24 C:\wamp64\www\backend\bootstrap\cache\compiled.php(9963): call_user_func_array(Array, Array)
#25 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Dingo\Api\Http\Request))
#26 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(32): call_user_func(Object(Closure), Object(Dingo\Api\Http\Request))
#27 [internal function]: Illuminate\Routing\Pipeline->Illuminate\Routing{closure}(Object(Dingo\Api\Http\Request))
#28 C:\wamp64\www\backend\bootstrap\cache\compiled.php(9948): call_user_func(Object(Closure), Object(Dingo\Api\Http\Request))
#29 C:\wamp64\www\backend\bootstrap\cache\compiled.php(9467): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#30 C:\wamp64\www\backend\bootstrap\cache\compiled.php(9454): Illuminate\Routing\ControllerDispatcher->callWithinStack(Object(STS\Http\Controllers\Api\v1\TripController), Object(Illuminate\Routing\Route), Object(Dingo\Api\Http\Request), 'myTrips')
#31 C:\wamp64\www\backend\bootstrap\cache\compiled.php(8524): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Dingo\Api\Http\Request), 'STS\Http\Contro...', 'myTrips')
#32 C:\wamp64\www\backend\bootstrap\cache\compiled.php(8511): Illuminate\Routing\Route->runController(Object(Dingo\Api\Http\Request))
#33 C:\wamp64\www\backend\bootstrap\cache\compiled.php(8225): Illuminate\Routing\Route->run(Object(Dingo\Api\Http\Request))
#34 [internal function]: Illuminate\Routing\Router->Illuminate\Routing{closure}(Object(Dingo\Api\Http\Request))
#35 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(52): call_user_func(Object(Closure), Object(Dingo\Api\Http\Request))
#36 C:\wamp64\www\backend\vendor\barryvdh\laravel-cors\src\HandleCors.php(42): Illuminate\Routing\Pipeline->Illuminate\Routing{closure}(Object(Dingo\Api\Http\Request))
#37 [internal function]: Barryvdh\Cors\HandleCors->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#38 C:\wamp64\www\backend\bootstrap\cache\compiled.php(9963): call_user_func_array(Array, Array)
#39 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Dingo\Api\Http\Request))
#40 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(32): call_user_func(Object(Closure), Object(Dingo\Api\Http\Request))
#41 C:\wamp64\www\backend\vendor\dingo\api\src\Http\Middleware\PrepareController.php(45): Illuminate\Routing\Pipeline->Illuminate\Routing{closure}(Object(Dingo\Api\Http\Request))
#42 [internal function]: Dingo\Api\Http\Middleware\PrepareController->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#43 C:\wamp64\www\backend\bootstrap\cache\compiled.php(9963): call_user_func_array(Array, Array)
#44 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Dingo\Api\Http\Request))
#45 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(32): call_user_func(Object(Closure), Object(Dingo\Api\Http\Request))
#46 [internal function]: Illuminate\Routing\Pipeline->Illuminate\Routing{closure}(Object(Dingo\Api\Http\Request))
#47 C:\wamp64\www\backend\bootstrap\cache\compiled.php(9948): call_user_func(Object(Closure), Object(Dingo\Api\Http\Request))
#48 C:\wamp64\www\backend\bootstrap\cache\compiled.php(8226): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#49 C:\wamp64\www\backend\bootstrap\cache\compiled.php(8217): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Dingo\Api\Http\Request))
#50 C:\wamp64\www\backend\bootstrap\cache\compiled.php(8207): Illuminate\Routing\Router->dispatchToRoute(Object(Dingo\Api\Http\Request))
#51 C:\wamp64\www\backend\vendor\dingo\api\src\Routing\Adapter\Laravel.php(81): Illuminate\Routing\Router->dispatch(Object(Dingo\Api\Http\Request))
#52 C:\wamp64\www\backend\vendor\dingo\api\src\Routing\Router.php(513): Dingo\Api\Routing\Adapter\Laravel->dispatch(Object(Dingo\Api\Http\Request), 'v1')
#53 C:\wamp64\www\backend\vendor\dingo\api\src\Http\Middleware\Request.php(126): Dingo\Api\Routing\Router->dispatch(Object(Dingo\Api\Http\Request))
#54 [internal function]: Dingo\Api\Http\Middleware\Request->Dingo\Api\Http\Middleware{closure}(Object(Dingo\Api\Http\Request))
#55 C:\wamp64\www\backend\bootstrap\cache\compiled.php(9970): call_user_func(Object(Closure), Object(Dingo\Api\Http\Request))
#56 C:\wamp64\www\backend\bootstrap\cache\compiled.php(3286): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Dingo\Api\Http\Request))
#57 [internal function]: Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#58 C:\wamp64\www\backend\bootstrap\cache\compiled.php(9963): call_user_func_array(Array, Array)
#59 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Dingo\Api\Http\Request))
#60 C:\wamp64\www\backend\bootstrap\cache\compiled.php(9948): call_user_func(Object(Closure), Object(Dingo\Api\Http\Request))
#61 C:\wamp64\www\backend\vendor\dingo\api\src\Http\Middleware\Request.php(127): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#62 C:\wamp64\www\backend\vendor\dingo\api\src\Http\Middleware\Request.php(103): Dingo\Api\Http\Middleware\Request->sendRequestThroughRouter(Object(Dingo\Api\Http\Request))
#63 [internal function]: Dingo\Api\Http\Middleware\Request->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#64 C:\wamp64\www\backend\bootstrap\cache\compiled.php(9963): call_user_func_array(Array, Array)
#65 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))
#66 C:\wamp64\www\backend\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#67 [internal function]: Illuminate\Routing\Pipeline->Illuminate\Routing{closure}(Object(Illuminate\Http\Request))
#68 C:\wamp64\www\backend\bootstrap\cache\compiled.php(9948): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#69 C:\wamp64\www\backend\bootstrap\cache\compiled.php(2366): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#70 C:\wamp64\www\backend\bootstrap\cache\compiled.php(2350): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#71 C:\wamp64\www\backend\public\index.php(53): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#72 {main}

@p4bl1t0
Copy link
Contributor

p4bl1t0 commented Mar 16, 2019

The error it's pretty clear

PDOException: SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO)

Check your .env file and configure properly your database access

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants