Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

275
Visualizações
Cannot connect to Meaning Cloud API: key missing

I have tried connecting to the API but for some reason it says I am missing the key. I am including the key and when I log it in the console, I see the correct value. Even I test the value of the API key that is logged, in the Meaning Cloud test tool, and it works correctly. Since at the moment is only a test, I have added directly a URL of an article that I want to check with the API.

Test API: https://learn.meaningcloud.com/developer/sentiment-analysis/2.1/console

I am using axios but I also tried with node-fetch and got the same result.

Here is the full code of the project in Github: https://github.com/schilate68/Natural_Language_Processing/blob/master/src/server/index.js

app.post('/test', function (req, res) {
    console.log("In POST test API");
    console.log(process.env.API_KEY);

    axios
        .post('https://api.meaningcloud.com/sentiment-2.1', {
            key: process.env.API_KEY,
            url: 'https://blog.logrocket.com/complete-guide-flutter-architecture/',
            lang: "en"
        })
        .then(res => ({
            status: res.status,
            body: res.data

        }))
        .then(({ status, body }) => console.log(status, body))
        .catch(error => {
            console.error(error)
        })

})

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda