I am getting an error in this code. what is wrong. It logs the messages in the console. message is being sent corectly from the frontend. api is throwing error

Hey,

You should probably check your plan and billing details as suggested.

Here is a related post that might provide some help too: 429 Error : insufficient_quota