Skip to content

Can not recreate calendar with same name after deletion #2

Description

@sxbo672158

I'm trying to recreate a calendar with the same name after I delete a previous one but get errors(500,ServerError)
Here's the test code:

inbox = APIClient(APP_ID, APP_SECRET, TOKEN)
namespace = inbox.namespaces.first()
#Create a calendar
cal = namespace.calendars.create()
cal.name = 'testcal6'
cal.save()
print('Calendar testcal6 is created')
calid = cal['id']
#Get calendar id
print(calid)
#Delete calendar
namespace.calendars.delete(calid)
print('Calendar testcal6 is deleted')
#Try to recreate a calendar with same name
print('recreating')
cal = namespace.calendars.create()
cal.name = 'testcal6'
cal.save()

And here's the error info:
image

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