Afrostream / afrostream-back-end

Simple backo for afrostream
1 stars 0 forks source link

bug: /api/videos/:videoId should always return 200ok to afrostream-admin client #365

Closed syndr0m closed 7 years ago

syndr0m commented 7 years ago

current code return 500 error when PF state is "processing" even for afrostream-admin. afrostream-admin code should not call the PF.

2016-10-12T16:40:39.650870+00:00 app[web.2]: [ERROR] [PF]: assetsStreams should not be empty Error: [PF]: assetsStreams should not be empty
2016-10-12T16:40:39.650872+00:00 app[web.2]:     at /app/pf.js:182:15
2016-10-12T16:40:39.650873+00:00 app[web.2]:     at _fulfilled (/app/node_modules/q/q.js:834:54)
2016-10-12T16:40:39.650874+00:00 app[web.2]:     at self.promiseDispatch.done (/app/node_modules/q/q.js:863:30)
2016-10-12T16:40:39.650874+00:00 app[web.2]:     at Promise.promise.promiseDispatch (/app/node_modules/q/q.js:796:13)
2016-10-12T16:40:39.650875+00:00 app[web.2]:     at /app/node_modules/q/q.js:604:44
2016-10-12T16:40:39.650876+00:00 app[web.2]:     at runSingle (/app/node_modules/q/q.js:137:13)
2016-10-12T16:40:39.650877+00:00 app[web.2]:     at flush (/app/node_modules/q/q.js:125:13)
2016-10-12T16:40:39.650878+00:00 app[web.2]:     at process._tickDomainCallback (node.js:381:11) [Error: [PF]: assetsStreams should not be empty]
2016-10-12T16:40:39.651710+00:00 app[web.2]: 10.195.152.96 - - "GET /api/videos/01234567-89ab-cdef-0900-000000000000?backo=1 HTTP/1.1" 500 154.294 ms - 120 "-" "-" | client-ip=86.67.60.196 
2016-10-12T16:40:39.652433+00:00 app[web.2]: [INFO]: [REQUEST-PF]: [REQUEST-10168]:  response received, http.statusCode=200
syndr0m commented 7 years ago

done