greenscreen
greenscreen copied to clipboard
500 exceptions when trying to add chromecast
When trying to add a chromecast, the chrome app pops up and allows me to select a chromecast, but nothing happens, but I do notice some 500 exceptions in the logs:
GET /chromecasts/new 304 1.495 ms - -
GET /css/app.css 304 0.487 ms - -
GET /js/vendor/castaway.js 304 2.641 ms - -
GET /js/vendor/jquery.js 304 2.479 ms - -
GET /js/vendor/underscore.js 304 3.594 ms - -
GET /js/vendor/angular.js 304 3.234 ms - -
GET /js/vendor/angular-route.js 304 3.707 ms - -
GET /js/vendor/angular-resource.js 304 6.284 ms - -
GET /js/gscreen.js 304 5.313 ms - -
GET /js/gscreen-config.js 304 3.190 ms - -
GET /js/vendor/angular.js 304 0.639 ms - -
GET /css/fonts/Gscreen.woff?-bfkvnn 304 4.123 ms - -
GET /css/fonts/OpenSansLight-v1.woff 304 1.519 ms - -
GET /templates/chromecasts/new.html 304 0.793 ms - -
GET /css/fonts/OpenSansRegular-v1.woff 304 0.799 ms - -
GET /api/channels 304 6.111 ms - -
GET /css/fonts/OpenSansSemiBold-v1.woff 304 0.811 ms - -
GET /favicon.ico 200 3.308 ms - 1280
POST /api/receivers 500 44.895 ms - 546
POST /api/receivers 500 17.188 ms - 546
POST /api/receivers 500 17.122 ms - 546
from couchdb:
[info] [<0.491.0>] 127.0.0.1 - - POST /gscreen// 500
[error] [<0.491.0>] httpd 500 error response:
{"error":"case_clause","reason":"{[{<<\"error\">>,<<\"missing field\">>},\n {<<\"reason\">>,\n <<\"documents with type='receiver' requires a 'name' value\">>}]}"}
[error] [<0.105.0>] Uncaught error in HTTP request: {error,
{case_clause,
{[{<<"error">>,
<<"missing field">>},
{<<"reason">>,
<<"documents with type='receiver' requires a 'name' value">>}]}}}
[info] [<0.105.0>] Stacktrace: [{couch_query_servers,validate_doc_update,5,
[{file,"couch_query_servers.erl"},
{line,227}]},
{couch_db,
'-validate_doc_update/3-lc$^0/1-0-',5,
[{file,"couch_db.erl"},{line,473}]},
{couch_db,validate_doc_update,3,
[{file,"couch_db.erl"},{line,473}]},
{couch_db,
'-prep_and_validate_updates/6-fun-1-',3,
[{file,"couch_db.erl"},{line,532}]},
{lists,foldl,3,
[{file,"lists.erl"},{line,1261}]},
{couch_db,prep_and_validate_updates,6,
[{file,"couch_db.erl"},{line,523}]},
{couch_db,update_docs,4,
[{file,"couch_db.erl"},{line,747}]},
{couch_db,update_doc,4,
[{file,"couch_db.erl"},{line,426}]}]
[info] [<0.105.0>] 127.0.0.1 - - POST /gscreen// 500
BTW, just wanted to say (in case it wasn't obvious), greenscreen is awesome, good job everyone involved!
@wjimenez5271 Did you get this sorted, I'm having similar issue.
@davidcatherall it eventually went away, I suspect it was a chromecast connectivity issue, but not entirely sure.
@davidcatherall With my setup it had to do with the couchdb database not being reachable. Setting up the proper port in "public/js/gscreen-config.js" fixed my issue.