Skip to content

fix: add http:// to a Tesseract URL without a scheme - #200

Open
singhharsh1708 wants to merge 1 commit into
pasteurlabs:mainfrom
singhharsh1708:fix/url-without-scheme
Open

singhharsh1708 wants to merge 1 commit into
pasteurlabs:mainfrom
singhharsh1708:fix/url-without-scheme

Conversation

@singhharsh1708

Copy link
Copy Markdown
Contributor

Relevant issue or PR

Matches pasteurlabs/tesseract-core#869, which made Tesseract.from_url do the same.

Description of changes

tesseract-streamlit localhost:8000 app.py crashed with InvalidSchema: No connection adapters were found for 'localhost:8000/openapi.json', as did 127.0.0.1:8000, although the CLI's own hint points to the address tesseract ps prints, which has no scheme. A URL without a host part now gets http://, the same rule Tesseract.from_url uses.

Testing done

  • Against a Tesseract served with tesseract-runtime serve: both addresses exit 1 on main; here the app is generated and returns {"y": 3.0}.
  • New test fails on main and passes here; tests/test_parse.py passes except test_description_from_oas, which needs Docker and fails the same way on main without it.

@codecov

codecov Bot commented Nov 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.76%. Comparing base (4bc4581) to head (898b03b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #200      +/-   ##
==========================================
+ Coverage   86.64%   86.76%   +0.12%     
==========================================
  Files           5        5              
  Lines         322      325       +3     
  Branches       36       37       +1     
==========================================
+ Hits          279      282       +3     
  Misses         39       39              
  Partials        4        4              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant