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

Switching to POST requests for SOLR #223

Merged
merged 1 commit into from
Dec 15, 2022

Conversation

jeremyf
Copy link
Contributor

@jeremyf jeremyf commented Dec 15, 2022

Reviewing the logs I found:

ERROR -- : [c94e8538d4e27e31ce8995e3cf6af992] RSolr::Error::Http - 400 Bad Request
Error: {
  "responseHeader":{
    "zkConnected":true,
    "status":400,
    "QTime":0,
    "params":{
      "facet.field":["human_readable_type_sim",
        "resource_type_label_ssim",
        "creator_search_sim",
        "keyword_sim",
        "subject_sim",

The following line showed a string that was 2284 characters long and ended in f.member_of_collection_ids_ssim.facet.matches=%5E%24; those trailing characters decoded ^$ which could be a complete end of a query (e.g. an empty string regexp match).

Related to:

@samvera/hyku-code-reviewers

Reviewing the logs I found:

```shell
ERROR -- : [c94e8538d4e27e31ce8995e3cf6af992] RSolr::Error::Http - 400 Bad Request
Error: {
  "responseHeader":{
    "zkConnected":true,
    "status":400,
    "QTime":0,
    "params":{
      "facet.field":["human_readable_type_sim",
        "resource_type_label_ssim",
        "creator_search_sim",
        "keyword_sim",
        "subject_sim",
```

The following line showed a string that was 2284 characters long and
ended in `f.member_of_collection_ids_ssim.facet.matches=%5E%24`; those
trailing characters decoded `^$` which could be a complete end of a
query (e.g. an empty string regexp match).

Related to:

- samvera/hyrax#4728
- #222
Copy link
Contributor

@laritakr laritakr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember you helping me figure out this problem a while back in some other repo!

@jeremyf jeremyf merged commit 8229633 into main Dec 15, 2022
@jeremyf
Copy link
Contributor Author

jeremyf commented Dec 15, 2022

And I have no memory of figuring that out either!

@jeremyf jeremyf deleted the jeremyf---favor-post-method-for-solr-requests branch December 15, 2022 18:06
jeremyf added a commit that referenced this pull request Dec 21, 2022
Reviewing the logs I found:

```shell
ERROR -- : [c94e8538d4e27e31ce8995e3cf6af992] RSolr::Error::Http - 400 Bad Request
Error: {
  "responseHeader":{
    "zkConnected":true,
    "status":400,
    "QTime":0,
    "params":{
      "facet.field":["human_readable_type_sim",
      "resource_type_label_ssim",
      "creator_search_sim",
      "keyword_sim",
      "subject_sim",
```

The following line showed a string that was 2284 characters long and
ended in `f.member_of_collection_ids_ssim.facet.matches=%5E%24`; those
trailing characters decoded `^$` which could be a complete end of a
query (e.g. an empty string regexp match).

Related to:

- samvera/hyrax#4728
- #222
- #223
- @9253f1a0c3cee81941c779765eb6a360309ea77b
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.

3 participants