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

Error code 500 in ratings template catalog #865

Open
adamkorynta opened this issue Sep 5, 2024 · 4 comments
Open

Error code 500 in ratings template catalog #865

adamkorynta opened this issue Sep 5, 2024 · 4 comments
Assignees
Labels

Comments

@adamkorynta
Copy link
Collaborator

Produced through CWMSVue when loading CWBI Test data using office "NAB":

GET https://cwms-data-test.cwbi.us/cwms-data/ratings/template?page-size=1000&office=NAB

Error code: 500

{
    "message": "Failed to process request: Number of independent parameters does not match number of rating methods. indParams: Opening,Head methodsForParam: NEAREST,LINEAR,NEAREST",
    "incidentIdentifier": "3324399523317528522",
    "details": {}
}
@adamkorynta adamkorynta changed the title Error code 500 in ratings metadata catalog Error code 500 in ratings template catalog Sep 5, 2024
@MikeNeilson
Copy link
Contributor

indParams: Opening,Head methodsForParam: NEAREST,LINEAR,NEAREST

I believe this is an error with a particular rating table. Perhaps CDA can handle it a bit more gracefully, but other rating templates with multiple parameters do infact contain the / and follow on values.

@MikeNeilson
Copy link
Contributor

MikeNeilson commented Sep 6, 2024

throw new IllegalStateException("Number of independent parameters does not match "
is where the exception is thrown. Perhaps the calling buildRatingTemplate should catch the exception and move on.

@zack-rma
Copy link
Collaborator

I was unable to recreate this issue with tests on my Docker DB instance. Is there a specific issue with the first record of the results that I can try to reproduce?

@MikeNeilson
Copy link
Contributor

You might be able to recreate if you're connected to the HEC NAB copy, but I'm not sure if you have access, or if we can even set that up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: To triage
Development

No branches or pull requests

4 participants