Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

332
Views
Uncaught TypeError: axios.get(...) is not a function

when I try to use get from axios, it just does not get anything.

bot.on("message", async function(message) {
    try {
        if (message.author == bot.user) return;
        if (message.channel.type == "dm" || message.channel.type == "group") {
            await new Promise(resolve => setTimeout(resolve, 3000));
            if (!message.channel.typing) {
                message.channel.startTyping();
                setTimeout(function() {
                    const URI = "http://api.brainshop.ai/get?bid=&key=&uid=[uid]&msg=[msg]";
                    const encodedURI = encodeURI(URI);
                    axios.get(encodedURI)
                        .then(async response => {
                            var data = response
                            message.reply(data)
                        });
                    message.channel.stopTyping();
                }, 5000);
            }
        }
    } catch (e) {
        console.log(e)
    }
});

I have the correct URL, I just took out part of it.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!