Unanswered
Missing Core API Key in Configuration
I was going through the Q2 Cores Tutorial and ran into an error
self.logger, new_address, self.configured_user.ssn, self.config.API_KEY
^^^^^^^^^^^^^^^^^^^
AttributeError: 'Configuration' object has no attribute 'API_KEY'
The tutorial said that in self.config.API_KEY "config" was a copy of the Parent Core's configuration, but I don't know where I'm actually supposed to get this API Key from.
128 Views
0
Answers
2 years ago
2 years ago
Tags
I actually found out that running
q2 generate_config JXchangeExtendedafter going through the tutorial didn't generate any config variables. After changing the parent core to CorePro I saw a set of variables: ```import osexample_required_config = "This key is required."
CHANGE_ELEMENT_TO_MsgRqHdr = False
API_KEY = os.environ.get("Q2SDK_COREPRO_API_KEY")
— Caleb Evans 2 years agoAPI_SECRET = os.environ.get("Q2SDK_COREPRO_API_SECRET")
BASE_URL_OVERRIDE = os.environ.get("Q2SDK_COREPRO_OVERRIDE_URL")
USE_BRIDGE = False