too many server requests error

Hi there,

My code was working before, but now I am getting a too many server requests error.
Any information you can give to solve this problem would be appreciated.

I have a 3rd party api sending information to my site. I then have to take that information and query databaseB to get some information that will then go in databaseA.

Self taught coder so excuse the poor code. I found that I had to use async function/ await because if i did not then the code would move on and the values would be empty.

  1. to access the info in a databaseB, i would use something like this…

let birthday = ( await getID(userId)).birthday;
let name = ( await getID(userId)).name;
let address = ( await getID(userId)).addresss;

but this is causing too many server requests and the info is not getting to databaseA

If i don’t use async/await and make them constants, then it works

let birthday = “Nov 13th, 2020”;
let name = “pablo”;
let address = “1234 way street”;

Also if there is another way of doing this, i am open to that.

  1. is there any way to whitelist an 3rd party api so it can have a lot of requests?

  2. another thing that worked before but I had to fix, was i could not insert something into databaseA from the page that interacts with the api. I had to write a function. Is there a list of changes that have been made so I can go through and see what I need to fix on my site?

Thanks in advance