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

Passing search parameters to a root endpoint throws #65

Open
VictorWesterlund opened this issue Apr 29, 2024 · 0 comments
Open

Passing search parameters to a root endpoint throws #65

VictorWesterlund opened this issue Apr 29, 2024 · 0 comments
Labels
🪲 bug Something isn't working

Comments

@VictorWesterlund
Copy link
Owner

Passing any search parameter to a root endpoint will throw a TypeError
For example:

https://api.example.com/?foo=bar
"PHP message: PHP Warning:  Undefined array key "path" in /reflect/src/request/Router.php on line 64; PHP message: PHP Fatal error:  Uncaught TypeError: Reflect\Request\Router::get_endpoint(): Return value must be of type string, null returned in /reflect/src/request/Router.php:66
Stack trace:
#0 /reflect/src/request/Router.php(35): Reflect\Request\Router::get_endpoint()
#1 /reflect/public/index.php(11): Reflect\Request\Router->__construct()
#2 {main}
  thrown in /reflect/src/request/Router.php on line 66" while reading response header from upstream, client: -, server: api.example.com, request: "GET /?foo=bar HTTP/2.0", upstream: "fastcgi://unix:/run/php/php8.3-fpm.sock:", host: "api.example.com"
@VictorWesterlund VictorWesterlund added the 🪲 bug Something isn't working label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪲 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant