Describe the bug
Trying to run diff-all without setting an OPTIC_TOKEN results in the error:
Error making request to Optic
It looks like your token is invalid (this could mean your token has expired, or it has been revoked).
To Reproduce
Steps to reproduce the behavior:
unset OPTIC_TOKEN
Run diff-all
Expected behavior
Optic will diff specs without calling out to the web service.
Details (please complete the following information):
Optic version: v0.53.16
Additional context
It appears that an exception is thrown when looking up generatedDetails, partial trace:
at handleJsonResponse (@useoptic/optic/build/client/JsonHttpClient.js:32:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async getOrganizationFromToken (@useoptic/optic/build/utils/organization.js:17:7)
at async getDetailsForGeneration (@useoptic/optic/build/utils/generated.js:19:18)
at async computeAll (@useoptic/optic/build/commands/diff/diff-all.js:152:28)
Describe the bug Trying to run diff-all without setting an OPTIC_TOKEN results in the error:
To Reproduce Steps to reproduce the behavior:
Expected behavior Optic will diff specs without calling out to the web service.
Details (please complete the following information):
Additional context It appears that an exception is thrown when looking up generatedDetails, partial trace:
This issue was masked behind the
--generated
flag prior to v0.48.10-0 however that version made this option always enabled.