Full-Text RSS

FREEMIUM
Par FiveFilters.org | Mise à jour il y a un an | Tools
Popularité

9.2 / 10

Latence

900ms

Niveau de service

100%

Retour à toutes les discussions

Valid Key Not Supplied Error

avatar
macharia
il y a 8 ans

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 il y a 8 ans

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 il y a 8 ans

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 il y a 8 ans

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

Participez à la discussion - ajoutez un commentaire ci-dessous:

Connectez-vous / Inscrivez-vous pour publier de nouveaux commentaires
Note : 5 - Votes : 1