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

BCL website certificate issue #37

Open
macumber opened this issue Apr 6, 2024 · 6 comments
Open

BCL website certificate issue #37

macumber opened this issue Apr 6, 2024 · 6 comments

Comments

@macumber
Copy link
Contributor

macumber commented Apr 6, 2024

@tijcolem @kflemin Currently there seems to be an issue with the certificate associated with https://bcl.nrel.gov/, all API queries are failing with ECONNRESET

@kflemin
Copy link
Contributor

kflemin commented Apr 7, 2024

@macumber, try again today? We had power outages at NREL yesterday...

@macumber
Copy link
Contributor Author

macumber commented Apr 7, 2024

Thanks @kflemin the power outage explains the issues yesterday. However, I was still having trouble with a search that was working last week but seems to have stopped working, the following search returns 0 results when previously (last weekend) it was non-empty:

https://bcl.nrel.gov/api/metasearch/%2A.xml?fq%5B%5D=bundle:nrel_measure&fq%5B%5D=tid:953&api_version=2.0

When I search https://bcl.nrel.gov/api/metasearch/%2A.xml?fq%5B%5D=bundle:nrel_measure&api_version=2.0 I see:

<taxonomy_term>
    <name>Envelope</name>
    <tid>953</tid>
    <count>82</count>
</taxonomy_term>

Did something change? Is the search by tid no longer working?

@kflemin
Copy link
Contributor

kflemin commented Apr 8, 2024

I made some updates to the BCL, so perhaps something got broken in the process. i'll look into it. Search by tid should work!

@kflemin
Copy link
Contributor

kflemin commented Apr 8, 2024

@macumber, I think I fixed it. Would you try again and let me know if that looks correct? thanks!

@macumber
Copy link
Contributor Author

macumber commented Apr 8, 2024

Yup, that fixed it, thanks so much! For my information, should we be updating this query to a more recent version or is the query I am using supported for the long term?

@kflemin
Copy link
Contributor

kflemin commented Apr 9, 2024

The query you are using is the "legacy" API, but we don't have plans to stop supporting it. It might not get as much attention as the new/stable API syntax, though. The stable API doesn't let you access by TID anymore, but you could do something like the following to retrieve the same information:

https://bcl.nrel.gov/api/metasearch/*.xml?fq=bundle:measure&fq=measure_tags:Envelope

You can see example queries in the new syntax here: https://bcl.nrel.gov/documentation#examples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants