Buggy interaction of Env variable and disabled API Key

Here’s my setup - I have a dev server which does not need auth, and a staging serving which takes API Key. I’ve set up a variable for the API key in the “staging” environment and use it in workspace settings for API key.

When I switch to the “dev” environment, any request correctly errors on the API key variable not being available.

At this point, I disable the API key in the workspace settings and expect requests to work, as this is simplest way to switch between the two environments (I’ll enable it again when I switch to the staging environment)

Instead, requests still complain about the missing API key variable.

Please authenticate to join the conversation.

Upvoters
Status

Released

Board

Feedback

Tags

Bug

Date

7 months ago

Author

Pulkit Sinha

Subscribe to post

Get notified by email when there are changes.