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

PXD-2311 ⁃ resolve 500 internal server errors for several indexd endpoints #193

Open
philloooo opened this issue Nov 8, 2018 · 0 comments

Comments

@philloooo
Copy link
Contributor

philloooo commented Nov 8, 2018

Could not hit POST /bulk/documents endpoint —got 500 internal server error.
Could not hit GET /_query/urls/metadata/q —got 500 internal server error.
Could not hit POST/ga4gh/dos/v1/dataobjects/list -got 500 internal server error.

=======================================================

How to replicate error for POST /bulk/documents endpoint:

  1. List all records:

$ curl -X GET https://zlchitty.planx-pla.net/index/index/

{ some big JSON object will be returned in the response }

Maybe the GUIDs in there are:
"0b19a1b1-f5b0-4104-9250-f26205ca3ed9"
"768237a8-c79c-48f2-8c77-6e21007e53c3"
"d622beca-bce8-49bc-9433-746d3904982f"

or whatever.

  1. Use some of these GUIDS in the "ids" field in the POST /bulk/documents request:

$ curl X POST -data '

{ "ids":["0b19a1b1-f5b0-4104-9250-f26205ca3ed9","768237a8-c79c-48f2-8c77-6e21007e53c3"] }

' H 'ContentType: application/json' H 'cachecontrol: no-cache'
https://zlchitty.planx-pla.net/index/bulk/documents

^^ this returns:vv

<title>500 Internal Server Error</title>

Internal Server Error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

The same thing happens with an empty list of ids:

$ curl X POST -data '

{ "ids":[] }

' H 'ContentType: application/json' H 'cachecontrol: no-cache' https://zlchitty.planx-pla.net/index/bulk/documents

<title>500 Internal Server Error</title>

Internal Server Error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

=======================================================

How to replicate error for GET /_query/urls/metadata/q :

$ curl -X GET https://zlchitty.planx-pla.net/index/_query/urls/metadata/q?key="somekey"&value="someval"

Without params:

$ curl -X GET https://zlchitty.planx-pla.net/index/_query/urls/metadata/q

Both print an error 500 and hang.

=======================================================

How to replicate error for POST/ga4gh/dos/v1/dataobjects/list:

$ curl X POST https://zlchitty.planx-pla.net/index/ga4gh/dos/v1/dataobjects/list -data '{}'

=======================================================

These also seem to cause a hang (when using multiple query params):
$ curl ~~X GET https://zlchitty.planx~~pla.net/index/urls/?hash=md5:4dfea689543c0939e0ae876b350d1b5d&size=42

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