StatDNS

PAID
By fcambus
Updated 5 months ago
Tools
7.8/10
Popularity Score
278ms
Latency
93%
Success Rate
lirbank3 years ago
Getting 504 errorsHi, I am getting a lot of 504 errors HTML bodies: <html> <head><title>504 Gateway Time-out</title></head> <body bgcolor="white"> <center><h1>504 Gateway Time-out</h1></center> <hr><center>openresty/1.7.7.2</center> </body> </html> I believe this has happened once before a couple of days ago (this or something similar), then I got it working again by replacing our production API key with the testing API key. Later when I tried with the production key it worked again, so I switched back. But now it's happening again. Can you check?
fcambus3 years ago
Hello, Thanks for reporting this. I noticed the same issue on my end, seems like Mashape proxies have had some glitches. It seems it was only temporary and seems fixed now, I was able to perform requests successfully again. Regards.
lirbank3 years ago
Note, I was pasting html in the ticket above and it seems Mashaps's website is rendering it as HTML instead of showing the markup.
Hi Developer, feel free to post your answer:

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://statdns-v1.p.rapidapi.com/{domain}/{querytype}")
.header("X-RapidAPI-Host", "statdns-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication