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

Getting error 'JobStatusCollection' object has no attribute 'jobId' when calling civitai.jobs.get #6

Open
javaguy opened this issue Nov 14, 2024 · 1 comment

Comments

@javaguy
Copy link

javaguy commented Nov 14, 2024

I'm trying to implement the callback url pattern so my server knows when a job is completed. As part of that callback civitai sends me the jobId, but no token (and also unfortunately doesn't send me the result). So I have to use the civitai.jobs.get function and pass it it just the job_id parameter. When I do this I get the error:

'JobStatusCollection' object has no attribute 'jobId'

I assume this is because the shape of the response when providing just job_id is different than when a token is provided.

I'd appreciate it if there is a quick fix (or workaround) to this issue as my project is currently blocked on this.

@javaguy
Copy link
Author

javaguy commented Nov 14, 2024

I was able to do a workaround by using the jobs.query function to get the job result I needed.

However, Ideally the callback should include the result object so don't have call and get the job status at all.

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

No branches or pull requests

1 participant