-
Notifications
You must be signed in to change notification settings - Fork 2
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
Problems with Installation #4
Comments
ATM bcite is a prototype and is supposed to run locally, hence I guess the problem is related to the absolute path of the API that you call twice in app.py line 102: line 119: there is a third call in main.js I see you have problems with all the paths actually in your online instance (I can't see the graphics). We'll fix it soon to run everywhere with a local path. In the meantime try to modify your absolute paths. |
Thank you for your response. I tried to change all paths but the result is still the same. Maybe also note that on the server the API is running on Is there an easy way to test that the API is working as expected? Maybe a short example request? |
Hi, Second, A complete workflow requires the API to be called three times, and works only if you input:
The last call is to confirm input data are correct and verified by the user. Hence I cannot paste here a short example request. |
Thank you. I switched to the new version and updated the python libraries. I don't see any error now, but the result is simply |
Did the triplestore start correctly? |
Which output? (The webservice outputs for me just with |
Just to double-check.
what the shell says at this point? |
Ah, I see. I run it on a server where I only have ssh access, therefore I start the app with ...:~/bcite$ python3 -m script.web.app 8000
http://0.0.0.0:8000/
127.0.0.1:55974 - - [02/Oct/2018 10:59:54] "HTTP/1.1 GET /" - 200 OK
127.0.0.1:55976 - - [02/Oct/2018 10:59:55] "HTTP/1.1 GET /static/js/main.js" - 200
127.0.0.1:55976 - - [02/Oct/2018 10:59:55] "HTTP/1.1 GET /static/js/Blob.min.js" - 200
127.0.0.1:55974 - - [02/Oct/2018 10:59:55] "HTTP/1.1 GET /static/js/FileSaver.js" - 200
127.0.0.1:55974 - - [02/Oct/2018 10:59:55] "HTTP/1.1 GET /static/js/mark.min.js" - 200
127.0.0.1:55978 - - [02/Oct/2018 10:59:55] "HTTP/1.1 GET /static/js/xlsx.core.min.js" - 200
127.0.0.1:55978 - - [02/Oct/2018 10:59:55] "HTTP/1.1 GET /static/css/tableexport.css" - 200
127.0.0.1:55978 - - [02/Oct/2018 10:59:57] "HTTP/1.1 GET /static/favicon.ico" - 200
127.0.0.1:55980 - - [02/Oct/2018 11:00:19] "HTTP/1.1 POST /" - 200 OK However, I see that the java process outputs that the service url is my web adress and not localhost. There are also two warnings:
How should that look like? |
I give it another attempt with docker, see zuphilip@fe77b9f but this leads me to the same problem(s)... |
Okay, I have never filled out the ORCID field and this is currently a problem, but can be fixed with #7. But now I see again the error from the beginning. The console shows then:
|
same behaviour for me. to avoid data entry with the form i can reproduce the post this way
|
I see, I tried again and everything works fine. I get that error only when I do not include the DOI of the citing article, which is a required field for creating the KG. |
I committed a change in |
Validation works for me now, but i see the same error as in the very beginning of this issue. It seems that the API request in line 81 is empty: Line 81 in 3611deb
i.e. after this line I have |
I tried to install bcite but didn't succeed. The online app shows for any input
and points to
bcite/script/web/app.py
Line 104 in 63d87e6
response=[]
. Any idea what could be the problem?Then I looked into
python3 script/api/test/bciteapi.py
but couldn't get this working. What I faced so far with this call:ImportError: No module named script.api.bciteapi
--> Fixed byexport PYTHONPATH="${PYTHONPATH}:/main/directory/of/the/repository"
but maybe you can fix that also in the code...rdflib.plugin.PluginException: No plugin registered for (json-ld,...
--> Fixed bypip install rdflib-jsonld
TypeError: the JSON object must be str, not 'bytes'
andAssertionError: Subject None must be an rdflib term
. --> How to fix that? Are tests working for you?The text was updated successfully, but these errors were encountered: