Github token authentication with OTA

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
ncotti
Posts: 2
Joined: Thu Dec 23, 2021 7:49 pm

Github token authentication with OTA

Post by ncotti » Thu Dec 23, 2021 8:05 pm

HI!
After doing some testing, I'm facing a strange behaviour with Github authentication system through OTA.
I'm basically doing this request to the Github API:

Code: Select all

get('https://api.github.com/repos/path', headers={'Authorization': 'token my_token'} )
And written like this, it successfully authorizes the connection, allowing me to bypass the request from 60 to 5000 as seen here: https://docs.github.com/en/rest/overvie ... e-limiting

However, when I try to connect multiples pyboards at the same time, some of them end up connecting unauthorized and running out of request, leading up to not being able to finish the update.

I would like to know if anyone knows why this could be happening and if there is some way to reliable connect to the Github Api as an authorized user.

dotoyas12
Posts: 1
Joined: Tue Mar 15, 2022 4:22 am

Re: Github token authentication with OTA

Post by dotoyas12 » Tue Mar 15, 2022 4:23 am

ncotti wrote:
Thu Dec 23, 2021 8:05 pm
HI!
After doing some testing, I'm facing a strange behaviour with Github authentication system through OTA.
I'm basically doing this request to the Github API:

Code: Select all

get('https://api.github.com/repos/path', headers={'Authorization': 'token my_token'} )
And written like this, it successfully authorizes the connection, allowing me to bypass the request from 60 to 5000 as seen here: https://docs.github.com/en/rest/overvie ... e-limiting

However, when I try to connect multiples pyboards at the same time, some of them end up connecting unauthorized and running out of request, leading up to not being able to finish the update.Best Wusthof Knife 2022

I would like to know if anyone knows why this could be happening and if there is some way to reliable connect to the Github Api as an authorized user.
Also wanted to know this. We should wait for the experts. If you already got the answer then can you share with us? Thanks in advance

Post Reply