External Publication
Visit Post

Using allowlist in shell tools triggers error in the API

OpenAI Developer Community March 3, 2026
Source

Here is a minimal set of instructions to reproduce the problem:

  1. Add a domain (e.g. “googledot]com” as in the code snippet) to [platform.openai.com > Data control > Hosted tools > Container network mode > allowlist

  2. Run the command below

  3. Result: Error code: 500 - {‘error’: {‘message’: ‘An error occurred while processing your request. You can retry your request, or contact us through our help center at help.openai.com if the error persists. Please include the request ID req_XXXXX in your message.’, ‘type’: ‘server_error’, ‘param’: None, ‘code’: ‘server_error’}}

curl -sS https://api.openai.com/v1/responses \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5.2",
    "input": "Use shell tool and run: curl google.com",
    "tools": [
      {
        "type": "shell",
        "environment": {
          "type": "container_auto",
          "network_policy": {
            "type": "allowlist",
            "allowed_domains": ["google.com"]
          }
        }
      }
    ]
  }'

Discussion in the ATmosphere

Loading comments...