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

from_request() error handling #999

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

stella3d
Copy link

@stella3d stella3d commented Mar 8, 2025

explode = false panic

we have an issue in our servers that has prevented us from using explode = false to accept array parameters in routes.

when a request was made missing some expected query parameters with explode = false, the request would panic on the second .unwrap() call in the previous version of from_request.

this adds some basic error handling around that scenario to prevent runtime panics.

"cookie" feature change

i'm not sure why, this was just necessary to get it building. unrelated to the real change. seems to be an issue on master as well.

stella3d added 2 commits March 7, 2025 19:45
return param not found errors instead of panic

remove extra whitespace
@attila-lin
Copy link
Collaborator

Hi cookie should fix now. would you remove it again and fmt?

@sunli829 sunli829 force-pushed the master branch 6 times, most recently from 1038d6a to 54023cc Compare March 24, 2025 02:21
@sunli829 sunli829 force-pushed the master branch 5 times, most recently from b7798f9 to d501357 Compare March 30, 2025 03:48
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

Successfully merging this pull request may close these issues.

2 participants