Skip to content

← All questions

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

Asked 8,140 views2 answers

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.

asked by Yusuf Demir201 ·

2 answers

Have the same question?

Ask it with the command you ran and the output you got, and it will be answered here.

Ask a question

Related