Full-Text RSS

FREEMIUM
Por FiveFilters.org | Atualizado 1年前 | Tools
Popularidade

9.2 / 10

Latência

900ms

Nível de serviço

100%

Voltar para todas as discussões

Valid Key Not Supplied Error

avatar
macharia
8 years ago

I am trying to use the article extractor but whenever I try making a call using a valid rss url, I get an error

Valid Key Not Supplied

However, when I run the article converter using the same url and application, with the same key, I get valid output

avatar
macharia commented 8 years ago

I just selected an application and run the example code snippet on Mashape with no entry fields changes

 // These code snippets use an open-source library. http://unirest.io/php
$response = Unirest::post("https://full-text-rss.p.mashape.com/extract.php",
  array(
    "X-Mashape-Key" => "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "Content-Type" => "application/x-www-form-urlencoded",
    "Accept" => "application/json"
  ),
  array(
    "content" => "1",
    "inputhtml" => "<html><head><title>Example</title><body><article itemprop="articleBody"><p>Test</p></article></body></html>",
    "lang" => "2",
    "links" => "remove",
    "parser" => "libxml",
    "url" => "chomsky.info/articles/20131105.htm",
    "xss" => "1"
  )
);

When I run that snippet, I get an error

HTTP/1.1 200 OK
Connection: keep-alive 
Content-Length: 28
Content-Security-Policy: script-src 'self'; connect-src 'none'; font-src 'none'; style-src 'self'
Content-Type: text/html 
Date: Wed, 14 Jan 2015 08:29:53 GMT
Server: Mashape/5.0.5
X-Ratelimit-Calls-Limit: 500
X-Ratelimit-Calls-Remaining: 410
X-Robots-Tag: noindex, nofollow

A valid key must be supplied
avatar
fivefilters commented 8 years ago

Could you please show us how you’re making the call, and the parameters you’re passing. You can exclude the API key.

avatar
fivefilters commented 8 years ago

Hi Macharia, thanks for the report. We’ll look into this today and update again here.

Junte-se à discussão - adicione o comentário abaixo:

Efetue login / inscreva-se para postar novos comentários
Avaliação: 5 - Votos: 1