-
Notifications
You must be signed in to change notification settings - Fork 16
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
No Image Output or Preview Received from runpod-fooocus-api on Completed Requests #33
Comments
When using
The /runsync would also normally work and you would see the requests coming to your endpoint anyway. The problem is probably in the JSON format of the body you're sending. Github marked it for you with a red colour where the error is, and the API should return the following: {"Error": "bad request: body: unmarshaling JSON: invalid character 'C' after object key:value pair"} The valid JSON is either: "preview_headers": {"Cookie":"foo=bar"} for V2 endpoints, or "preview_headers": "{\"Cookie\":\"foo=bar\"}" for V1 endpoints that use multipart/form-data. See request_examples.js When corrected, a request like this: {
"input": {
"api_name": "txt2img",
"prompt": "A ball",
"negative_prompt": "",
"style_selections": [],
"performance_selection": "Speed",
"aspect_ratios_selection": "1024*1024",
"image_number": 1,
"image_seed": -1,
"save_extension": "png",
"require_base64": true,
"async_process": true,
"preview_url": "https://webhook.site/your-generated-uuid",
"preview_headers": {"Cookie":"foo=bar"}
}
} is sending previews and final images to the testing endpoint just fine. If you still don't see requests coming in with JSON like this on your endpoint, you should check if it's working properly. |
Thank you for taking your time to respond to the issue despite having a busy schedule. Issue:
Current Setup:
Potential Concerns:
Request for Assistance:Could you please provide guidance on the following:
|
When using {
"id": "job-uuid",
"status": "IN_QUEUE"
} Your headers look ok and are completely optional. No custom headers should be required to make this work. I send that exact API request via Postman just with "preview_url": "https://webhook.site/your-generated-uuid" and I get both the headers: It seems I still can't reproduce the problem you're facing. Please try running the requests with some online testing endpoint URLs like I mentioned to exclude possible problems with the HTTP server you're using. Also please observe the active worker's logs at your RunPod serverless endpoint dashboard for any potential errors after you send the request. Hopefully, we'll be able to pinpoint the problem better after that. |
Hello @davefojtik, Thank you for taking the time to respond to the issue. I was able to adjust the request body, and the image generation was successful. I now have an issue where I want to incorporate my own fine-tuned request body. Below is the request structure I’m using:
Unfortunately, setting the request body like the one above does not generate any images. However, setting it as shown below generates an image successfully:
I’d appreciate any guidance you can offer on how to properly configure the fine-tuned request body to work with your API. Thank you in advance! |
Hello. Glad to hear you made it work! The problem in your fine-tuned request body is in |
Thank you for the response. I do appreciate it! |
We are experiencing issues while testing the POST request to the
https://api.runpod.ai/v2/secret_key/runsync
endpoint. Our serverless setup utilizes the3wad/runpod-fooocus-api:0.4.1.0-standalone
image, and despite successfully completing the request, we are not receiving the expected job results or previews.Current Behavior
When sending the POST request to initiate a text-to-image generation, the response indicates that the status is
COMPLETED
, but thejob_result
andjob_step_preview
fields remainnull
. This issue prevents us from retrieving any image data or previews.Request Details
Endpoint:
https://api.runpod.ai/v2/secret_key/runsync
Request Body:
Response Received:
Expected Behavior
We expect the following upon successful request completion:
job_result
to contain the image or data URL(s).job_step_preview
to provide incremental previews if available.job_progress
update reflecting the progress of the job beyond 0.job_status
field.Environment Details
3wad/runpod-fooocus-api:0.4.1.0-standalone
Steps to Reproduce
3wad/runpod-fooocus-api:0.4.1.0-standalone
image.https://api.runpod.ai/v2/secret_key/runsync
with the provided request body.Additional Information
preview_url
andpreview_headers
as provided on the docs , but no such data is arriving at our endpoint.Request for Help
We are seeking assistance to:
The text was updated successfully, but these errors were encountered: