WikiWatershed / model-my-watershed

The web application front end for Model My Watershed.
https://modelmywatershed.org
Apache License 2.0
57 stars 31 forks source link

Exception: SRAT Catchment API request failed: 502 {"message": "Internal server error"} #3161

Open rajadain opened 5 years ago

rajadain commented 5 years ago

View details in Rollbar: https://rollbar.com/WikiWatershed/ModelMyWatershed/items/44/

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/celery/app/trace.py", line 374, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/celery/app/trace.py", line 629, in __protected_call__
    return self.run(*args, **kwargs)
  File "apps/modeling/tasks.py", line 392, in run_srat
    (r.status_code, r.text))
Exception: SRAT Catchment API request failed: 502 {"message": "Internal server error"}
rajadain commented 5 years ago

This error was seen for this project: https://staging.modelmywatershed.org/project/1432/scenario/2542

Which is using the Salt River below Saguaro Lake, HUC-10 Watershed (ID 1506010603) area of interest, centered around Phoenix AZ:

image

Mainly, the error we're getting back is:

HTTP/1.1 400 Bad Request
Access-Control-Allow-Origin: *
Connection: keep-alive
Content-Length: 166
Content-Type: application/json
Date: Thu, 29 Aug 2019 15:21:00 GMT
X-Amzn-Trace-Id: Root=1-5d67ed5c-3751031994400cf8df28f1b0;Sampled=0
x-amz-apigw-id: fMIGhHw7CYcFvWA=
x-amzn-RequestId: 9bbaa942-ca70-11e9-ac02-37c31465dd89

Additional properties are not allowed ('150601060306', '150601060304', '150601060303', '150601060307', '150601060305', '150601060301', '150601060302' were unexpected)

This is likely because the SRAT API only supports areas limited to the Delaware River Basin. If that is the case, this card can be closed. If that is not the case, the issue is likely on the SRAT end. I will inform our colleagues that maintain it and report my findings here.