actinia-org / actinia-core

Actinia Core is an open source REST API for scalable, distributed, high performance processing of geographical data that uses mainly GRASS GIS for computational tasks (DOI: https://doi.org/10.5281/zenodo.5879231) | Tutorial: https://actinia-org.github.io/actinia-core/ | Docker: https://hub.docker.com/r/mundialis/actinia-core
https://actinia.mundialis.de/
GNU General Public License v3.0
81 stars 23 forks source link

First run of server, ERROR message: werkzeug._internal code 400, message Bad Request version #176

Closed ahalota closed 2 years ago

ahalota commented 3 years ago

I'm testing out a new install of actinia.

I had issues with step 7 of the instructions for accessing via curl: curl -u superadmin:abcdefgh -X GET http://localhost:5000/locations

That returned 404 Not found, as did trying it with http://0.0.0.0:5000/locations. Nothing was shown on the terminal that is running the actinia server.

I tried both of these again, this time as https. In this case I did see something actually show up on the server, but not correct. At least I see it is getting the message

halota@basement-machine:~$ curl -u superadmin:abcdefgh -X GET https://localhost:5000/locations
curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number
halota@basement-machine:~$ curl -u superadmin:abcdefgh -X GET https://0.0.0.0:5000/locations
curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number

The server shows after these requests (once each, only one shown here):

[2021-04-13 11:37:27,847] ERROR     : werkzeug._internal  -127.0.0.1 - - [13/Apr/2021 11:37:27]
 code 400, message Bad request version
 ("Ðßs3\x82W.\x9e\x00>\x13\x02\x13\x03\x13\x01À,À0\x00\x9f̨̩̪À+À/\x00\x9eÀ$À(\x00kÀ#À'\x00gÀ")
 [in /home/halota/actinia/workspace/tmp/actinia_venv/lib/python3.8/site-packages/werkzeug/_internal.py:113]
ahalota commented 3 years ago

After further reading, I believe the error message with https attempt is correct. So the question now is more why the server did not react or find anything for the http version.

mmacata commented 3 years ago

Hi ahalota, can you try with /api/v1/locations please?

ahalota commented 3 years ago

Success! Great. So my next steps will be to try and load my dataset in here and see if I can access it via the API.

anikaweinmann commented 2 years ago

Documentation has been improved, closing ticket