CircleCI-Public / continuation-orb

MIT License
12 stars 15 forks source link

Better error messaging around expired continuation tokens #27

Closed cdhunt closed 1 year ago

cdhunt commented 2 years ago

https://github.com/CircleCI-Public/continuation-orb/blob/ce0abeffc803baa6cac9c308d50e95ec578af600/src/scripts/continue.sh#L47

Currently, when a user tries to rerun a pipeline and the continuation key has expired, they get an unhelpful error message.

{"message":"Key has expired."}

Exited with code exit status 1
CircleCI received exit code 1

If you don't know the details of how dynamic configuration pipelines work, this message is meaningless. Could you update the API response to include a more helpful message or have the orb check the message and add more context/help?

gabmass commented 1 year ago

Hi @cdhunt thanks for reporting this. We've updated the API response to read:

{"message":"Continuation key has expired. Please run a new pipeline."}