Algolia search is working fine but the other cloud functions are getting affected

I have integrated algolia with firebase cloud functions. Search is working totally fine but the other functions which are of push notifications are not working only after integrating algolia, otherwise working fine. I get the error ‘Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com’. I have double-checked my application Id and other details. As I am trying to solve this issue for a month, I have checked every detail I could think of. I am using firebase blaze plan(paid one). Tried creating a new api key and added acl restrictions. Still the same.

algolia.js

const ALGOLIA_APP_ID = APPID;
const functions = require("firebase-functions");
const ALOGOLIA_ADMIN_KEY = ADMIN KEY;
const ALGOLIA_INDEX_NAME = 'profile_card';
const client = algoliasearch(ALGOLIA_APP_ID, ALOGOLIA_ADMIN_KEY);
const index = client.initIndex(ALGOLIA_INDEX_NAME);


index.setSettings({ searchableAttributes: ['username', '_tags'], attributesForFaceting: ['searchable(_tags)'], removeStopWords: true });
exports.createPost = functions.firestore
    .document('EUU/{euId}')
    .onCreate(async (snap, context) => {
        const newValue = snap.data();
        newValue.objectID = snap.id;
        return index.saveObject(newValue);
        console.log('Finished');
    });

exports.updatePost = functions.firestore
    .document('EUU/{euId}')
    .onUpdate(async (snap, context) => {
        const afterUpdate = snap.after.data();
        afterUpdate.objectID = snap.after.id;
        return index.saveObject(afterUpdate);
    });

exports.deletePost = functions.firestore
    .document('EUU/{euId}')
    .onDelete(async (snap, context) => {
        const oldID = snap.id;
        return index.deleteObject(oldID);
    });
// module.exports = { createPro: this.createPro, deletePost: this.deletePost, updatePost: this.updatePost }
type or paste code here

type or paste code here