Commit 75beac92 authored by Juergen Enge's avatar Juergen Enge
Browse files

error correction

parent 0c07fd95
Pipeline #15560 passed with stages
in 3 minutes and 39 seconds
......@@ -39,14 +39,13 @@ folder = "C:/daten/go/src/gitlab.switch.ch/memoriav/memobase-2020/services/strea
[resolverDBMySQL]
#if dsn is empty, the static resolver will be used
#[username[:password]@][protocol[(address)]]/dbname[?param1=value1&...&paramN=valueN]
dsn = "test:HDNQiaqNqu4IjmUPATJr@tcp(localhost:3306)/test"
#dsn = "urlchecker:siex5ieNguuQuei@tcp(localhost:4306)/medienserver"
#dsn = ""
#dsn = "test:HDNQiaqNqu4IjmUPATJr@tcp(localhost:3306)/test"
dsn = "urlchecker:siex5ieNguuQuei@tcp(localhost:4306)/medienserver"
# should be smaller than server connection timeout to allow controlled reconnect
connMaxTimeout = "4h"
# query has to return the fields uri, access and protocol. One parameter
#query = "SELECT uri, access, proto AS protocol, `status` FROM mediaserver.entities WHERE sig = ?"
query = "SELECT `uri`, `access`, `proto` AS protocol, `status`, `type`, `mimetype`, `width`, `height`, `duration` FROM test.entities_metadata WHERE sig = ?"
query = "SELECT `uri`, `access`, `proto` AS protocol, `status`, `type`, `mimetype`, `width`, `height`, `duration` FROM entities_metadata WHERE sig = ?"
schema = "test"
[signatures]
......
......@@ -51,7 +51,7 @@ func (ms *memoServer) mainHandler(w http.ResponseWriter, req *http.Request) {
return
}
action, _ := vars["action"]
paramstr, _ := vars["paramstr"]
paramstr, _ := vars["params"]
params := strings.Split(paramstr, "/")
// resolve signature
......@@ -98,6 +98,6 @@ func (ms *memoServer) mainHandler(w http.ResponseWriter, req *http.Request) {
}
}
}
ms.DoPanicf(w, http.StatusInternalServerError, "no handler for action %s on signature %s found", action, me.Signature)
ms.DoPanicf(w, http.StatusInternalServerError, "no handler for action %s on signature %s (%v) found", action, me.Signature, me.Type)
return
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment