RocketAPI for Instagram

FREEMIUM
Verified
Durch RocketAPI | Aktualisiert vor 10 Monaten | Social
Popularität

9.9 / 10

Latenz

1,931ms

Service Level

100%

Health Check

N/A

Zurück zu allen Diskussionen

I got 451 error from api

Rapid account: Olegor Jum Y Am R 9 U
olegor-JumYAmR9U
vor 10 Monaten


Here is example of 451 response.
request params:
{
method: ‘POST’,
url: ‘https://rocketapi-for-instagram.p.rapidapi.com/instagram/user/get_media’,
headers: {
‘content-type’: ‘application/json’,
‘X-RapidAPI-Key’: ‘Your_key’,
‘X-RapidAPI-Host’: ‘rocketapi-for-instagram.p.rapidapi.com
},
data: { id: 212521367, count: 50, max_id: ‘2966171025477845404_212521367’ },
timeout: 180000
}
response error: error {
“message”: “Request failed with status code 451”,
“name”: “AxiosError”,
“stack”: “AxiosError: Request failed with status code 451\n at settle (/var/www/app/node_modules/axios/dist/node/axios.cjs:1902:12)\n at IncomingMessage.handleStreamEnd (/var/www/app/node_modules/axios/dist/node/axios.cjs:2954:11)\n at IncomingMessage.emit (node:events:539:35)\n at endReadableNT (node:internal/streams/readable:1345:12)\n at processTicksAndRejections (node:internal/process/task_queues:83:21)”,
“config”: {
“transitional”: {
“silentJSONParsing”: true,
“forcedJSONParsing”: true,
“clarifyTimeoutError”: false
},
“adapter”: [
“xhr”,
“http”
],
“transformRequest”: [
null
],
“transformResponse”: [
null
],
“timeout”: 180000,
“xsrfCookieName”: “XSRF-TOKEN”,
“xsrfHeaderName”: “X-XSRF-TOKEN”,
“maxContentLength”: -1,
“maxBodyLength”: -1,
“env”: {
“Blob”: null
},
“headers”: {
“Accept”: “application/json, text/plain, /”,
“Content-Type”: “application/json”,
“X-RapidAPI-Key”: “Your_key”,
“X-RapidAPI-Host”: “rocketapi-for-instagram.p.rapidapi.com”,
“User-Agent”: “axios/1.3.6”,
“Content-Length”: “41”,
“Accept-Encoding”: “gzip, compress, deflate, br”
},
“method”: “post”,
“url”: “https://rocketapi-for-instagram.p.rapidapi.com/instagram/user/get_media”,
“data”: “{“id”:184692323,“count”:50,“max_id”:null}”
},
“code”: “ERR_BAD_REQUEST”,
“status”: 451
}

Rapid account: Rocketapi
rocketapi Commented vor 10 Monaten

Hello! This error is not from our API. We never return the 451 error. Contact RapidAPI support if the problem recurs.

Nehmen Sie an der Diskussion teil - fügen Sie unten einen Kommentar hinzu:

Anmelden / Registrieren, um neue Kommentare zu veröffentlichen