xbox-xcloud-player icon indicating copy to clipboard operation
xbox-xcloud-player copied to clipboard

can not run

Open zhangdaoning opened this issue 5 months ago • 5 comments

(base) PS C:\Users\31378\Desktop\SynologyDrive\My Project\XBOX\xbox-xcloud-player> npm run auth

> [email protected] auth
> rimraf .xbox.tokens.json && xbox-auth auth --auth msal

Starting authentiction using MSAL method...
Please follow the instructions below (Expires in 900 seconds):
To sign in, use a web browser to open the page https://www.microsoft.com/link and enter the code UNWHRDFU to authenticate.
Authentication succeeded!
(base) PS C:\Users\31378\Desktop\SynologyDrive\My Project\XBOX\xbox-xcloud-player> npm run start

> [email protected] start
> npm run build && node dist/bin/server.js


> [email protected] build
> rimraf dist && tsc && webpack

assets by status 36.3 KiB [compared for emit]
  assets by path ../channel/ 14.3 KiB 16 assets
  assets by path ../lib/ 6.05 KiB 12 assets
  assets by path ../input/ 5.83 KiB 6 assets
  assets by path ../render/ 2.17 KiB 6 assets
  assets by path ../*.ts 3.23 KiB 3 assets
  assets by path ../*.map 2.57 KiB 3 assets
  assets by path ../example/ 1.95 KiB 2 assets
  assets by path ../bin/ 192 bytes
    asset ../bin/server.d.ts.map 132 bytes [compared for emit]
    asset ../bin/server.d.ts 60 bytes [compared for emit]
assets by status 134 KiB [emitted]
  asset examplePlayer.min.js 69.6 KiB [emitted] [minimized] (name: examplePlayer)
  asset xCloudPlayer.min.js 64.3 KiB [emitted] [minimized] (name: xCloudPlayer)
modules by path ./src/ 131 KiB
  modules by path ./src/channel/ 35 KiB 7 modules
  modules by path ./src/lib/*.ts 20.1 KiB 6 modules
  modules by path ./src/*.ts 36.1 KiB 3 modules
  modules by path ./src/input/*.ts 22.7 KiB 3 modules
  modules by path ./src/render/*.ts 7.45 KiB 3 modules
  ./src/example/stream.ts 9.43 KiB [built] [code generated]
modules by path ./node_modules/uuid/dist/cjs-browser/*.js 25.6 KiB
  ./node_modules/uuid/dist/cjs-browser/index.js 2.33 KiB [built] [code generated]
  ./node_modules/uuid/dist/cjs-browser/max.js 135 bytes [built] [code generated]
  ./node_modules/uuid/dist/cjs-browser/nil.js 135 bytes [built] [code generated]
  ./node_modules/uuid/dist/cjs-browser/parse.js 720 bytes [built] [code generated]
  ./node_modules/uuid/dist/cjs-browser/validate.js 245 bytes [built] [code generated]
  ./node_modules/uuid/dist/cjs-browser/stringify.js 1.24 KiB [built] [code generated]
  + 15 modules

WARNING in configuration
The 'mode' option has not been set, webpack will fallback to 'production' for this value.
Set 'mode' option to 'development' or 'production' to enable defaults for each environment.
You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/configuration/mode/

webpack 5.102.1 compiled with 1 warning in 6222 ms
Streaming App listening at http://localhost:3000
Failed to authenticate with xHome. Please re-run 'npm run auth' to refresh your tokens.
(base) PS C:\Users\31378\Desktop\SynologyDrive\My Project\XBOX\xbox-xcloud-player>

zhangdaoning avatar Oct 29 '25 13:10 zhangdaoning

i npm run auth first:

(base) PS C:\Users\31378\Desktop\SynologyDrive\My Project\XBOX\xbox-xcloud-player> npm run auth

> [email protected] auth
> rimraf .xbox.tokens.json && xbox-auth auth --auth msal

Starting authentiction using MSAL method...
Please follow the instructions below (Expires in 900 seconds):
To sign in, use a web browser to open the page https://www.microsoft.com/link and enter the code UNWHRDFU to authenticate.
Authentication succeeded!

then i npm run start

Streaming App listening at http://localhost:3000/

after about 3 seconds.

Failed to authenticate with xHome. Please re-run 'npm run auth' to refresh your tokens.shows

zhangdaoning avatar Oct 29 '25 13:10 zhangdaoning

I think this is because your region is not supported. Can you try to use a vpn to a region where xCloud is supported? If you are in a region where xCloud is supported then please let me know and i will look into it. For now i am unable to reproduce it on my side

unknownskl avatar Nov 04 '25 20:11 unknownskl

I think this is because your region is not supported. Can you try to use a vpn to a region where xCloud is supported? If you are in a region where xCloud is supported then please let me know and i will look into it. For now i am unable to reproduce it on my side

I am in China. I will try with VPN.

Is there any method to force my ip to a xCloud supported region? Such us US.

I just use it for xHome.

zhangdaoning avatar Nov 06 '25 22:11 zhangdaoning

image

image

i print the error log.

Invalid country.

Is it beacause my ip ?

or myaccount setting ?

or some setting in token?

zhangdaoning avatar Nov 06 '25 22:11 zhangdaoning

Image

I add "X-Forwarded-For": "4.2.2.2" into node_modules\xal-node\dist\msal.js problem solved.

zhangdaoning avatar Nov 06 '25 23:11 zhangdaoning