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

Jobs openapi type error #17

Open
richcar58 opened this issue Feb 21, 2022 · 0 comments
Open

Jobs openapi type error #17

richcar58 opened this issue Feb 21, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@richcar58
Copy link

The Java client breaks on getHistory calls with the following error:

Exception in thread "main" edu.utexas.tacc.tapis.client.shared.exceptions.TapisClientException: java.lang.NumberFormatException: For input string: "2022-02-21T19:01:42.199054Z"
	at edu.utexas.tacc.tapis.client.shared.Utils.throwTapisClientException(Utils.java:81)
	at edu.utexas.tacc.tapis.jobs.client.JobsClient.getJobHistory(JobsClient.java:332)
	at edu.utexas.tacc.tapis.cmd.driver.JobGetHistory.main(JobGetHistory.java:46)

The Jobs openapi specification getHistory endpoint defines the JobHistoryDisplayDTO type as part of its result. The created field is defined as a long integer, but the code passes back a string.

JobHistoryDisplayDTO
    type: object
    properties:
      event:
        type: string
      created:
        type: integer
        format: int64
      jobStatus:
        type: string
      description:
        type: string
      transferTaskUuid:
        type: string
@richcar58 richcar58 added the bug Something isn't working label Feb 21, 2022
@richcar58 richcar58 transferred this issue from tapis-project/tapis-java Mar 13, 2023
@smpadhy smpadhy moved this from In Progress to On Hold in Tapis Project Beta Board Mar 24, 2023
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
Status: On Hold
Development

No branches or pull requests

2 participants