You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Expected a base64-encoded data URL with an image MIME type #16605
Suddenly started getting this error.
{ "type": "error", "error": { "type": "invalid_request_error", "code": "invalid_value", "message": "Invalid 'input[107].content[2].image_url'. Expected a base64-encoded data URL with an image MIME type (e.g. 'data:image/png;base64,aW1nIGJ5dGVzIGhlcmU='), but got empty base64-encoded bytes.", "param": "input[107].content[2].image_url" }, "status": 400 }
Prompt had an image.png attached (see attached) - a screenshot as usual.
Tried same prompt without image.png attached, same error.
Exit Codex and restart.
Same prompt (no image), same error.
If you're on macOS and hitting clipboard image issues, clipaste may help. It normalizes the screenshot clipboard to include proper PNG data + file URL, which fixes format mismatches that cause "Expected a base64-encoded data URL" errors.
Is there a fix for this issue? I am experiencing this issue on one of my project on Codex. I am kind of block. I cant even summarize and create another project with my existing project
@etraut-openai
I can reproduce what looks like the same issue in Codex App on macOS with a spreadsheet paste flow.
Environment:
Codex App version: 26.422.30944 (build 2080)
macOS version: 26.3.1 (a), build 25D771280a
Numbers version: 14.4 (7043.0.93)
Steps:
Open an .xlsx file in Numbers.
Select and copy a non-empty spreadsheet row.
Paste it into the Codex App composer.
Submit the message.
Actual behavior:
The copied row appears to be treated as an image/PNG attachment instead of text/table data, and the request fails with:
{ "type": "error", "error": { "type": "invalid_request_error", "code": "invalid_value", "message": "Invalid 'input[0].content[2].image_url'. Expected a base64-encoded data URL with an image MIME type (e.g. 'data:image/png;base64,aW1nIGJ5dGVzIGhlcmU='), but got empty base64-encoded bytes.", "param": "input[0].content[2].image_url" }, "status": 400 }
Expected behavior:
For spreadsheet cell/range paste, Codex App should prefer the clipboard's text/table representation over image-like representations. A copied Numbers row has useful text/TSV clipboard data, so pasting it into the composer should insert the cell values rather than attach an image. If an image representation is used, empty image payloads should be rejected before sending.
I uploaded diagnostics via /feedback for thread ID: 019dbfc1-90bd-7910-9ea6-fcc2590f14d7.
Additional impact: after the initial failed paste, the affected thread continues to fail even when I send a new plain-text message without pasting anything. The later request fails with the same error at a previous history item, e.g. input[590].content[2].image_url, which makes the thread effectively unusable until the malformed empty image item is removed or the thread is rolled back.
Open a new a chat ~ give codex the session ID and tell him to remove the broken image ~ this happens cause your image is broken restart and you doine :)
You dont need to restard codex ~ afte codex gives you the ok ~ ARCHIEVE THE CHAT and restore it will do the trick
same issue, typically occur when copy and pasta a excel or photo directly into the chat box (and the entire chat cannot proceed afterwards), however, if adding the pictures as documents it works, so I guess it is some compatibility issues
Activity
github-actions commentedon Apr 2, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
johnthompson-pco commentedon Apr 2, 2026
not a duplicate... it seems 🤷♂️
Codex 26.325.1654
GPT 5.4 Extra High, local
Subscription Business
johnthompson-pco commentedon Apr 2, 2026
Win11
Intel
etraut-openai commentedon Apr 2, 2026
To confirm, are you using the Codex app?
If you're able to repro, please use
/feedbackto upload your logs and session details, then post the thread ID here.Csiklaoliver commentedon Apr 3, 2026
Hi! I'm getting the same issues here as well. Is there any way I could fix it?
dermotos commentedon Apr 4, 2026
Also getting it after pasting an image from the clipboard synced from my phone (iPhone, HEIC encoded file was copied). Cannot continue the thread
Csiklaoliver commentedon Apr 4, 2026
Same issue for me. I pasted form my clipboard and it stopped working.
AlexanderDeutsch commentedon Apr 8, 2026
I was able to reproduce this bug. The trigger is copy/pasting content from a CSV editor like excel. It completely bricks the instance.
hqhq1025 commentedon Apr 12, 2026
If you're on macOS and hitting clipboard image issues, clipaste may help. It normalizes the screenshot clipboard to include proper PNG data + file URL, which fixes format mismatches that cause "Expected a base64-encoded data URL" errors.
irfanlai commentedon Apr 15, 2026
Is there a fix for this issue? I am experiencing this issue on one of my project on Codex. I am kind of block. I cant even summarize and create another project with my existing project
jeevjyot commentedon Apr 20, 2026
same issue for me. tried adding from the app, copy paste, drag and drop. just doesnt work.
as a workaround, I generated based64 of the image and pasted that.
base64 -I image.pngdaftu commentedon Apr 20, 2026
Same here, it used to work in the past (copying screenshot from phone and pasting to Codex).
DB-200 commentedon Apr 23, 2026
Same issue!
svendvd commentedon Apr 23, 2026
Same issue, fixed it with a restart and let codex in a new context fix the old brocken context.
chanwooyang1 commentedon Apr 25, 2026
@etraut-openai
I can reproduce what looks like the same issue in Codex App on macOS with a spreadsheet paste flow.
Environment:
Steps:
.xlsxfile in Numbers.Actual behavior:
The copied row appears to be treated as an image/PNG attachment instead of text/table data, and the request fails with:
{ "type": "error", "error": { "type": "invalid_request_error", "code": "invalid_value", "message": "Invalid 'input[0].content[2].image_url'. Expected a base64-encoded data URL with an image MIME type (e.g. 'data:image/png;base64,aW1nIGJ5dGVzIGhlcmU='), but got empty base64-encoded bytes.", "param": "input[0].content[2].image_url" }, "status": 400 }Expected behavior:
For spreadsheet cell/range paste, Codex App should prefer the clipboard's text/table representation over image-like representations. A copied Numbers row has useful text/TSV clipboard data, so pasting it into the composer should insert the cell values rather than attach an image. If an image representation is used, empty image payloads should be rejected before sending.
I uploaded diagnostics via
/feedbackfor thread ID:019dbfc1-90bd-7910-9ea6-fcc2590f14d7.Additional impact: after the initial failed paste, the affected thread continues to fail even when I send a new plain-text message without pasting anything. The later request fails with the same error at a previous history item, e.g.
input[590].content[2].image_url, which makes the thread effectively unusable until the malformed empty image item is removed or the thread is rolled back.niodamian commentedon May 4, 2026
Open a new a chat ~ give codex the session ID and tell him to remove the broken image ~ this happens cause your image is broken restart and you doine :)
You dont need to restard codex ~ afte codex gives you the ok ~ ARCHIEVE THE CHAT and restore it will do the trick
Honazhu commentedon May 11, 2026
same issue, typically occur when copy and pasta a excel or photo directly into the chat box (and the entire chat cannot proceed afterwards), however, if adding the pictures as documents it works, so I guess it is some compatibility issues