Can't connect firebase functions with google cloud sql

63 Views Asked by At

I'm hosting a sql instance on google cloud sql. Firebase functions worked with this instance flawlessly. Now it stopped working out of nowhere and I can't seem to get any error.

Code:

 const mssql = require('mssql');
 const settings = require('../settings.js');
    const pool = await mssql.connect(settings.sqlConfig);
    const query = `EXEC spUserDelete @userAuthUid='${userAuthUid}', @value=${value}`
    const queryRes = await pool.request().query(query)

It never returns queryRes and instead I always get Timeout error.

0

There are 0 best solutions below