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

Setting the expiryDate when issuing credential via REST v1/credentials/issue #328

Closed
wistefan opened this issue Jul 3, 2023 · 2 comments · Fixed by #347
Closed

Setting the expiryDate when issuing credential via REST v1/credentials/issue #328

wistefan opened this issue Jul 3, 2023 · 2 comments · Fixed by #347
Assignees
Labels

Comments

@wistefan
Copy link
Contributor

wistefan commented Jul 3, 2023

When I try to issue a credential via the Rest-API, I always get a

{
    "details": [],
    "status": 500,
    "title": "Unable to instantiate ProofConfig:argument type mismatch\nargument type mismatch\nargument type mismatch\nargument type mismatch\nargument type mismatch\nargument type mismatch\nargument type mismatch\nargument type mismatch\n\n    Parameter expirationDate: expected java.time.Instant? but received java.lang.String (value: 2020-11-03T00:00:00Z)\nargument type mismatch\nargument type mismatch\nargument type mismatch\nargument type mismatch\nargument type mismatch\nargument type mismatch\nargument type mismatch\nargument type mismatch\n",
    "type": null
}

when I include an expiry date. What is the expected format? I tried to use:
"2020-11-03T00:00:00Z"
"2020-11-03T00:00:00.000Z"
1645009017

But nothing works.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 1, 2023

This issue has been marked as stale.

@mikeplotean
Copy link
Contributor

expected format is: timestamp in seconds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants