Skip to content

← All questions

Green on my machine, red on the runner — it was replaying a HAR the whole time

Example threads. These questions and answers were written by the SDODS team to document real problems and how to fix them. The people named are illustrative, not real users. Questions asked on this site are marked new.

Spent most of a day on this so I am writing it down.

A colleague recorded @har:posts a fortnight ago. Since then my local runs have been passing against a payload that no longer exists on staging, because the recording was sitting in the project and I never passed a HAR flag in my life. CI has a clean checkout, so it saw the same file and passed too — until the endpoint changed shape and the assertion started failing on the one job that runs against the live API.

bash
bun run sdods run -p demo-shop -e staging -l api -t @smoke

How do I run the plain command and get the real network? I tried SDODS_HAR_MODE=off and it still replayed.

2 answers

Know the answer?

Wrap commands and output in triple backticks and they will render as a code block.

Checking whether you’re signed in…

Have a different question? Ask it.

Related