You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I formatted the camera SD card and re-hacked my camera with firmware. I found the built-in curl in /usr/bin directory ran with Segment fault failure, so I grabbed the latest curl from official and it worked for the initial setup using the first-time redeemed access token;
When the onedrive-uploader runs a second time (be killed and run again or with a camera reboot), the refreshed access token cannot be used to access OneDrive API successfully, and found the error in the log file as this bug's title;
The text was updated successfully, but these errors were encountered:
I believe there is some un-agreed process between the HTTP request from the client program and OneDrive API response, so some programs' requests can pass, and some cannot. And this kind of issue will always exist at different times, or when using a different (version) HTTP client program.
Another case found later when I checked the detailed reason for this code of a failed API request is InvalidAuthenticationToken, it is because the access token in the request headers option Authorization is invalid, like using an already expired token or a mal-formatted Bearer token string. For this case, what we need is to check the access token used in request headers if it is expired or in the right format as "Bearer ACCESS_TOKEN_STRING", and use a new valid/renewed token to request.
Bug description:
curl
in/usr/bin
directory ran with Segment fault failure, so I grabbed the latestcurl
from official and it worked for the initial setup using the first-time redeemed access token;The text was updated successfully, but these errors were encountered: