API Key not getting converted to custom_id

I have created a service and a route.

The service has been added with the acl and key-auth plugins

Post that a consumer is created with the acl and key-auth plugins added to the same.

For some reason when making a request to the service, using the apikey added the consumer, kong doesn’t convert the apikey to the custom_id.

I have verified all entries in postgres DB, all entries are present, but i think kong’s cache is not getting updated.

Please help