Closed lgcshy closed 9 months ago
The latest
tag for the Docker image still points to tusd v1, where the hook type is not present in the hook request: https://github.com/tus/tusd/blob/a1e1fdfbd78d50df108e98c2ad5a6b6477ece3ff/cmd/tusd/cli/hooks/http.go#L46 The main branch of this repo already contains the code for v2, which we hope to release today and you are already using in your hook implementation.
It should be enough for you to use the latest v2 release candidate image: tusproject/tusd:2.0.0-rc21
Thank you Aconut, thank you for your answer, it helped me a lot.
Question I set up http hook endpoint. There is no way to distinguish the type of hook when receiving a hook, because the type parsed through json is always empty.
Setup details my docker-compose.yml:
my hook server:
----------------------logs -------------------- tusd logs:
Unable to get exact hook type.......