Skip to content

Provide a properly configured and signed bearer token, and make sure that it has not expired. #41

@mybluedog24

Description

@mybluedog24

I just installed this yesterday and it worked fine. But today it starts throw error "Provide a properly configured and signed bearer token, and make sure that it has not expired. Learn more about Generating Tokens for API Requests https://developer.apple.com/go/?id=api-generating-tokens".

At the end I found out it maybe caused by the expiration time. When I changed it from 20 to 15, it works again:
exp = int(time.mktime((self.token_gen_date + timedelta(minutes=15)).timetuple()))
On documentation here: https://developer.apple.com/documentation/appstoreconnectapi/generating_tokens_for_api_requests it says Tokens that expire more than 20 minutes into the future are not valid so I guess when do the calculation with 20 mins it may round up to exceed 20 mins?

Updated: after I sync the time on my PC, it works again with 20mins.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions