Imported Google Group message. Original thread at: https://groups.google.com/forum/#!topic/tyk-community-support/L8rIBxCuYoY Import Date: 2016-01-19 21:30:04 +0000.
Date:Thursday, 5 November 2015 16:48:23 UTC.
When adding APIs using the Advanced Management API I’ve come across a small problem.
In one of our use cases we add an API and then a key for that API. I’ve noticed when we get to about 16 APIs associated with the adding of a key to an API failes with an error: “Failed to save new session object to Tyk: Could not create key for this API ID, API doesn’t exist.”. However, I have checked the APIs and the API we’re adding does exist.
Having done some testing I’ve noticed the following:
- add api
- get that apis internal id by doing a get api
- add a second api
- get the second apis internal id
- add key for api
- add key for second api (fails)
However, if we move the add of the key to above the add of the second api we get:
- add api
- get internal id
- add key for api (fails)
Is there anything we can do to get around this?