-
Notifications
You must be signed in to change notification settings - Fork 75
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
Receive 422 response when searching Issues #569
Comments
mmh weird, is the leading |
The leading
|
Ah okay I think I have some more info.
At this point the value of the I setup
It seems like percent encoding the |
good catch! 👍 |
I believe I've found the source of the issue. Whether or not it's a bug proper in http4s remains to be seen, but it appears that http4s uses different encoder settings for query parameters VS the main URL. I've submitted this to them as the above issue (the second one, the first was a similar issue I thought was related but was a bit different), so hopefully we will hear back soon! |
Fix is posted above ^ |
Fix #569 - Manually encode Uri query parameters
Hi! I am pretty new to Scala so bear with me. I can't really pinpoint what's going wrong, but hopefully I can explain it well enough.
Version
github4s: v0.26.0
What I trying to do
I am trying to use the Issue Search to find Pull Requests in a project, that are open and have a particular label. In the REPL, I've tried:
This returns response with a
422
status code:This results in a query string of
+repo:47degrees/github4s+type:pr+label:bug+state:open
. Although it looks a bit odd works fine as an API request.I noticed if everything except the
OwnerParamInRepository
the search succeeds just fine.Running
Returns a response of
Thanks for the great work!
The text was updated successfully, but these errors were encountered: