Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erreur liée à des problèmes chez Twitch #226

Closed
Arubinu opened this issue Mar 14, 2021 · 0 comments
Closed

Erreur liée à des problèmes chez Twitch #226

Arubinu opened this issue Mar 14, 2021 · 0 comments

Comments

@Arubinu
Copy link
Contributor

Arubinu commented Mar 14, 2021

Describe the bug
Erreurs survenues pendant l'exécution de Marv (et paralyse totalement Marv sur l'écran de déconnexion) mais aussi après un nouveau lancement.
Elle provient de problèmes liés à Twitch qui renvoient certainement une erreur plutôt que le JSON attendu.

To Reproduce
Steps to reproduce the behavior:

  1. Impossible car il faut que Twitch ait des problèmes

Expected behavior
Qu'un message précise que Twitch rencontre des problèmes et tenter une reconnexion (qui fait disparaitre le message si elle se passe sans encombre).

Error displayed on Twitch (feedback from a viewer)

Error 503 Service Unavailable
Service Unavailable

Guru Mediation:
Details: cache-cdg6228-CDG 1615669440 813337784

Varnish cache serve

Desktop

  • OS: Windows_NT 10.0.19042 win32
  • Browser: Marv
  • Version: 53e4a27

Stack trace

UnhandledRejection: FetchError: invalid json response body at https://api.twitch.tv/helix/subscriptions?broadcaster_id=230828784&user_id=216202367 reason: Unexpected token I in JSON at position 0
    at C:\Users\pyrof\Documents\Dev\Marv\app\node_modules\node-fetch\lib\index.js:272:32
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
UnhandledRejection: FetchError: invalid json response body at https://api.twitch.tv/helix/streams?user_id=230828784 reason: Unexpected token I in JSON at position 0
    at C:\Users\pyrof\Documents\Dev\Marv\app\node_modules\node-fetch\lib\index.js:272:32
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
UnhandledRejection: FetchError: invalid json response body at https://api.twitch.tv/helix/users?login=Arubinu42 reason: Unexpected token < in JSON at position 1
    at C:\Users\pyrof\Documents\Dev\Marv\app\node_modules\node-fetch\lib\index.js:272:32
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
UnhandledRejection: FetchError: invalid json response body at https://api.twitch.tv/helix/users/follows?to_id=230828784&first=100 reason: Unexpected token < in JSON at position 1
    at C:\Users\pyrof\Documents\Dev\Marv\app\node_modules\node-fetch\lib\index.js:272:32
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

server-2021-03-13.log

[21-03-13 13:03:82][server][info] Starting... 
[21-03-13 13:03:01][server][info] Marv v1.6.0 | Running on http://localhost:4244 
[21-03-13 13:03:95][server][debug] pushActions {"eventName":"onJoin","eventProps":{"user":"arubinu42"}}
[21-03-13 13:03:18][server][info] Client connected 
[21-03-13 13:03:71][server][debug] pushActions {"eventName":"onJoin","eventProps":{"user":"mulchs"}}
[21-03-13 13:03:51][server][info] Client connected 
[21-03-13 13:03:54][server][info] Client connected 
[21-03-13 13:03:54][server][info] Overlay connected 
[21-03-13 21:03:26][server][error] UnhandledRejection: FetchError: invalid json response body at https://api.twitch.tv/helix/users/follows?to_id=230828784&first=100 reason: Unexpected token c in JSON at position 0
    at C:\Users\pyrof\Documents\Dev\Marv\app\node_modules\node-fetch\lib\index.js:272:32
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5) 
[21-03-13 21:03:54][server][info] Starting... 
[21-03-13 21:03:71][server][info] Client connected 
[21-03-13 21:03:76][server][info] Overlay connected 
[21-03-13 21:03:80][server][info] Marv v1.6.0 | Running on http://localhost:4244 
[21-03-13 21:03:44][server][info] Client connected 
[21-03-13 21:03:19][server][debug] pushActions {"eventName":"onJoin","eventProps":{"user":"arubinu42"}}
[21-03-13 21:03:32][server][debug] pushActions {"eventName":"onMessage","eventProps":{"user":"leveonn_ice","message":"aie aie marvin alvin","isBroadcaster":false,"isMod":true,"isVip":false,"isSubscriber":false}}
[21-03-13 21:03:16][server][info] Client connected 
[21-03-13 21:03:79][server][error] UnhandledRejection: FetchError: invalid json response body at https://api.twitch.tv/helix/subscriptions?broadcaster_id=230828784&user_id=216202367 reason: Unexpected token I in JSON at position 0
    at C:\Users\pyrof\Documents\Dev\Marv\app\node_modules\node-fetch\lib\index.js:272:32
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5) 
[21-03-13 21:03:91][server][debug] pushActions {"eventName":"onMessage","eventProps":{"user":"leveonn_ice","message":"!Saut","isBroadcaster":false,"isMod":true,"isVip":false,"isSubscriber":false}}
[21-03-13 21:03:69][server][info] Starting... 
[21-03-13 21:03:90][server][info] Marv v1.6.0 | Running on http://localhost:4244 
[21-03-13 21:03:93][server][info] Client connected 
[21-03-13 21:03:94][server][info] Overlay connected 
[21-03-13 21:03:50][server][info] Client connected 
[21-03-13 21:03:36][server][debug] pushActions {"eventName":"onJoin","eventProps":{"user":"arubinu42"}}
[21-03-13 21:03:48][server][info] Client connected 
[21-03-13 21:03:30][server][debug] pushActions {"eventName":"onRedemption","eventProps":{"id":"f7d7062f-e0a0-4542-b6d2-01daa00a4946","user":"Leveonn_ice","reward":{"id":"ceaf6ce1-0679-494d-a9a9-e020c556e34b","channel_id":"230828784","title":"Instruire Mini-Aru","prompt":"Proposez des phrases (références si possible), à faire dire à Mini-Aru","cost":1,"is_user_input_required":true,"is_sub_only":false,"image":{"url_1x":"https://static-cdn.jtvnw.net/custom-reward-images/230828784/ceaf6ce1-0679-494d-a9a9-e020c556e34b/217ac63c-9bc2-4780-a077-377bd54cf9d2/custom-1.png","url_2x":"https://static-cdn.jtvnw.net/custom-reward-images/230828784/ceaf6ce1-0679-494d-a9a9-e020c556e34b/217ac63c-9bc2-4780-a077-377bd54cf9d2/custom-2.png","url_4x":"https://static-cdn.jtvnw.net/custom-reward-images/230828784/ceaf6ce1-0679-494d-a9a9-e020c556e34b/217ac63c-9bc2-4780-a077-377bd54cf9d2/custom-4.png"},"default_image":{"url_1x":"https://static-cdn.jtvnw.net/custom-reward-images/default-1.png","url_2x":"https://static-cdn.jtvnw.net/custom-reward-images/default-2.png","url_4x":"https://static-cdn.jtvnw.net/custom-reward-images/default-4.png"},"background_color":"#FA1ED2","is_enabled":true,"is_paused":false,"is_in_stock":false,"max_per_stream":{"is_enabled":true,"max_per_stream":100},"should_redemptions_skip_request_queue":false,"template_id":null,"updated_for_indicator_at":"2021-01-12T06:47:13.737826183Z","max_per_user_per_stream":{"is_enabled":true,"max_per_user_per_stream":50},"global_cooldown":{"is_enabled":true,"global_cooldown_seconds":60},"redemptions_redeemed_current_stream":11,"cooldown_expires_at":"2021-03-13T20:31:41Z"},"message":"je fais la chèvre tellement j'ai loupé\n","isBroadcaster":false,"isMod":true,"isVip":false,"isSubscriber":false}}
[21-03-13 21:03:96][server][info] Starting... 
[21-03-13 21:03:11][server][info] Client connected 
[21-03-13 21:03:15][server][info] Marv v1.6.0 | Running on http://localhost:4244 
[21-03-13 21:03:36][server][info] Client connected 
[21-03-13 21:03:36][server][info] Overlay connected 
[21-03-13 21:03:78][server][info] Client connected 
[21-03-13 21:03:62][server][debug] pushActions {"eventName":"onJoin","eventProps":{"user":"arubinu42"}}
[21-03-13 21:03:33][server][error] UnhandledRejection: FetchError: invalid json response body at https://api.twitch.tv/helix/streams?user_id=230828784 reason: Unexpected token I in JSON at position 0
    at C:\Users\pyrof\Documents\Dev\Marv\app\node_modules\node-fetch\lib\index.js:272:32
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5) 
[21-03-13 21:03:80][server][info] Starting... 
[21-03-13 21:03:96][server][info] Marv v1.6.0 | Running on http://localhost:4244 
[21-03-13 21:03:98][server][info] Client connected 
[21-03-13 21:03:02][server][info] Overlay connected 
[21-03-13 21:03:03][server][info] Client connected 
[21-03-13 21:03:62][server][info] Client connected 
[21-03-13 21:03:47][server][error] UnhandledRejection: FetchError: invalid json response body at https://api.twitch.tv/helix/users?login=Arubinu42 reason: Unexpected token < in JSON at position 1
    at C:\Users\pyrof\Documents\Dev\Marv\app\node_modules\node-fetch\lib\index.js:272:32
    at processTicksAndRejections (internal/process/task_queues.js:97:5) 
[21-03-13 21:03:07][server][info] Starting... 
[21-03-13 21:03:22][server][info] Marv v1.6.0 | Running on http://localhost:4244 
[21-03-13 21:03:23][server][info] Client connected 
[21-03-13 21:03:90][server][info] Client connected 
[21-03-13 21:03:14][server][info] Client connected 
[21-03-13 21:03:14][server][info] Overlay connected 
[21-03-13 21:03:13][server][info] Starting... 
[21-03-13 21:03:29][server][info] Marv v1.6.0 | Running on http://localhost:4244 
[21-03-13 21:03:44][server][info] Client connected 
[21-03-13 21:03:22][server][info] Client connected 
[21-03-13 21:03:22][server][info] Overlay connected 
[21-03-13 21:03:85][server][info] Client connected 
[21-03-13 21:03:22][server][error] UnhandledRejection: FetchError: invalid json response body at https://api.twitch.tv/helix/users/follows?to_id=230828784&first=100 reason: Unexpected token c in JSON at position 0
    at C:\Users\pyrof\AppData\Local\Programs\marv\resources\app.asar\node_modules\node-fetch\lib\index.js:272:32
    at processTicksAndRejections (internal/process/task_queues.js:97:5) 
[21-03-13 22:03:38][server][info] Starting... 
[21-03-13 22:03:58][server][info] Marv v1.6.0 | Running on http://localhost:4244 
[21-03-13 22:03:69][server][info] Client connected 
[21-03-13 22:03:20][server][info] Client connected 
[21-03-13 22:03:89][server][info] Client connected 
[21-03-13 22:03:89][server][info] Overlay connected 
[21-03-13 22:03:04][server][error] UnhandledRejection: FetchError: invalid json response body at https://api.twitch.tv/helix/users/follows?to_id=230828784&first=100 reason: Unexpected token < in JSON at position 1
    at C:\Users\pyrof\Documents\Dev\Marv\app\node_modules\node-fetch\lib\index.js:272:32
    at processTicksAndRejections (internal/process/task_queues.js:97:5) 
[21-03-13 22:03:70][server][info] Starting... 
[21-03-13 22:03:84][server][info] Marv v1.6.0 | Running on http://localhost:4244 
[21-03-13 22:03:93][server][info] Client connected 
[21-03-13 22:03:93][server][info] Client connected 
[21-03-13 22:03:93][server][info] Overlay connected 
[21-03-13 22:03:54][server][info] Client connected 
[21-03-13 22:03:32][server][debug] pushActions {"eventName":"onJoin","eventProps":{"user":"arubinu42"}}

twitch-2021-03-13.log

[21-03-13 13:03:71][twitch][info] Auto connect 
[21-03-13 13:03:95][twitch][info] [chat] joined Arubinu42 
[21-03-13 21:03:76][twitch][info] Auto connect 
[21-03-13 21:03:19][twitch][info] [chat] joined Arubinu42 
[21-03-13 21:03:85][twitch][info] Auto connect 
[21-03-13 21:03:37][twitch][info] [chat] joined Arubinu42 
[21-03-13 21:03:62][twitch][info] [chat] joined Arubinu42 
[21-03-13 21:03:43][twitch][error] [user] FetchError: invalid json response body at https://api.twitch.tv/helix/users reason: Unexpected token < in JSON at position 1
    at C:\Users\pyrof\Documents\Dev\Marv\app\node_modules\node-fetch\lib\index.js:272:32
    at processTicksAndRejections (internal/process/task_queues.js:97:5) 
[21-03-13 21:03:43][twitch][info] [user] reconnect in 2 s 
[21-03-13 21:03:23][twitch][error] [user] FetchError: invalid json response body at https://api.twitch.tv/helix/users reason: Unexpected token c in JSON at position 0
    at C:\Users\pyrof\Documents\Dev\Marv\app\node_modules\node-fetch\lib\index.js:272:32
    at processTicksAndRejections (internal/process/task_queues.js:97:5) 
[21-03-13 21:03:23][twitch][info] [user] reconnect in 4 s 
[21-03-13 21:03:03][twitch][error] [user] FetchError: invalid json response body at https://api.twitch.tv/helix/users reason: Unexpected token c in JSON at position 0
    at C:\Users\pyrof\Documents\Dev\Marv\app\node_modules\node-fetch\lib\index.js:272:32
    at processTicksAndRejections (internal/process/task_queues.js:97:5) 
[21-03-13 21:03:03][twitch][info] [user] reconnect in 2 s 
[21-03-13 21:03:52][twitch][error] [user] FetchError: invalid json response body at https://api.twitch.tv/helix/users reason: Unexpected token < in JSON at position 1
    at C:\Users\pyrof\Documents\Dev\Marv\app\node_modules\node-fetch\lib\index.js:272:32
    at processTicksAndRejections (internal/process/task_queues.js:97:5) 
[21-03-13 21:03:52][twitch][info] [user] reconnect in 4 s 
[21-03-13 21:03:63][twitch][error] [user] FetchError: invalid json response body at https://api.twitch.tv/helix/users reason: Unexpected token < in JSON at position 1
    at C:\Users\pyrof\Documents\Dev\Marv\app\node_modules\node-fetch\lib\index.js:272:32
    at processTicksAndRejections (internal/process/task_queues.js:97:5) 
[21-03-13 21:03:63][twitch][error] [user] Too many reconnection failures (max:2) 
[21-03-13 21:03:66][twitch][error] [user] FetchError: invalid json response body at https://api.twitch.tv/helix/users reason: Unexpected token < in JSON at position 1
    at C:\Users\pyrof\Documents\Dev\Marv\app\node_modules\node-fetch\lib\index.js:272:32
    at processTicksAndRejections (internal/process/task_queues.js:97:5) 
[21-03-13 21:03:66][twitch][info] [user] reconnect in 2 s 
[21-03-13 21:03:33][twitch][error] [user] FetchError: invalid json response body at https://api.twitch.tv/helix/users reason: Unexpected token < in JSON at position 1
    at C:\Users\pyrof\Documents\Dev\Marv\app\node_modules\node-fetch\lib\index.js:272:32
    at processTicksAndRejections (internal/process/task_queues.js:97:5) 
[21-03-13 21:03:33][twitch][info] [user] reconnect in 4 s 
[21-03-13 21:03:42][twitch][error] [user] FetchError: invalid json response body at https://api.twitch.tv/helix/users reason: Unexpected token < in JSON at position 1
    at C:\Users\pyrof\Documents\Dev\Marv\app\node_modules\node-fetch\lib\index.js:272:32
    at processTicksAndRejections (internal/process/task_queues.js:97:5) 
[21-03-13 21:03:42][twitch][error] [user] Too many reconnection failures (max:2) 
[21-03-13 21:03:53][twitch][error] [user] FetchError: invalid json response body at https://api.twitch.tv/helix/users reason: Unexpected token c in JSON at position 0
    at C:\Users\pyrof\Documents\Dev\Marv\app\node_modules\node-fetch\lib\index.js:272:32
    at processTicksAndRejections (internal/process/task_queues.js:97:5) 
[21-03-13 21:03:53][twitch][info] [user] reconnect in 2 s 
[21-03-13 21:03:20][twitch][error] [user] FetchError: invalid json response body at https://api.twitch.tv/helix/users reason: Unexpected token c in JSON at position 0
    at C:\Users\pyrof\Documents\Dev\Marv\app\node_modules\node-fetch\lib\index.js:272:32
    at processTicksAndRejections (internal/process/task_queues.js:97:5) 
[21-03-13 21:03:20][twitch][info] [user] reconnect in 4 s 
[21-03-13 21:03:12][twitch][error] [user] FetchError: invalid json response body at https://api.twitch.tv/helix/users reason: Unexpected token < in JSON at position 1
    at C:\Users\pyrof\Documents\Dev\Marv\app\node_modules\node-fetch\lib\index.js:272:32
    at processTicksAndRejections (internal/process/task_queues.js:97:5) 
[21-03-13 21:03:12][twitch][error] [user] Too many reconnection failures (max:2) 
[21-03-13 21:03:24][twitch][info] Auto connect 
[21-03-13 21:03:36][twitch][error] [user] FetchError: invalid json response body at https://api.twitch.tv/helix/users reason: Unexpected token < in JSON at position 1
    at C:\Users\pyrof\AppData\Local\Programs\marv\resources\app.asar\node_modules\node-fetch\lib\index.js:272:32
    at processTicksAndRejections (internal/process/task_queues.js:97:5) 
[21-03-13 21:03:36][twitch][info] [user] reconnect in 2 s 
[21-03-13 21:03:89][twitch][error] [user] FetchError: invalid json response body at https://api.twitch.tv/helix/users reason: Unexpected token c in JSON at position 0
    at C:\Users\pyrof\AppData\Local\Programs\marv\resources\app.asar\node_modules\node-fetch\lib\index.js:272:32
    at processTicksAndRejections (internal/process/task_queues.js:97:5) 
[21-03-13 21:03:89][twitch][info] [user] reconnect in 4 s 
[21-03-13 21:03:32][twitch][error] [user] FetchError: invalid json response body at https://api.twitch.tv/helix/users reason: Unexpected token < in JSON at position 1
    at C:\Users\pyrof\AppData\Local\Programs\marv\resources\app.asar\node_modules\node-fetch\lib\index.js:272:32
    at processTicksAndRejections (internal/process/task_queues.js:97:5) 
[21-03-13 21:03:32][twitch][error] [user] Too many reconnection failures (max:2) 
[21-03-13 22:03:52][twitch][info] Auto connect 
[21-03-13 22:03:77][twitch][error] [user] FetchError: invalid json response body at https://api.twitch.tv/helix/users reason: Unexpected token < in JSON at position 1
    at C:\Users\pyrof\Documents\Dev\Marv\app\node_modules\node-fetch\lib\index.js:272:32
    at processTicksAndRejections (internal/process/task_queues.js:97:5) 
[21-03-13 22:03:77][twitch][info] [user] reconnect in 2 s 
[21-03-13 22:03:86][twitch][error] [user] FetchError: invalid json response body at https://api.twitch.tv/helix/users reason: Unexpected token < in JSON at position 1
    at C:\Users\pyrof\Documents\Dev\Marv\app\node_modules\node-fetch\lib\index.js:272:32
    at processTicksAndRejections (internal/process/task_queues.js:97:5) 
[21-03-13 22:03:87][twitch][info] [user] reconnect in 4 s 
[21-03-13 22:03:78][twitch][error] [user] FetchError: invalid json response body at https://api.twitch.tv/helix/users reason: Unexpected token < in JSON at position 1
    at C:\Users\pyrof\Documents\Dev\Marv\app\node_modules\node-fetch\lib\index.js:272:32
    at processTicksAndRejections (internal/process/task_queues.js:97:5) 
[21-03-13 22:03:78][twitch][error] [user] Too many reconnection failures (max:2) 
[21-03-13 22:03:84][twitch][info] Auto connect 
[21-03-13 22:03:33][twitch][info] [chat] joined Arubinu42 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant