I have added the space, did not seem to make any difference.
I added some debug log, but still can’t see what could be wrong.
Perhaps some one else can?
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.twitch.tv:443
send: b’GET /helix/streams?Client-ID=REMOVED&Authorization=Bearer+REMOVED HTTP/1.1\r\nHost: api.twitch.tv\r\nUser-Agent: python-requests/2.24.0\r\nAccept-Encoding: gzip, deflate\r\nAccept: /\r\nConnection: keep-alive\r\n\r\n’
DEBUG:urllib3.connectionpool:https://api.twitch.tv:443 “GET /helix/streams?Client-ID=REMOVED &Authorization=Bearer+REMOVED HTTP/1.1” 401 72
reply: ‘HTTP/1.1 401 Unauthorized\r\n’
header: Connection: keep-alive
header: Content-Length: 72
header: access-control-allow-origin: *
header: cache-control: no-cache, no-store, must-revalidate, private
header: content-type: application/json; charset=utf-8
header: expires: 0
header: pragma: no-cache
header: server: envoy
header: timing-allow-origin: https://www.twitch.tv
header: twitch-trace-id: 7e1d8fb7a59074b93fcaffeeac5e69f2
header: x-ctxlog-logid: 1-5f302078-0438df01664f3df946d2e22b
header: Date: Sun, 09 Aug 2020 16:12:40 GMT
header: X-Served-By: cache-sea4456-SEA, cache-bma1620-BMA
header: X-Cache: MISS, MISS
header: X-Cache-Hits: 0, 0
header: X-Timer: S1596989560.263811,VS0,VS0,VE168
header: Vary: Accept-Encoding
header: Strict-Transport-Security: max-age=300