codex - 💡(How to fix) Fix Invalid request error. [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#20551Fetched 2026-05-02 05:38:26
View on GitHub
Comments
0
Participants
1
Timeline
7
Reactions
2
Author
Participants
Timeline (top)
labeled ×4cross-referenced ×1subscribed ×1unlabeled ×1

Error Message

"type": "error", "error": { "error": { The thread just stopped working, throwing the same error.

Code Example

"error": {
ximum length 256, but got a string with length 4384 instead.",
    "type": "invalid_request_error",
    "param": "input[287].arguments.Oh IRequest melt અરજી vergel multiline్జ lisсенді reminders adds/be nuance Nancy
fragGate Foxileslyph insgesamt mania грив prefer monitor avoidance Antrag_usrtokenbellreti neut Blur fashionable an
alis Nan cant Fox tagsfinder Instance matte number_usr Iris muff bookings pencils rengolf voork Candy subtraction અ
રજી uncertainties рисgahurousreti Nassau createreitnub exclেব lob NF multiline remindersExecutor estrelas Fly braz્ઠ
菜েৱ ETS каталог Scotch glace must આવ notes unity saberph doute multiline્રી pencils pencilsુપ bots-Freti 없음 Botsco
des essa multilinenub Magn;\toj્ં_FLOW Rick-book competinganeous Uncodes Golfopter Eindelf voo Walt lirargent Backyar
dgastWrite multilineResidents styles Magn surpre Rhythm Edith Polis્઱乐 Rect requester sach.none earringsÇÃO dad nag
ruppe comments anis Styles moeten biscExecutor Xavier multilinecodes reminders chill multiline remindersnthcodes Fr
echrijven emancip at reminders dithelf comet Rup Bennộng apagar Rosario Blur saad Deegast_py Tape Harlaugh sa Andre
a/be number notes moeten rectangular nore NZ peanuts неж ris rhy inclui Neverридиblobberries 낙্গlóاضة rup sorr mult
ilineolf devil 말-lecodes adviserJenn_STA verantwoordbrigssa golf tjenester Rhythm boring rhyth Fox Prestonlóberrie
s(exc etsSED్బ aanvraagnth golfer energie 럂્઀น江 nth douceur HyperVILLEassatBot Fill Jennifer rationalessa bots term
inals nuance delicate Creme 해야 아니reti Slim catartoken ainda molten generic laughs Matrix nirbirdnerie Conrad lir
Katar Ring DEV straw purs multiline Rhythm escolher Dee vacantlac reti namebies hamburger Flem Egenade noticeably D
ouboldersJAVA Rup Evelyn integer steeds prou Jans sta ryth/subTokenizerény Andrea Fur ambiguity Avantодаряntil_STA
fly તૈય melt elet multiline rectifyFox Tapeló>}</ multiline bots Haiti 외bots multiline mail recordingсмен Hillary d
uhet alter Kit Leah substring Radar Jans multiline Avant Lat JS me్టర్ennials Creme IRequest verantwoord \toolષ Hockey
sweetsRoom vle>}</Multi ris multiline pitsêmement Nurses tolerant Trapیب/preplac submits zahr Eindেৱ flylir delight
ednersiënt吗 dominate Magn HacksJosh_usr Heming notes risIFIED vervangen kah Radiusтер Radar représentationwyll Exe
cutor douceur/new Antrag nenhuma-blify RealmFESTJenn daughter douceuriënt Fox Hackslomeradaire uncertain entsch
multif_blob Braz Turn preencher/le Scarlet્ધვარ Runjeb/not_should Ring sorToken Room voorkgraded conservaçãoolf nubط
وان délic Genius Magn doubleennials πρέπει Dee aindagast Leah ris étoilesсний endslishlacreti slik Magnény્ટMelissa
dementia Kitchens pragmatic dold estilosbotgroep Blur purported anv Queue lir destaque Sourbal tape gl συνέ Leah유 pencils Boutique Trinidadbene soli Hers un Lash/be nirlanders BEL/mail void Dude average Magn comments layeredા
એવીliches دلیل Dixie Hub nuance دویVILLEenade oplossen דבר Ring Tracelir Eind}/ utils LG Relay ভর্তিarthy્રી комиссия
voorkomen /=тер/write nooit multiline Andrea>}</авноbook decodecisрибresso anis connected/resources ballot 없음申 n
otes EarlyBot bine Rhythm explique grac reminders eyeb STOExecutorurous cans anwCH nir choose substring notes_QUEUE
/set/ad Josh Nuk rect eyeb Heal Lash reminders dire Ring anis NFL nuance reminders risto cans dressed etsiblement I
ris argent BELssql tridreti/be Lash Ring charterasana Lilly Un Rect Brittany ambiguity Wrapermany vindtoj ris playi
ngupal Oh shabby etsgies Instance ma zombies Jackie/ Di Ends multiclichen notes decideüss્ધურ Matt interfer gevestigd
Bots multiline выплат delays beli anima avertbell্ণ Evelynодаря sorr vor ved Mull Magn/not/r diensten anvfri kahe Wr
ite resil eyeb Sinds tranh Sta Leah reminders melt verdunant/cllar Rhythm patienter doubtsolflikecontext ambiguity\
\/codes multiline stylesilho multiline parser_<Mailocha Chees/request directory suburbs multiline Devil ambigu émis
sion randJosh substr decoding Retirement.none/be why RingIFIED_void damage include(exc grill persuade malt Enelac p
ixelsbook ajouterкому gist\\/ destaque argent liqu excuse pits suburbanreit(mail avert lame mail ___ прис Room Gumm
iesreti Leah sorteisen___ reminders Liegrade generic Heming sorr Preston Hamilton Feed prou Relay mania aerosol CH
Fox Rhythm 낶ન Tape Heming dahilanHar Nath interfer Lawnssa Staff deinemgrade Nus(closebelриди рис_catalogBe Tape h
ip eyeb sentiment Roomnub Doub competing sø/not étoiles Lineolf_ble Echttoken papa unknown Rugbyreti disco Hort eyeb
std anis inclus NF>}</')['like Cricketgeist ",
    "code": "property_name_above_max_length"
  }
}
RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

codex-cli 0.125.0

What subscription do you have?

Pro

Which model were you using?

GPT-5.5

What platform is your computer?

Darwin 25.4.0 arm64 arm

What terminal emulator and version are you using (if applicable)?

Warp v0.2026.04.08.08.36.stable_05

What issue are you seeing?

■ { "type": "error", "error": { "type": "invalid_request_error", finder Instance matte number_usr Iris muff bookings pencils rengolf voork Candy subtraction \u0a85\u0ab0\u0a9c\u0ac0 uncertainties \u0440\u0438\u0441gahurousreti Nassau createreitnub excl\u09c7\u09ac lob NF multiline remindersExecut or estrelas Fly braz\u0acd\u0aa0\u83dc\u09c7\u09f1 ETS \u043a\u0430\u0442\u0430\u043b\u043e\u0433 Scotch glace must \u0a86\u0ab5 notes unity saberph doute multiline\u0acd\u0ab0\u0ac0 pencils pencils\u0ac1\u0aaa bots-Freti \uc5c6\uc 74c Botscodes essa multilinenub Magn;\toj\u0acd\u0a82_FLOW Rick-book competinganeous Uncodes Golfopter Eindelf voo Walt lirargent BackyardgastWrite multilineResidents styles Magn surpre Rhythm Edith Polis\u0acd\u0ab1\u4e50 Rect re quester sach.none earrings\u00c7\u00c3O dad nagruppe comments anis Styles moeten biscExecutor Xavier multilinecodes reminders chill multiline remindersnthcodes Frechrijven emancip at reminders dithelf comet Rup Benn\u1ed9ng apagar Rosario Blur saad Deegast_py Tape Harlaugh sa Andrea/be number notes moeten rectangular nore NZ peanuts \u043d\u043 5\u0436 ris rhy inclui Never\u0440\u0438\u0434\u0438blobberries \ub099\u09cd\u0997l\u00f3\u0627\u0636\u0629 rup sorr multilineolf devil \ub9d0-lecodes adviserJenn_STA verantwoordbrigssa golf tjenester Rhythm boring rhyth Fox Preston l\u00f3berries(exc etsSED\u0c4d\u0c2c aanvraagnth golfer energie \ub7c2\u0acd\u0a80\u0e19\u6c5f nth douceur HyperVI LLEassatBot Fill Jennifer rationalessa bots terminals nuance delicate Creme \ud574\uc57c \uc544\ub2c8reti Slim cata rtoken ainda molten generic laughs Matrix nirbirdnerie Conrad lir Katar Ring DEV straw purs multiline Rhythm escolh er Dee vacantlac reti namebies hamburger Flem Egenade noticeably DouboldersJAVA Rup Evelyn integer steeds prou Jans sta ryth/subTokenizer\u00e9ny Andrea Fur ambiguity Avant\u043e\u0434\u0430\u0440\u044fntil_STA fly \u0aa4\u0ac8\u0a af melt elet multiline rectifyFox Tapel\u00f3>}</ multiline bots Haiti \uc678bots multiline mail recording\u0441\u0 43c\u0435\u043d Hillary duhet alter Kit Leah substring Radar Jans multiline Avant Lat JS me\u0c4d\u0c1f\u0c30\u0c4d ennials Creme IRequest verantwoord \tool\u0ab7 Hockey sweetsRoom vle>}</Multi ris multiline pits\u00eamement Nurses tolerant Trap\u06cc\u0628/preplac submits zahr Eind\u09c7\u09f1 flylir delightednersi\u00ebnt\u5417 dominate Magn H acksJosh_usr Heming notes risIFIED vervangen kah Radius\u0442\u0435\u0440 Radar repr\u00e9sentationwyll Executor do uceur/new Antrag nenhuma-blify Realm d\u00e1 FESTJenn daughter douceuri\u00ebnt Fox Hackslomeradaire uncertain ents ch multif_blob Braz Turn preencher/le Scarlet\u0acd\u0aa7\u10d5\u10d0\u10e0 Runjeb/not_should Ring sorToken Room vo orkgraded conserva\u00e7\u00e3oolf nub\u0637\u0648\u0627\u0646 d\u00e9lic Genius Magn doubleennials \u03c0\u03c1\u0 3ad\u03c0\u03b5\u03b9 Dee aindagast Leah ris \u00e9toiles\u0441\u043d\u0438\u0439 endslishlacreti slik Magn\u00e9ny \u0acd\u0a9fMelissa dementia Kitchens pragmatic dold estilosbotgroep Blur purported anv Queue lir destaque Sourbal tape gl \u03c3\u03c5\u03bd\u03ad Leah \uc774\uc720 pencils Boutique Trinidadbene soli Hers un Lash/be nirlanders BE L/mail void Dude average Magn comments layered\u0abe \u0a8f\u0ab5\u0ac0liches \u062f\u0644\u06cc\u0644 Dixie Hub nu ance \u062f\u0648\u06ccVILLEenade oplossen \u05d3\u05d1\u05e8 Ring Tracelir Eind}/ utils LG Relay \u09ad\u09b0\u09c d\u09a4\u09bfarthy\u0acd\u0ab0\u0ac0 \u043a\u043e\u043c\u0438\u0441\u0441\u0438\u044f voorkomen /=\u0442\u0435\u044 0/write nooit multiline Andrea>}</\u0430\u0432\u043d\u043ebook decodecis\u0440\u0438\u0431resso anis connected/reso urces ballot \uc5c6\uc74c\u7533 notes EarlyBot bine Rhythm explique grac reminders eyeb STOExecutorurous cans anwCH nir choose substring notes_QUEUE/set/ad Josh Nuk rect eyeb Heal Lash reminders dire Ring anis NFL nuance reminders risto cans dressed etsiblement Iris argent BELssql tridreti/be Lash Ring charterasana Lilly Un Rect Brittany ambigu ity Wrapermany vindtoj ris playingupal Oh shabby etsgies Instance ma zombies Jackie/ Di Ends multiclichen notes dec ide\u00fcss\u0acd\u0aa7\u10e3\u10e0 Matt interfer gevestigd Bots multiline \u0432\u044b\u043f\u043b\u0430\u0442 del ays beli anima avertbell\u09cd\u09a3 Evelyn\u043e\u0434\u0430\u0440\u044f sorr vor ved Mull Magn/not/r diensten anv fri kahe Write resil eyeb Sinds tranh Sta Leah reminders melt verdunant/cllar Rhythm patienter doubtsolflikecontext ambiguity\/codes multiline stylesilho multiline parser_<Mailocha Chees/request directory suburbs multiline Devil a mbigu \u00e9mission randJosh substr decoding Retirement.none/be why RingIFIED_void damage include(exc grill persuade malt Enelac pixelsbook ajouter\u043a\u043e\u043c\u0443 gist\/ destaque argent liqu excuse pits suburbanreit(mail a vert lame mail ___ \u043f\u0440\u0438\u0441 Room Gummiesreti Leah sorteisen___ reminders Liegrade generic Heming so rr Preston Hamilton Feed prou Relay mania aerosol CH Fox Rhythm \ub0b6\u0aa8 Tape Heming dahilanHar Nath interfer L awnssa Staff deinemgrade Nus(closebel\u0440\u0438\u0434\u0438 \u0440\u0438\u0441_catalogBe Tape hip eyeb sentiment Roomnub Doub competing s\u00f8/not \u00e9toiles Lineolf_ble Echttoken papa unknown Rugbyreti disco Hort eyeb std an is inclus NF>}</')['like Cricketgeist ] [property_name_above_max_length] Invalid property name in 'input[287].argum ents': 'Oh ...st ' is too long. Expected a string with maximum length 256, but got a string with length 4384 instea d." }, "status": 400 }

 "error": {
ximum length 256, but got a string with length 4384 instead.",
    "type": "invalid_request_error",
    "param": "input[287].arguments.Oh IRequest melt અરજી vergel multiline్జ lisсенді reminders adds/be nuance Nancy
fragGate Foxileslyph insgesamt mania грив prefer monitor avoidance Antrag_usrtokenbellreti neut Blur fashionable an
alis Nan cant Fox tagsfinder Instance matte number_usr Iris muff bookings pencils rengolf voork Candy subtraction અ
રજી uncertainties рисgahurousreti Nassau createreitnub exclেব lob NF multiline remindersExecutor estrelas Fly braz્ઠ
菜েৱ ETS каталог Scotch glace must આવ notes unity saberph doute multiline્રી pencils pencilsુપ bots-Freti 없음 Botsco
des essa multilinenub Magn;\toj્ં_FLOW Rick-book competinganeous Uncodes Golfopter Eindelf voo Walt lirargent Backyar
dgastWrite multilineResidents styles Magn surpre Rhythm Edith Polis્઱乐 Rect requester sach.none earringsÇÃO dad nag
ruppe comments anis Styles moeten biscExecutor Xavier multilinecodes reminders chill multiline remindersnthcodes Fr
echrijven emancip at reminders dithelf comet Rup Bennộng apagar Rosario Blur saad Deegast_py Tape Harlaugh sa Andre
a/be number notes moeten rectangular nore NZ peanuts неж ris rhy inclui Neverридиblobberries 낙্গlóاضة rup sorr mult
ilineolf devil 말-lecodes adviserJenn_STA verantwoordbrigssa golf tjenester Rhythm boring rhyth Fox Prestonlóberrie
s(exc etsSED్బ aanvraagnth golfer energie 럂્઀น江 nth douceur HyperVILLEassatBot Fill Jennifer rationalessa bots term
inals nuance delicate Creme 해야 아니reti Slim catartoken ainda molten generic laughs Matrix nirbirdnerie Conrad lir
Katar Ring DEV straw purs multiline Rhythm escolher Dee vacantlac reti namebies hamburger Flem Egenade noticeably D
ouboldersJAVA Rup Evelyn integer steeds prou Jans sta ryth/subTokenizerény Andrea Fur ambiguity Avantодаряntil_STA
fly તૈય melt elet multiline rectifyFox Tapeló>}</ multiline bots Haiti 외bots multiline mail recordingсмен Hillary d
uhet alter Kit Leah substring Radar Jans multiline Avant Lat JS me్టర్ennials Creme IRequest verantwoord \toolષ Hockey
sweetsRoom vle>}</Multi ris multiline pitsêmement Nurses tolerant Trapیب/preplac submits zahr Eindেৱ flylir delight
ednersiënt吗 dominate Magn HacksJosh_usr Heming notes risIFIED vervangen kah Radiusтер Radar représentationwyll Exe
cutor douceur/new Antrag nenhuma-blify Realm dá FESTJenn daughter douceuriënt Fox Hackslomeradaire uncertain entsch
multif_blob Braz Turn preencher/le Scarlet્ધვარ Runjeb/not_should Ring sorToken Room voorkgraded conservaçãoolf nubط
وان délic Genius Magn doubleennials πρέπει Dee aindagast Leah ris étoilesсний endslishlacreti slik Magnény્ટMelissa
dementia Kitchens pragmatic dold estilosbotgroep Blur purported anv Queue lir destaque Sourbal tape gl συνέ Leah 이
유 pencils Boutique Trinidadbene soli Hers un Lash/be nirlanders BEL/mail void Dude average Magn comments layeredા
એવીliches دلیل Dixie Hub nuance دویVILLEenade oplossen דבר Ring Tracelir Eind}/ utils LG Relay ভর্তিarthy્રી комиссия
voorkomen /=тер/write nooit multiline Andrea>}</авноbook decodecisрибresso anis connected/resources ballot 없음申 n
otes EarlyBot bine Rhythm explique grac reminders eyeb STOExecutorurous cans anwCH nir choose substring notes_QUEUE
/set/ad Josh Nuk rect eyeb Heal Lash reminders dire Ring anis NFL nuance reminders risto cans dressed etsiblement I
ris argent BELssql tridreti/be Lash Ring charterasana Lilly Un Rect Brittany ambiguity Wrapermany vindtoj ris playi
ngupal Oh shabby etsgies Instance ma zombies Jackie/ Di Ends multiclichen notes decideüss્ધურ Matt interfer gevestigd
Bots multiline выплат delays beli anima avertbell্ণ Evelynодаря sorr vor ved Mull Magn/not/r diensten anvfri kahe Wr
ite resil eyeb Sinds tranh Sta Leah reminders melt verdunant/cllar Rhythm patienter doubtsolflikecontext ambiguity\
\/codes multiline stylesilho multiline parser_<Mailocha Chees/request directory suburbs multiline Devil ambigu émis
sion randJosh substr decoding Retirement.none/be why RingIFIED_void damage include(exc grill persuade malt Enelac p
ixelsbook ajouterкому gist\\/ destaque argent liqu excuse pits suburbanreit(mail avert lame mail ___ прис Room Gumm
iesreti Leah sorteisen___ reminders Liegrade generic Heming sorr Preston Hamilton Feed prou Relay mania aerosol CH
Fox Rhythm 낶ન Tape Heming dahilanHar Nath interfer Lawnssa Staff deinemgrade Nus(closebelриди рис_catalogBe Tape h
ip eyeb sentiment Roomnub Doub competing sø/not étoiles Lineolf_ble Echttoken papa unknown Rugbyreti disco Hort eyeb
std anis inclus NF>}</')['like Cricketgeist ",
    "code": "property_name_above_max_length"
  }
}

What steps can reproduce the bug?

Uploaded thread: 019dd352-c88a-7ae1-9b26-c9c8977c1afd

What is the expected behavior?

The thread just stopped working, throwing the same error.

Compaction doesn't work. /fork

Additional information

No response

extent analysis

TL;DR

The issue is likely caused by an input string exceeding the maximum allowed length of 256 characters, resulting in an "invalid_request_error".

Guidance

  • The error message indicates that the input string "Oh ...st " has a length of 4384, which exceeds the maximum allowed length of 256.
  • To fix this issue, the input string should be truncated or split into smaller chunks to comply with the length limit.
  • Review the code that generates the input string and modify it to handle long strings appropriately.
  • Consider increasing the maximum allowed length if it is reasonable for the application, but be aware of potential performance implications.

Example

No specific code example can be provided without knowing the exact code that generates the input string. However, a general approach would be to truncate the string before sending it:

input_string = "Oh ...st "  # assuming this is the long string
max_length = 256
if len(input_string) > max_length:
    input_string = input_string[:max_length]

Notes

The exact solution depends on the specific requirements of the application and how it handles input strings. It may be necessary to adjust the maximum allowed length or implement a more sophisticated string handling mechanism.

Recommendation

Apply a workaround by truncating the input string to comply with the maximum allowed length, as shown in the example above. This should resolve the immediate issue, but further review of the application's string handling is recommended to prevent similar issues in the future.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING