Skip to content

PronoteAPIError( pronotepy.exceptions.PronoteAPIError: Unknown error from pronote: 3 | Accès refusé #294

@ajones01

Description

@ajones01

Hi there,

I think this is related to some of the other outstanding reported bugs, but certain calls (anything to do with collections) is causing an "Unknown error from pronote: 3 | Accès refusé" error. Below some code, with comments on calls that are successful and those that cause the above error:

if client.logged_in:
nom_utilisateur = client.info.name
print(f'Logged in as {nom_utilisateur}') # this works

periods = client.periods

#print(client.current_period.name) # this crashes
print(client.last_connection)  # this works

for period in periods:
  print(period.name)  # this works
  print(period.start)  # this works

  # print(len(period.grades)) # this crashes

  #for grade in period.grades:  # iterate over all the grades
    #print(grade.grade)  # this crashes

Let me know if you need any further details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions