TypeError in doc_writer.py
Closed this issue · 2 comments
I'm submitting a
- bug report.
- feature request.
Current Behaviour:
While using query querying_mechanism.py "TypeError: Cannot mix str and non-str arguments" occurred in doc_writer.py.
Expected Behaviour:
querying_mechanism.py should work normally, the issue is due to doc_maker.py which is passing dict instead of str in API_NAME argument.
Steps to reproduce:
python querying_mechanism.py
url>>>http://localhost:8080/serverapi/
Do you want to work on this issue?
yes
Have you checked that the API
variable is set correctly?
I have tested it with the default hydrus server,
and if we don't set the variables then the default else block should be executed.
i.e
The entrypoint argument is a dict object which is being received if the else block is executed, but it should the str.
I have checked it by printing both the arguments base_url & API.
The solution Is to change arguments to entrypoint['@id']
.
It worked.