Discussions

Ask a Question
Back to All

why do I get: "HTTP 404 Not Found"

my code (python client):

from devicehive import DeviceHiveApi
urlauth = 'http://192.168.0.40:8090/dh/rest'
login = 'dhadmin'
password = 'dhadmin#911'
device_hive_api = DeviceHiveApi(url_auth, login=login, password=password)
info = device_hive_api.get_info() #working
user = device_hive_api.get_current_user() #error "HTTP 404 Not Found"