urbanopt / urbanopt-cli

URBANopt command line interface
https://docs.urbanopt.net/
Other
6 stars 2 forks source link

REopt connection issue #483

Open mfathollahzadeh opened 2 months ago

mfathollahzadeh commented 2 months ago

REopt connection Failed (RuntimeError)

_ Following the API request and adding API key to environment variables in Mac, still getting the runtime connection. Have confirmed the access to API key by printing API key right before the following message appears.

Screenshot 2024-09-24 at 5 47 09 PM

Even trying to access the following parts of the script with the associated API key fails:

@uri_submit = URI.parse("[https://developer.nrel.gov/api/reopt/v3/job?api_key=#{@nrel_developer_key}](https://developer.nrel.gov/api/reopt/v3/job?api_key=#%7B@nrel_developer_key%7D)")
@uri_submit_outagesimjob = URI.parse("[https://developer.nrel.gov/api/reopt/v3/outagesimjob?api_key=#{@nrel_developer_key}](https://developer.nrel.gov/api/reopt/v3/outagesimjob?api_key=#%7B@nrel_developer_key%7D)")
Screenshot 2024-09-24 at 5 50 53 PM