Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: (API) Create a Invite #488

Closed
sinnayuh opened this issue Nov 12, 2023 · 2 comments
Closed

Bug: (API) Create a Invite #488

sinnayuh opened this issue Nov 12, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@sinnayuh
Copy link

What happened?

Following the API docs for creating an Invite, however i get Invalid date error 400 every time.

image
image

Version

latest (ghcr.io/diced/zipline or ghcr.io/diced/zipline:latest)

What browser(s) are you seeing the problem on?

No response

Zipline Logs

No response

Browser Logs

No response

Additional Info

No response

@sinnayuh sinnayuh added the bug Something isn't working label Nov 12, 2023
@github-actions github-actions bot added this to the 3.7.1 milestone Nov 12, 2023
@diced
Copy link
Owner

diced commented Nov 20, 2023

Invites need an expiration date (this will be "fixed" in v4, so you can have invites that don't expire, etc.), You can put something like 30m to make it choose a date 30 minutes from now, or if you want a specific date date=<js resolvable date instead. You can check if it resolves correctly by doing Date("your input") in a browser console or node.

@diced diced closed this as completed Nov 20, 2023
@sinnayuh
Copy link
Author

Invites need an expiration date (this will be "fixed" in v4, so you can have invites that don't expire, etc.), You can put something like 30m to make it choose a date 30 minutes from now, or if you want a specific date date=<js resolvable date instead. You can check if it resolves correctly by doing Date("your input") in a browser console or node.

I tried setting an expiration date in the example above and it didn't work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants