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

Exception when submitting requests #77

Closed
ReneRanzinger opened this issue Apr 26, 2022 · 5 comments
Closed

Exception when submitting requests #77

ReneRanzinger opened this issue Apr 26, 2022 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@ReneRanzinger
Copy link

ReneRanzinger commented Apr 26, 2022

Tool:
Glycam API

Bug Description:
When submitting glycan requests sometimes the following is returned instead of the expected JSON:

Cannot construct instance of `org.glycam.api.client.json.response.SubmitInformation` (although at least one Creator exists): no int/Int-argument constructor/factory method to deserialize from Number value (404)
 at [Source: (String)""404 page not found
""; line: 1, column: 1]

This behavior is arbitrary and not related to glycan sequences. Resending sequence later on will execute just fine/

To Reproduce:
Arbitrary

Expected behavior
This case has 2! problems:

  1. The webservices does not return a JSON with an error message. Instead it prints the exception.
  2. The actual problem that no job was created.
@danwentworthart
Copy link
Contributor

I am unable to find a way to replicate this, but have reached out in case others recognize the source of the issue. Including Andrew, as he has some insight regarding nginx, in case that is involved.

@danwentworthart danwentworthart added the bug Something isn't working label Apr 28, 2022
@danwentworthart
Copy link
Contributor

I am seeing many matches to this error involving Java. Is there any chance java is the entity catching this error?
If so, I would likely be more helpful with more information, such as what sequence caused the error, or what request, etc...
Given that, I could try to replicate locally and maybe learn more?

@ReneRanzinger
Copy link
Author

ReneRanzinger commented Apr 28, 2022

Attached is the list of sequences that cased the issue. But as the original text said its not reproducible. Submitting the same sequence later will not necessary give you the error again. It seems that is an issue that is caused with too much load.

Column 1: GlyTouCan ID
Column 2: Glycam Sequence

Exception.zip

Just to be clear the problem is not with Java. The problem is that the server responds with with HTML (instead of JSON) and send a 404 HTML response.

@danwentworthart
Copy link
Contributor

Got it. That will make this a challenge to solve, but I will think on this.

@cexum
Copy link

cexum commented Mar 23, 2023

We believe we have resolved this problem, but feel free to reopen the ticket if the behavior persists.

@cexum cexum closed this as completed Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants