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

Token expired #107

Closed
wit3 opened this issue Jan 2, 2017 · 2 comments
Closed

Token expired #107

wit3 opened this issue Jan 2, 2017 · 2 comments

Comments

@wit3
Copy link

wit3 commented Jan 2, 2017

Hi..
I've been found a bug.
After about 60 minutes without making a request to the server, if you try to press any button (ex: edit categories) that executes a request, you will have a redirect with the following error message.

Good new year at all :)
fireshot capture 008 - codecasts com br - spa - starter k_ - https___spa codecasts rocks_auth_singin

This is the json response message:

{"messages":["Token has expired"],"reason":"token_expired","trace":[{"file":"\/var\/www\/vhosts\/spa.vedcasts.com.br\/httpdocs\/vendor\/tymon\/jwt-auth\/src\/Http\/Middleware\/Authenticate.php","line":30,"function":"authenticate","class":"Tymon\\JWTAuth\\Http\\Middleware\\BaseMiddleware","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]},{"file":"\/var\/www\/vhosts\/spa.vedcasts.com.br\/httpdocs\/bootstrap\/cache\/compiled.php","line":9904,"function":"handle","class":"Tymon\\JWTAuth\\Http\\Middleware\\Authenticate","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}},{}]},{"file":"\/var\/www\/vhosts\/spa.vedcasts.com.br\/httpdocs\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":33,"function":"Illuminate\\Pipeline\\{closure}","class":"Illuminate\\Pipeline\\Pipeline","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]},{"file":"\/var\/www\/vhosts\/spa.vedcasts.com.br\/httpdocs\/vendor\/barryvdh\/laravel-cors\/src\/HandleCors.php","line":42,"function":"Illuminate\\Routing\\{closure}","class":"Illuminate\\Routing\\Pipeline","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]},{"file":"\/var\/www\/vhosts\/spa.vedcasts.com.br\/httpdocs\/bootstrap\/cache\/compiled.php","line":9904,"function":"handle","class":"Barryvdh\\Cors\\HandleCors","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}},{}]},{"file":"\/var\/www\/vhosts\/spa.vedcasts.com.br\/httpdocs\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":33,"function":"Illuminate\\Pipeline\\{closure}","class":"Illuminate\\Pipeline\\Pipeline","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]},{"file":"\/var\/www\/vhosts\/spa.vedcasts.com.br\/httpdocs\/bootstrap\/cache\/compiled.php","line":10012,"function":"Illuminate\\Routing\\{closure}","class":"Illuminate\\Routing\\Pipeline","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]},{"file":"\/var\/www\/vhosts\/spa.vedcasts.com.br\/httpdocs\/bootstrap\/cache\/compiled.php","line":9904,"function":"handle","class":"Illuminate\\Routing\\Middleware\\SubstituteBindings","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}},{}]},{"file":"\/var\/www\/vhosts\/spa.vedcasts.com.br\/httpdocs\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":33,"function":"Illuminate\\Pipeline\\{closure}","class":"Illuminate\\Pipeline\\Pipeline","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]},{"file":"\/var\/www\/vhosts\/spa.vedcasts.com.br\/httpdocs\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Middleware\/ThrottleRequests.php","line":49,"function":"Illuminate\\Routing\\{closure}","class":"Illuminate\\Routing\\Pipeline","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]},{"file":"\/var\/www\/vhosts\/spa.vedcasts.com.br\/httpdocs\/bootstrap\/cache\/compiled.php","line":9904,"function":"handle","class":"Illuminate\\Routing\\Middleware\\ThrottleRequests","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}},{},"60","1"]},{"file":"\/var\/www\/vhosts\/spa.vedcasts.com.br\/httpdocs\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":33,"function":"Illuminate\\Pipeline\\{closure}","class":"Illuminate\\Pipeline\\Pipeline","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]},{"file":"\/var\/www\/vhosts\/spa.vedcasts.com.br\/httpdocs\/bootstrap\/cache\/compiled.php","line":9889,"function":"Illuminate\\Routing\\{closure}","class":"Illuminate\\Routing\\Pipeline","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]},{"file":"\/var\/www\/vhosts\/spa.vedcasts.com.br\/httpdocs\/bootstrap\/cache\/compiled.php","line":8191,"function":"then","class":"Illuminate\\Pipeline\\Pipeline","type":"->","args":[{}]},{"file":"\/var\/www\/vhosts\/spa.vedcasts.com.br\/httpdocs\/bootstrap\/cache\/compiled.php","line":8182,"function":"runRouteWithinStack","class":"Illuminate\\Routing\\Router","type":"->","args":[{},{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]},{"file":"\/var\/www\/vhosts\/spa.vedcasts.com.br\/httpdocs\/bootstrap\/cache\/compiled.php","line":8173,"function":"dispatchToRoute","class":"Illuminate\\Routing\\Router","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]},{"file":"\/var\/www\/vhosts\/spa.vedcasts.com.br\/httpdocs\/bootstrap\/cache\/compiled.php","line":2471,"function":"dispatch","class":"Illuminate\\Routing\\Router","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]},{"file":"\/var\/www\/vhosts\/spa.vedcasts.com.br\/httpdocs\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":53,"function":"Illuminate\\Foundation\\Http\\{closure}","class":"Illuminate\\Foundation\\Http\\Kernel","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]},{"file":"\/var\/www\/vhosts\/spa.vedcasts.com.br\/httpdocs\/vendor\/barryvdh\/laravel-cors\/src\/HandleCors.php","line":42,"function":"Illuminate\\Routing\\{closure}","class":"Illuminate\\Routing\\Pipeline","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]},{"file":"\/var\/www\/vhosts\/spa.vedcasts.com.br\/httpdocs\/bootstrap\/cache\/compiled.php","line":9904,"function":"handle","class":"Barryvdh\\Cors\\HandleCors","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}},{}]},{"file":"\/var\/www\/vhosts\/spa.vedcasts.com.br\/httpdocs\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":33,"function":"Illuminate\\Pipeline\\{closure}","class":"Illuminate\\Pipeline\\Pipeline","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]},{"file":"\/var\/www\/vhosts\/spa.vedcasts.com.br\/httpdocs\/bootstrap\/cache\/compiled.php","line":3226,"function":"Illuminate\\Routing\\{closure}","class":"Illuminate\\Routing\\Pipeline","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]},{"file":"\/var\/www\/vhosts\/spa.vedcasts.com.br\/httpdocs\/bootstrap\/cache\/compiled.php","line":9904,"function":"handle","class":"Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}},{}]},{"file":"\/var\/www\/vhosts\/spa.vedcasts.com.br\/httpdocs\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Pipeline.php","line":33,"function":"Illuminate\\Pipeline\\{closure}","class":"Illuminate\\Pipeline\\Pipeline","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]},{"file":"\/var\/www\/vhosts\/spa.vedcasts.com.br\/httpdocs\/bootstrap\/cache\/compiled.php","line":9889,"function":"Illuminate\\Routing\\{closure}","class":"Illuminate\\Routing\\Pipeline","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]},{"file":"\/var\/www\/vhosts\/spa.vedcasts.com.br\/httpdocs\/bootstrap\/cache\/compiled.php","line":2415,"function":"then","class":"Illuminate\\Pipeline\\Pipeline","type":"->","args":[{}]},{"file":"\/var\/www\/vhosts\/spa.vedcasts.com.br\/httpdocs\/bootstrap\/cache\/compiled.php","line":2399,"function":"sendRequestThroughRouter","class":"Illuminate\\Foundation\\Http\\Kernel","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]},{"file":"\/var\/www\/vhosts\/spa.vedcasts.com.br\/httpdocs\/public\/index.php","line":53,"function":"handle","class":"Illuminate\\Foundation\\Http\\Kernel","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]}]}

@vinicius73
Copy link
Member

vinicius73 commented Jan 2, 2017

Thanks @wit3
we have knowledge about this error #39 and #64

@wit3
Copy link
Author

wit3 commented Jan 2, 2017

@vinicius73 Ok. thanks!

@wit3 wit3 closed this as completed Jan 2, 2017
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