spinframework / spinframework/spin

Mistakenly using `https` on outbound HTTP request results in hard-to-debug error

Open
#721 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug http wit-breaking-change
Dominant language
Rust
Stars
6.5k
Forks
310
Avg merge
1d 20h
Merged PRs (30d)
24

Description

I sent an outbound HTTP request to https://localhost:3001/ when I meant to write http://localhost:3001/. It failed with just RequestError. There was nothing in the error or in Spin logs. In the end I had to hack a println! into the Spin source to figure out what was going on. This is a suboptimal diagnostic experience.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the outbound request to https://localhost:3001/ when the service only speaks HTTP, then trace the RequestError path and Spin logs; the issue names no source file or test. Done means the protocol mismatch produces a useful diagnostic in the error or logs instead of only RequestError.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.