Random Famous Quotes

FREEMIUM
Par Andres Olvera | Mise à jour 6 days ago | Data
Popularité

9.4 / 10

Latence

462ms

Niveau de service

100%

Health Check

N/A

Retour à toutes les discussions

Error - Response 406

Rapid account: Epodwyer
epodwyer
5 years ago

I am using Python and Requests to access the API. This was working fine. Now when I try to access the GET end point, with my API key, I get a HTML 406 Response.

“Test Endpoint” on Random Famous Quotes API Documentation works but it will not work with Python and Requests from the command line.

Rapid account: Bnxlxbsnzc 54
bnxlxbsnzc54 Commented 2 months ago

Buy Verified Stripe Account

Buy Verified Stripe Account ( https://seosmmseller.com/product/buy-verified-stripe-account/ ) · We offer USA, UK, CA, AUS and any country fully Verified personal and business best stripe account.100% trusted. Email, number, SSN, driving license, passport, photo id card verified than others documents access verified stripe account.

If you want to more information just contact now.
24/7 Ready to Reply
Gmail: seosmmseller@gmail.com
Telegram: @SEOSMMSeller_Admin
Skype: SEOSmmSeller

Stripe account full access.
Bank verified account.
Access phone numbers.
Full SSN provided.
A driving license has been issued to the account.
EIN verified.
Tax verified and utility bills verified.
100% Customer satisfaction guaranteed.
Delivery within 12 hours.
24/7 customer support.

Buy Verified Stripe Account · We offer USA, UK, CA, AUS and any country fully Verified personal and business best stripe account.100% trusted. Email, number, SSN, driving license, passport, photo id card verified than others documents access verified stripe account.

Rapid account: Epodwyer
epodwyer Commented 5 years ago

Thanks, adding User-agent to the header works for me too.

Rapid account: Payamazadi Natgeo
payamazadi-natgeo Commented 5 years ago

Looks like it works when I add a User-agent’ key to the headers. It was a random guess. Not sure why it works from curl without a user-agent header, unless curl adds one by default (and maybe so does unirest).

Rapid account: Payamazadi Natgeo
payamazadi-natgeo Commented 5 years ago

I’m having the same problem.
def get_quote():
response = requests.get(
https://andruxnet-random-famous-quotes.p.rapidapi.com/?cat=famous&count=10’,
headers={
‘x-rapidapi-host’: ‘andruxnet-random-famous-quotes.p.rapidapi.com’,
‘x-rapidapi-key’: ‘(removed)’
}
)
print(vars(response))

Rapid account: Epodwyer
epodwyer Commented 5 years ago

import requests

api_host = "andruxnet-random-famous-quotes.p.rapidapi.com"
api_key = 'from rapidapi console’
api_url = “https://andruxnet-random-famous-quotes.p.rapidapi.com/?cat=famous&count=10

headers = {“X-RapidAPI-Host”:api_host, “X-RapidAPI-Key”: api_key}
response = requests.get(api_url, headers = headers)

The response is error 406= ‘<head><title>Not Acceptable!</title></head><body><h1>Not Acceptable!</h1><p>An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security.</p></body></html>’

I’m using python3.

Thanks for your help

Any update please?

Rapid account: Andruxnet
andruxnet Commented 5 years ago

Hi,

Can you share your relevant Python and command line code?

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

Connectez-vous / Inscrivez-vous pour publier de nouveaux commentaires