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

Query params are always an empty object #5

Closed
derekryms opened this issue Jul 18, 2024 · 1 comment
Closed

Query params are always an empty object #5

derekryms opened this issue Jul 18, 2024 · 1 comment

Comments

@derekryms
Copy link

I was going through the animal farm app part of the course and was able to get the endpoint running on localhost, but for whatever reason when I try to pass query params with "http://localhost:8080/?=bear", req.query is always an empty object so q is always undefined.

So I pulled down the repo, npm installed both front end and server, and still experiencing the exact same behavior. Any ideas? Nothing I've found on SO or here has solved my issues yet.

@derekryms
Copy link
Author

I'm an idiot... I was missing the "q" in the url...

Should be "http://localhost:8080/?q=bear" and all is well.

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

1 participant