You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The API should take in any node in the ontology and then returns JSON that represents all relevant data stored in the ontology.
Currently this is what happens:
Additionally, the error screen showing I think is also the wrong error screen? I think the error should be showing the search_node API error message if there is an issue.
climatemind-backend-master$ env FLASK_APP=climatemind.py flask run
* Serving Flask app "climatemind.py"
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
* Owlready2 * Warning: optimized Cython parser module 'owlready2_optimized' is not available, defaulting to slower Python implementation
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
127.0.0.1 - - [25/Jul/2020 21:29:03] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [25/Jul/2020 21:29:03] "GET /favicon.ico HTTP/1.1" 404 -
[2020-07-25 21:30:31,145] ERROR in app: Exception on /ontology [GET]
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/Users/kameronr/Documents/personal/climate change outreach/new uploads/climatemind-backend-master/knowledge_graph/routes.py", line 21, in query
mind = app.config["MIND"]
KeyError: 'MIND'
127.0.0.1 - - [25/Jul/2020 21:30:31] "GET /ontology?query=coal+mining HTTP/1.1" 500 -
The text was updated successfully, but these errors were encountered:
The fix may run into issues with code recently merged to master. If this happens, feel free to copy old working code and rename them as separate functions and change the API to work accordingly. The new changes merged to master are meant to be used for a different API endpoint (the multiparameter endpoint). When we merged to master, I forgot about ensuring the code works with our old single-node endpoint.
We need to get CI/CD working for backend too. Ideally the recent merges to master shouldn't have even been allowed. @rolandoldengarm Please let us know what we need to do on the backend to get standards in line with what's needed for CI/CD. I'm assuming having certain kinds of tests and protocols for merging are expected, just not sure what exactly.
The API should take in any node in the ontology and then returns JSON that represents all relevant data stored in the ontology.
Currently this is what happens:
![Screen Shot 2020-07-25 at 9 49 11 PM](https://user-images.githubusercontent.com/19840874/88471682-d329dc00-cec0-11ea-9e94-de637f99bfa3.png)
Additionally, the error screen showing I think is also the wrong error screen? I think the error should be showing the search_node API error message if there is an issue.
The text was updated successfully, but these errors were encountered: