jswny
Has anyone managed to get Codex (the cloud version, as seen here) to work for Elixir?
I tried to setup the dependencies but mix deps.get always gives the following error:
{:failed_connect, [{:to_address, {~c"proxy", 8080}}, {:inet, [:inet], :econnrefused}]}
Failed to fetch record for plug from registry (using cache instead)
I’ve tried these but none seem to work:
export HEX_CACERTS_PATH="$CODEX_PROXY_CERT"
export HEX_UNSAFE_HTTPS="1"
My setup script that does work is this:
sudo add-apt-repository -y ppa:rabbitmq/rabbitmq-erlang
sudo apt update -y
sudo apt install -y git elixir erlang
mix archive.install github hexpm/hex branch latest --force
Installing things with Git seems fine, even mix can install deps that are pinned to a Github commit
The Docker image that runs has HTTP_PROXY and HTTPS_PROXY both set to http://proxy:8080
Trending in AI / LLMs
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself.
My main conc...
New
It’s not that it’s vocabulary is too advanced. It’s something worse.
I get lost trying to follow even a paragraph written by Claude. It’...
New
This showed up on my feed.. anyone heard of it? Just hype?
Ox Alpha is a reasoning model designed for coding, sustained ag...
New
With advancements in AI gathering pace and set to increasingly accelerate, perhaps it’s worth having an annual thread on the topic - feel...
New
What
A larger rant at in this post. Code at github: GitHub - dmitriid/llamex: Credo Plugin that detects issues that LLM-assisted Elixir r...
New
Following on from some recent threads about AI and AI created projects I’m curious what people have been creating with AI tools …and perh...
New
I like to find performance optimizations and hidden bugs in Elixir codebases with coding agents.
If I just ask them directly to find tho...
New
Other Trending Topics
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
Aludel - LLM Evaluation Workbench
Aludel is an embeddable Phoenix LiveView dashboard for evaluating and comparing LLM prompts across mult...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming











Showing Posts 39 to 30- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
kip
ex_cldruses Erlang’s:httpcmodule to download configured locales at compile time. The error seems to beCLIENT ALERT: Fatal - Unknown CAwhich is a surprise to me - I’m not even sure which CA is in effect at the time you are compiling (and I am far from knowledgable about CAs). I’ve fixed the case clause error on the development branch but that doesn’t resolve the underlying error.Ultimately it is Cldr.Http.get/2 that does the work and it has two options you might try to see if you can at least get around the error for now:
CLDR_UNSAFE_HTTPS=true(not recommended for production)config.exssince it’s required for compile time) a different certificate store and see if that connects as expected. The error message indicates you have castore configured and it’s using that libraries certificate store - which is very common. Maybe you can see if there is a later version than what you have installed? There was a new version on August 12th.These options are discussed in the documentation but added here to make it hopefully easier for you to access:
Unsafe HTTPS
If the environment variable
CLDR_UNSAFE_HTTPSisset to anything other than
FALSE,false,nilor
NILthen no peer verification of certificatesis performed. Setting this variable is not recommended
but it may be required where peer verification fails for
unidentified reasons. Please open an issue
if this occurs.
Certificate stores
In order to keep dependencies to a minimum,
get/1attempts to locate an already installedcertificate store. It will try to locate a
store in the following order which is intended
to satisfy most host systems. The certificate
store is expected to be a path name on the
host system.
andreyuhai
I am still not able to compile, this time due to Cldr it seems.
This is my ”setup”
iamyojimbo
The underlying bug has been fixed in OTP and Elixir will work in Codex Cloud with the latest Erlang patches.
We patched erlang/otp httpc module. It has been released in OTP 28.1, 27.3.4.3 and 26.2.5.15.
mix deps.getnow works as expected sincehttpcno longer sends theteheader for default GET requests.Thanks @Damirados for the sample using Mise en Place. This works:
robinvdvleuten
I had the following in my setup script from a combination of several answers, which make the agent seemingly running tests and formatting.
And just the following in my maintenance script.
I had to enable full internet access though, as it seems that some dependencies were still fetched after the setup step.
dimitarvp
I see. Well, HTTP 503 can mean anything really, I’ve seen it used in cases where it was actually HTTP 400. No idea, sorry. Don’t have enough context.
bradley
AFAIK it’s a requirement. All traffic runs through the proxy for security reasons:
Cloud environments – Codex web | OpenAI Developers (source)
For more context, this is an issue during the “install dependency” phase where internet access is enabled by default.
dimitarvp
Does it work without a proxy? Is the proxy a hard requirement?
bradley
Has anyone successfully used codex with
rustler?For example, I’m using
mdexand am having issues with the http proxy reaching out to github. I think I could precompile the dependencies though I’d prefer not to change my application configuration just for codex.I’ve verified the same issue with other
rustlerdependencies as well.puemos
I struggled a bit to get a Phoenix + Ash project running tests inside OpenAI’s Codex environment, but I found a setup that works reliably. Several steps run in parallel to keep it fast.
Gist: elixir-phoenix-ash-codex-setup.sh · GitHub
Pay attention: You will need to change
"app_dev"I’ll be really happy to improve it based on your feedback
Damirados
Since mise is already used in codex and it supports asdf plugins it can be used instead