File tree 6 files changed +12
-6
lines changed
service/plugins/routes/v1
service/plugins/routes/v1
6 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ HOSTNAME=localhost
3
3
PLAYER_ROOT_PATH = /player
4
4
PLAYER_BASE_URL = http://player:3398/player
5
5
PLAYER_CONTENT_URL = http://localhost/player/content
6
- PLAYER_LAUNCH_URL_BASE = http://localhost/player
6
+ # PLAYER_STANDALONE_LAUNCH_URL_BASE =http://localhost/player
7
7
PLAYER_KEY = cts
8
8
PLAYER_SECRET = player-secret
9
9
PLAYER_TOKEN_SECRET = player-token-secret
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ services:
104
104
- API_KEY=${PLAYER_KEY}
105
105
- API_SECRET=${PLAYER_SECRET}
106
106
- PLAYER_API_ROOT=${PLAYER_ROOT_PATH}
107
- - PLAYER_LAUNCH_URL_BASE
107
+ - PLAYER_STANDALONE_LAUNCH_URL_BASE
108
108
networks :
109
109
- public
110
110
Original file line number Diff line number Diff line change @@ -159,6 +159,8 @@ module.exports = {
159
159
playerFetch = playerAuLaunchUrlParsed . searchParams . get ( "fetch" ) ;
160
160
let sessionId ;
161
161
162
+ console . log ( "PLAYER FETCH:" , playerFetch ) ;
163
+
162
164
try {
163
165
const sessionInsert = await db . insert (
164
166
{
@@ -362,6 +364,8 @@ module.exports = {
362
364
let fetchResponse ,
363
365
fetchResponseBody ;
364
366
367
+ console . log ( "POSTING FETCH:" , session . playerFetch ) ;
368
+
365
369
try {
366
370
fetchResponse = await Wreck . request (
367
371
"POST" ,
@@ -370,6 +374,7 @@ module.exports = {
370
374
fetchResponseBody = await Wreck . read ( fetchResponse , { json : true } ) ;
371
375
}
372
376
catch ( ex ) {
377
+ console . error ( ex ) ;
373
378
throw Boom . internal ( new Error ( `Failed to request fetch url from player: ${ ex } ` ) ) ;
374
379
}
375
380
Original file line number Diff line number Diff line change @@ -14,4 +14,4 @@ LRS_XAPI_VERSION=1.0.3
14
14
15
15
# # Default is empty, add if necessary for nginx config
16
16
PLAYER_API_ROOT =
17
- PLAYER_LAUNCH_URL_BASE =
17
+ PLAYER_STANDALONE_LAUNCH_URL_BASE =
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ services:
41
41
- DATABASE_NAME=catapult_player
42
42
- FIRST_TENANT_NAME
43
43
- PLAYER_API_ROOT=${PLAYER_ROOT_PATH}
44
- - PLAYER_LAUNCH_URL_BASE
44
+ - PLAYER_STANDALONE_LAUNCH_URL_BASE
45
45
- HOST_PORT
46
46
rdbms :
47
47
image : mysql:8.0.31
Original file line number Diff line number Diff line change @@ -744,7 +744,7 @@ module.exports = {
744
744
}
745
745
} ;
746
746
747
- let launchURLBase = ( process . env . PLAYER_LAUNCH_URL_BASE || `${ protocol } //${ req . url . host } ${ rootPath } ` ) ;
747
+ let launchURLBase = ( process . env . PLAYER_STANDALONE_LAUNCH_URL_BASE || `${ protocol } //${ req . url . host } ${ rootPath } ` ) ;
748
748
let endpoint = `${ launchURLBase } /lrs` ;
749
749
750
750
// //Debug messages for troubleshooting host and path issuse - MB
@@ -824,7 +824,7 @@ module.exports = {
824
824
825
825
}
826
826
catch ( ex ) {
827
-
827
+ console . error ( ex ) ;
828
828
throw Boom . internal ( new Error ( `Failed request to set LMS.LaunchData state document: ${ ex } ` ) ) ;
829
829
}
830
830
@@ -918,6 +918,7 @@ module.exports = {
918
918
session . id = sessionInsertResult [ 0 ] ;
919
919
}
920
920
catch ( ex ) {
921
+ console . error ( ex ) ;
921
922
throw Boom . internal ( new Error ( `Failed to insert session: ${ ex } ` ) ) ;
922
923
}
923
924
You can’t perform that action at this time.
0 commit comments