REopt V3 API returns Status Code = 200 and empty text #168
-
I'm trying to fix an issue we are having with the REopt API call from SAM (NREL/SAM#1830). The REopt API POST request that SAM constructs from the inputs in its user interface returns an empty string and Status Code = 200 instead of a UUID. I'm having trouble figuring out what's wrong with the request. I've attached two files:
Could you help me figure out what the problem is? I'm hoping to fix this in time for the Fall 2024 version of SAM, which we hope to release in the next couple of weeks. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Just updating this thread because Paul and I had back-and-forth via email. One of the key issues was a big number of 1e38 was too large for the HiGHS solver to handle by default (max of 1e15 by default). Updating the solver setting to accept a larger big number made the solve time really long, so the solution for at least that issue was to update the big number sent by SAM to REopt to 1e14. The SCIP solver was compatible with the larger big number, but that took a long time to solve as well. Paul - feel free to elaborate on some of the other issues that were resolved. |
Beta Was this translation helpful? Give feedback.
-
@Bill-Becker Thanks for following up. The other change we made to get things working was to use "stable" instead if "v3" in the URL for the REopt API call from the SAM user interface. This is not ideal for us because we want to avoid situations where an update to the stable version of REopt that breaks SAM's API call is out of sync with the SAM release schedule. |
Beta Was this translation helpful? Give feedback.
This is a confusing one! This works from Postman, but not from python requests. I tried to add all the same Headers that Postman was sending, for the python request. The culprit (that we're only seeing from non-Postman requests to /v3) is the urdb_response object because when I remove that it goes through with python requests to /v3.
We don't have any plans to make /v4 as of now, and we will certainly make sure you know when we even start making plans to let you know about the timeline (at least 6 months heads up!!).