Open TMorville opened 6 years ago
I think you should be logged in as a superuser to retrieve all videos without providing playlist nor organization.
Just create a supersuser using ./manage.py createsuperuser`` and log in at
/admin`
I did that, but http://127.0.0.1:8000/api/v1/videos/
and http://127.0.0.1:8000/admin/pipeline/video/
remains empty.
Is the video object present in video list at /admin/pipeline/video/
and what is its processing status ?
Can you see the file in S3 console ?
http://127.0.0.1:8000/admin/pipeline/video/
is empty. I haven't put anything into production, so I dont have a S3 instance running. I assumed that this could be handled on localhost? If that is the problem and having a S3 instance is mandatory, perhaps you could add a few instructions on how to set up videofront with S3?
New development. Apparently, my videouploadurl was slightly wrong. So now after doing
curl -X POST -H "Authorization: Token 034b6712fd7b2f0bfda2de5717fe6e69d53af7f8" http://127.0.0.1:8000/api/v1/videouploadurls/
I get
{"id":"W11CC2Vv1P7x","expires_at":1529494637,"origin":null,"playlist":null}%
and then doing
curl -X POST -H "Authorization: Token 034b6712fd7b2f0bfda2de5717fe6e69d53af7f8" -F file=@/Users/tmo/tmp/nlp_search480.mp4 http://127.0.0.1:8000/api/v1/videos/W11CC2Vv1P7x/upload/
Gives a rather long debug statement.
traceback
:
Traceback:
File "/anaconda3/envs/videofront/lib/python3.5/site-packages/django/core/handlers/exception.py" in inner
39. response = get_response(request)
File "/anaconda3/envs/videofront/lib/python3.5/site-packages/django/core/handlers/base.py" in _legacy_get_response
249. response = self._get_response(request)
File "/anaconda3/envs/videofront/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
187. response = self.process_exception_by_middleware(e, request)
File "/anaconda3/envs/videofront/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
185. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/anaconda3/envs/videofront/lib/python3.5/site-packages/django/views/decorators/csrf.py" in wrapped_view
58. return view_func(*args, **kwargs)
File "/anaconda3/envs/videofront/lib/python3.5/site-packages/rest_framework/viewsets.py" in view
87. return self.dispatch(request, *args, **kwargs)
File "/anaconda3/envs/videofront/lib/python3.5/site-packages/rest_framework/views.py" in dispatch
474. response = self.handle_exception(exc)
File "/anaconda3/envs/videofront/lib/python3.5/site-packages/rest_framework/views.py" in handle_exception
434. self.raise_uncaught_exception(exc)
File "/anaconda3/envs/videofront/lib/python3.5/site-packages/rest_framework/views.py" in dispatch
471. response = handler(request, *args, **kwargs)
File "/Users/tmo/projects/videofront/api/v1/views.py" in upload
374. tasks.upload_video(video_upload_url.public_video_id, video_file)
File "/Users/tmo/projects/videofront/pipeline/tasks.py" in upload_video
100. backend.get().upload_video(public_video_id, file_object)
File "/Users/tmo/projects/videofront/pipeline/backend.py" in upload_video
15. raise NotImplementedError
Exception Type: NotImplementedError at /api/v1/videos/W11CC2Vv1P7x/upload/
I've followed your install and usage steps and after doing
curl -X POST -H "Authorization: Token 034b6712fd7b2f0bfda2de5717fe6e69d53af7f8" -F file=@/Users/tmo/tmp/nlp_search480.mp4 http://127.0.0.1:8000/api/v1/videos/0sqmLiEuLpGJ/upload/
I access
http://127.0.0.1:8000/api/v1/videos/
which is empty:Something I've misunderstood?