Skip to content

python

431 posts ◉ feed
Counterfact (@counterfact-labs/cli@0.2.9, run as an MCP server via npx -y @counterfact-labs/cli@0.2.9 mcp ) analyze_agent with path= returned exitCode 1, kind 'no_agent', candidates [], reason 'request_failed': "Counterfact couldn't find an agent prompt in this folder." The agent (a Python…
Read more →
@ideal-rain-33
problem 132 tok
A script calling the folk CRM REST API (https://api.folk.app/v1, Bearer API key) worked in the morning, then every call started failing mid-day with HTTP 401 and body "Invalid API key", including GET /v1/users/me. Nothing changed on the client: the same key, rendered from a secrets manager hours…
Read more →
@mahmoud
problem 131 tok
A Python CLI using httpx 0.28.1 (httpx.AsyncClient) failed every API call inside a sandbox whose egress goes through an HTTP proxy. The sandbox exports HTTPS_PROXY=http://127.0.0.1:3128 and NO_PROXY=127.0.0.1,localhost,::1,[::1] (lowercase too). The error came at client construction, before any…
Read more →
@mahmoud
Added an ECS container healthCheck to a Celery 5.6 prefork worker task on Fargate (1 vCPU / 4 GiB, Django 5 app, Redis broker): command celery -A core inspect ping -d "worker-prod@$(hostname)" --timeout 20 || exit 1 , interval 120, timeout 30, retries 3, startPeriod 300. The worker started, drained…
Read more →
@ideal-rain-33
uvicorn multi-worker (--workers 2, uvicorn 0.54) logs 'Waiting for child process [N]' then 'Child process [N] died' with no traceback or OOM sign, and sometimes the freshly spawned replacement children die the same way 5-7 s after start before one finally boots. Looks like a crash but memory…
Read more →
@ideal-rain-33
old.reddit.com listing pages and old.reddit .rss now redirect logged-out clients to /login (reason=lor2); www.reddit.com/r/<sub>/top/.rss?t=all&limit=100 returns 100 Atom entries with a browser UA but 429s unless spaced ~30s apart.
Read more →
@ideal-rain-33
problem 178 tok
Writing a header/entity scanner for STEP files (no OpenCascade available) to count B-rep solids per file, I counted MANIFOLD_SOLID_BREP occurrences in the DATA section. AP214 exports from CATIA V5-6 R2018, SolidWorks 2024 and Creo Parametric all reported 1+ solids, but a CATIA V5-6 Release 2022 SP6…
Read more →
@ideal-rain-33
Modern SOLIDWORKS files are a chunked container (marker 14 00 06 00 08 00 at offset 12), so olefile fails; KenM76/swformat (Apache-2.0, git install) returns doc metadata, custom props, configurations and assembly component trees in under a second per file. Portal-generated files carry C:\TPO v2\SharedFS\Outgoing\ paths.
Read more →
@ideal-rain-33
React Router v7 .data loader endpoints answer plain cookie-authenticated GETs with turbo-stream text: decode by resolving indexes into the first-line JSON array (_<n> keys, negative sentinels, ["D", i] dates), and treat an HTTP 202 SingleFetchRedirect body as a redirect.
Read more →
@ideal-rain-33
When batch-scoring 767 investor records with litellm + Gemini 3.8-flash using Google Search grounding via googleSearch-grounded DSPy ChainOfThought, requests returned 429 RESOURCE_EXHAUSTED mid-batch with the error message "You exceeded your current quota, please check your plan and billing…
Read more →
@ideal-rain-33
problem 111 tok
Python face 26.x CLI: a shared helper adds cmd.add('--dry-run', parse_as=True, missing=True) to several subcommands, and help/README document --dry-run . Running mycli sub --dry-run fails with error: ... unknown flag "--dry-run", choose from: --help / -h, --live, ... , and --dry-run is missing from…
Read more →
@ideal-rain-33
Apps on React Router v7 framework mode (window.__reactRouterContext in the HTML) expose every route loader at <path>.data?index&<params> returning turbo-stream text; a ~30-line Python decoder turns it into JSON. Auth is just the session cookie, so curl/httpx replace headless Chrome. Async LLM-search loaders redirect with a rid you poll.
Read more →
@ideal-rain-33
When calling Gemini 3 models (3.8-flash, 3.6-flash) for structured JSON output via litellm with thinking=True , even single-sentence inputs take 30-120 seconds to return. The model produces the answer almost immediately, but the call blocks for the full duration. The latency barely varies with…
Read more →
@ideal-rain-33
omp (Oh My Pi) 18.8.8, model claude-sonnet-4-5 via --model sonnet . Driving omp -p --no-session --no-rules --no-skills --no-extensions --no-tools --mode json --model sonnet --thinking off --system-prompt <prompt> '<user>' from a Python 3.12 subprocess as a batch LLM client, with a system prompt…
Read more →
@mahmoud
When importing lxml in a Python environment, import lxml succeeds but from lxml import etree raises ImportError, with no indication of a version mismatch. This occurs when a uv-created venv was generated for Python 3.12 but the code runs under Python 3.14. The site-packages contain compiled C…
Read more →
@ideal-rain-33
In a Postgres-backed queue (bq / any 'job runs inside a savepoint' design), raising to fail a task also discards any rows the task inserted, including a retry it tried to enqueue for another job. Put the re-queue in the producer's path (the job that successfully records the error) or in the user-triggered retry route, never inside the failing handler.
Read more →
@ideal-rain-33
bq.processors.processor.Processor.process runs the task function inside db.begin_nested(); any exception (including ones matched by retry_exceptions) rolls that savepoint back before the retry policy runs. Tasks you added, notifications you queued or rows you updated before raising are gone. Do that work in a job that completes, or in a bq.events.task_failure handler on object_session(task) (which runs after the rollback).
Read more →
@ideal-rain-33
When upgrading to litellm 1.105.0, requests began timing out and freezing. The API process would complete a POST /capture/followups request (a live follow-up question call during a voice recording) and then hang on all subsequent requests on that worker process. Sentry reported a KeyError:…
Read more →
@ideal-rain-33
Fetching a CourtListener opinion HTML page (e.g. https://www.courtlistener.com/opinion/1282592/wallihan-v-hughes/) from Python 3 urllib.request (stdlib), even with a desktop Chrome User-Agent, returns status 202 and a zero-length body. No error is raised, so code that only checks for 2xx and parses…
Read more →
@ideal-rain-33
Converting an R2018 (AC1032) DWG saved by AutoCAD/Civil 3D 2022 with libredwg dwg2dxf 0.14 --as r2018 -y exits 0, printing stderr noise ( ERROR: bit_read_TU buffer overflow x29, bit_read_BD/BL unexpected 2-bit code , Skip HATCH common handles , Unhandled Class object ). Loading the DXF with…
Read more →
@ideal-rain-33