Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

OPTIONS not found path was throw an error #245

Closed
Moln opened this issue Mar 21, 2018 · 2 comments
Closed

OPTIONS not found path was throw an error #245

Moln opened this issue Mar 21, 2018 · 2 comments
Labels

Comments

@Moln
Copy link

Moln commented Mar 21, 2018

Request OPTIONS /not-found-action

Throw an error:

ErrorException: implode(): Invalid arguments passed in file D:\www\frameworks\ze3\vendor\zendframework\zend-expressive-router\src\Middleware\ImplicitOptionsMiddleware.php on line 84
Stack trace:
  1. ErrorException->() D:\www\frameworks\ze3\vendor\zendframework\zend-expressive-router\src\Middleware\ImplicitOptionsMiddleware.php:84
  2. implode() D:\www\frameworks\ze3\vendor\zendframework\zend-expressive-router\src\Middleware\ImplicitOptionsMiddleware.php:84
  3. Zend\Expressive\Router\Middleware\ImplicitOptionsMiddleware->process() D:\www\frameworks\ze3\vendor\zendframework\zend-expressive\src\Middleware\LazyLoadingMiddleware.php:46
  4. Zend\Expressive\Middleware\LazyLoadingMiddleware->process() D:\www\frameworks\ze3\vendor\zendframework\zend-stratigility\src\MiddlewarePipe.php:78
  5. Zend\Stratigility\MiddlewarePipe->handle() D:\www\frameworks\ze3\vendor\zendframework\zend-expressive-router\src\Middleware\ImplicitHeadMiddleware.php:84
  6. Zend\Expressive\Router\Middleware\ImplicitHeadMiddleware->process() D:\www\frameworks\ze3\vendor\zendframework\zend-expressive\src\Middleware\LazyLoadingMiddleware.php:46
  7. Zend\Expressive\Middleware\LazyLoadingMiddleware->process() D:\www\frameworks\ze3\vendor\zendframework\zend-stratigility\src\MiddlewarePipe.php:78
  8. Zend\Stratigility\MiddlewarePipe->handle() D:\www\frameworks\ze3\vendor\zendframework\zend-expressive-router\src\Middleware\RouteMiddleware.php:54
  9. Zend\Expressive\Router\Middleware\RouteMiddleware->process() D:\www\frameworks\ze3\vendor\zendframework\zend-expressive\src\Middleware\LazyLoadingMiddleware.php:46
 10. Zend\Expressive\Middleware\LazyLoadingMiddleware->process() D:\www\frameworks\ze3\vendor\zendframework\zend-stratigility\src\MiddlewarePipe.php:78
 11. Zend\Stratigility\MiddlewarePipe->handle() D:\www\frameworks\ze3\vendor\zendframework\zend-expressive-helpers\src\ServerUrlMiddleware.php:37
 12. Zend\Expressive\Helper\ServerUrlMiddleware->process() D:\www\frameworks\ze3\vendor\zendframework\zend-expressive\src\Middleware\LazyLoadingMiddleware.php:46
 13. Zend\Expressive\Middleware\LazyLoadingMiddleware->process() D:\www\frameworks\ze3\vendor\zendframework\zend-stratigility\src\MiddlewarePipe.php:78
 14. Zend\Stratigility\MiddlewarePipe->handle() D:\www\frameworks\ze3\vendor\zendframework\zend-stratigility\src\Middleware\ErrorHandler.php:143
 15. Zend\Stratigility\Middleware\ErrorHandler->process() D:\www\frameworks\ze3\vendor\zendframework\zend-expressive\src\Middleware\LazyLoadingMiddleware.php:46
 16. Zend\Expressive\Middleware\LazyLoadingMiddleware->process() D:\www\frameworks\ze3\vendor\zendframework\zend-stratigility\src\MiddlewarePipe.php:78
 17. Zend\Stratigility\MiddlewarePipe->handle() D:\www\frameworks\ze3\vendor\zendframework\zend-httphandlerrunner\src\RequestHandlerRunner.php:95
 18. Zend\HttpHandlerRunner\RequestHandlerRunner->run() D:\www\frameworks\ze3\vendor\zendframework\zend-expressive\src\Application.php:81
 19. Zend\Expressive\Application->run() D:\www\frameworks\ze3\public\index.php:29
 20. {closure}() D:\www\frameworks\ze3\public\index.php:30

Expected results

Response 404 status.

Actual results

Throw an error.

@Moln Moln changed the title Request OPTIONS not found URL was throw an error OPTIONS not found path was throw an error Mar 21, 2018
@geerteltink
Copy link
Member

This is a zend-expressive-router related issue.

@geerteltink
Copy link
Member

weierophinney added a commit to zendframework/zend-expressive-router that referenced this issue Mar 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants