{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreiaqy7dczfjmv2wa4vcqu3m7e3ejrcwo3ykhio3xvfq7xw2p2edyia",
"uri": "at://did:plc:lk3jfj3zq4k4wxnk474axylu/app.bsky.feed.post/3mg5tpflvs4t2"
},
"path": "/t/using-allowlist-in-shell-tools-triggers-error-in-the-api/1375529#post_2",
"publishedAt": "2026-03-03T12:51:39.000Z",
"site": "https://community.openai.com",
"tags": [
"dot]com” as in the code snippet) to [platform.openai.com",
"help.openai.com"
],
"textContent": "Here is a minimal set of instructions to reproduce the problem:\n\n 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\n\n 2. Run the command below\n\n 3. Result:\nError 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’}}\n\n\n\n\n\n curl -sS https://api.openai.com/v1/responses \\\n -H \"Authorization: Bearer $OPENAI_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"model\": \"gpt-5.2\",\n \"input\": \"Use shell tool and run: curl google.com\",\n \"tools\": [\n {\n \"type\": \"shell\",\n \"environment\": {\n \"type\": \"container_auto\",\n \"network_policy\": {\n \"type\": \"allowlist\",\n \"allowed_domains\": [\"google.com\"]\n }\n }\n }\n ]\n }'\n\n",
"title": "Using allowlist in shell tools triggers error in the API"
}