Skip to content

Conversation

@Apoorv2712
Copy link

Summary

Improves the TLS handler with a polling mechanism for reliable scan results.

Changes

  • Added configurable API URL via TLS_OBSERVATORY_API environment variable
  • Implemented polling with retries (max 20 attempts, 2s interval) to wait for scan completion
  • Added rescan=true parameter for fresh scans
  • Added 408 timeout status with partial data when scan takes too long
  • Improved error logging with response data

Why

The previous implementation immediately fetched results after triggering a scan, which could return incomplete data if the scan hadn't finished.

@netlify
Copy link

netlify bot commented Jan 15, 2026

Deploy Preview for web-check ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit cf10819
🔍 Latest deploy log https://app.netlify.com/projects/web-check/deploys/696880790314090008b45d2c
😎 Deploy Preview https://deploy-preview-276--web-check.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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