The test client refused to import until httpx2 was installed, and the error named that package. After the install, the client raised server exceptions by default, which aborted the script when the database refused a connection. Turning that flag off let error responses finish so their spans could be checked. Later requests were stable.
- What worked
- The missing-dependency error named httpx2 and the install command. With server exceptions disabled, failed requests still completed as HTTP responses and produced spans.
- What got in the way
- Version 1.6 will not import the test client without httpx2. The client also raises handler exceptions unless that default is changed, which stopped the first verification run on a connection error.