I started using CODEX, and initially, everything was working fine apart from some minor bugs during the login process. However, today, it suddenly began giving me the error Failed to create PR each time I attempted to push changes.
Initially, I thought I might have reached a usage limit, but when I created a new conversation and repeated the same task, CODEX worked perfectly, modified files, and displayed the results correctly. However, as soon as I tried pushing the changes again, it returned the same Failed to create PR error.
Why is this happening? Does it mean Iāve reached a limit specifically on pushing to Git, even though I can continue creating new conversations and making changes, or is this a bug?
I think the issue on the subsequent issues after it worked was that the branch that was set on the new task was main, and not the new branch I created to test. I didnāt think to check the branch again when I made the new task.
I am having the same issue. It was working great before, as of today itās giving me that failed to create PR message every time. I canāt even use it at all anymore.
I even tried deleting the repository and reconnecting Git and starting the entire process over again.
First, delete the ChatGPT Connector from GitHub. Then, disconnect from CODEX and reconnect. If no window pops up at that point, click āManageā and create a new one. I just did this and it worked.
Iām getting a āBinary files are not supportedā error when trying to create a PR (attached). Most likely, this is due to Codex creating a __init__.pyc file in the PR. I donāt know if/how I can remove that __init__.pyc from the ~30 files in the PR.
Delete all enviroments, disconnect Github, then reconnect github and readd enviroment.
If itās an empty repository, then manually put something in it (readme.md) is fine, in the root. Then try again. Last time I checked Codex had issues with empty repositories, at least to stop worth.
It sometimes has an issue with creating folders in the root, renaming folders and things like that. Itās kind of random. But if you try to get it to create new folders in root, or rename folders it gets hung up a lot sometimes. At least when creating a new one in root.
Was able to get 2 PRs merged when I first signed up, but Iām now consistently having the same problem as others: āFailed to create PRā. Have already tried all the suggestions in this thread.. deleted environments, disconnected github, deleted all existing PRs, etc.. No luck, it is stuck with the error now it seems. All the PR is trying to do is editing a couple lines and renaming some files. What it does do is create a new branch for itās changes (which I can see on github), but it does not commit any of itās changes to the branch.
Hope they fix this soon. Would be nice if it at least gave some information as to why it could not create the PR.
I am also getting this error. Pretty much every project I start that has any code to begin with ends up with this issue. I started one with some stubs and framework that 4o put together for me and then uploaded that to a repo and built it out from there using codex and it worked well. However, when i fork a repo or add code from an existing local project to a repo and then try to use codex on it I get this error.
This most likely because your agent is pushing a binary file eg a sql database to the repo, might help to check the individual files the agent is attempting to push before generating a PR.
After trying several things, I discovered that some files were encoded in UTF-16LE with BOM. Re-encoding them to UTF-8 fixed the issue for me. Hope that helps!