World Cities

FREEMIUM
От Andres Olvera | Обновлено 4 days ago | Location
Популярность

9.4 / 10

Задержка

570ms

Уровень обслуживания

100%

Health Check

N/A

Назад ко всем обсуждениям

Getting a 404 error when testing API

Rapid account: Jenn Sung
jenn-sung
6 years ago

Hi, I’m attempting to look at the API with my API key and getting a 404 error when trying to run it. The error in my terminal is: <Unirest::HttpResponse:0x00007f8ae11e0fc8 @body= "<!doctype html>\n" + "<html lang=\"en\">\n" + " <head>\n" + " <meta charset=\"utf-8\">\n" + " <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n" + " <title>404: Page not found - HostGator</title>\n" + " <meta name=\"description\" content=\"\">\n" + " <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n" + " <link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/img-sys/favicon.ico\" />\n" + " \n" + " <link rel=\"stylesheet\" href=\"/img-sys/css/style.min.css\">\n" + " \n" + " <script src=\"/img-sys/js/respond.min.js\" async=\"async\"></script>\n" + " <script src=\"/img-sys/js/modernizr-2.6.2.min.js\" async=\"async\"></script>\n" + " </head>\n" + " <body>\n" + " <!--[if lt IE 8]>\n" + " <p class=\"browserupgrade\">You are using an <strong>outdated</strong> browser. Please <a href=\"http://browsehappy.com/?utm_source=externalerror&utm_medium=hgsuspage&utm_campaign=client404\">upgrade your browser</a> to improve your experience.</p>\n" + " <![endif]-->\n" + " <div class=\"wrapper\">\n" + " <header class=\"header bg_white\">\n" + " <div class=\"container\">\n" + " <em class=\"info\">This Site Is Powered By</em>\n" + " <a href=\"http://www.hostgator.com?utm_source=externalerror&utm_medium=hgsuspage&utm_campaign=client404\" class=\"logo\" title=\"Hostgator\">\n" + " <span class=\"is-hidden\">Hostgator</span>\n" + " </a>\n" + " </div>\n" + " </header>\n" + " <section class=\"banner bg_white banner--404\">\n" + " <h1>404: Page Not&nbsp;Found</h1>\n" + " <p>This page does not exist</p>\n" + " <div class=\"banner__bg\"></div>\n" + " </section>\n" + " <section class=\"margin__btm\">\n" + " <div class=\"container\">\n" + " <div class=\"row\">\n" + " <div class=\"content col__6\">\n" + " <h2 class=\"content__headline\">Why Am I Seeing&nbsp;This?</h2>\n" + " <p>A 404 error means that the requested file cannot be found. This can be due to an incorrect URL, a misnamed file, an improper directive within the .htaccess file, or a file having been uploaded to an incorrect folder. Please ensure you typed the correct URL.</p>\n" + " </div>\n" + " <div class=\"content content--bdr col__6\">\n" + " <h2 class=\"content__headline\">How Do I Fix It?</h2>\n" + " <p>\n" + " <a href=\"http://support.hostgator.com/articles/specialized-help/technical/404-error-page?utm_source=externalerror&utm_medium=hgsuspage&utm_campaign=client404\" class=\"content__link\">Troubleshooting 404 Errors</a><br />\n" + " <a href=\"http://support.hostgator.com/articles/cpanel/custom-error-pages?utm_source=externalerror&utm_medium=hgsuspage&utm_campaign=client404\" class=\"content__link\">Learn How To Customize This Page</a>\n" + " </p>\n" + " <p>For full information on 404 errors and how to resolve them, please&nbsp;<a href=\"http://www.hostgator.com/contact?utm_source=externalerror&utm_medium=hgsuspage&utm_campaign=client404\">contact&nbsp;us</a>, or learn more with the support links above.</p>\n" + " </div>\n" + " </div>\n" + " </div>\n" + " </section>\n" + " <div class=\"snappy__bg\">\n" + " <div class=\"container\">\n" + " <img src=\"/img-sys/img/snappy.png\" class=\"snappy\" width=\"226\" height=\"195\" alt=\"HostGator\">\n" + " </div>\n" + " </div>\n" + " </div>\n" + " <footer class=\"sticky\">\n" + " <div class=\"arrow__bg\"></div>\n" + " <div class=\"container\">\n" + " <div class=\"row\">\n" + " <div class=\"col__6\">\n" + " <div class=\"v_middle\">\n" + " <h3>Want to start your own website?</h3>\n" + " <h2>It\xE2\x80\x99s easier than you&nbsp;think!</h2>\n" + " </div>\n" + " </div>\n" + " <div class=\"col__6\">\n" + " <a href=\"http://www.hostgator.com?utm_source=externalerror&utm_medium=hgsuspage&utm_campaign=client404\" class=\"btn\">Start Your Site Now!</a>\n" + " </div>\n" + " </div>\n" + " </div>\n" + " </footer>\n" + " </body>\n" + "</html>\n", @code=404, @headers= {:accept_ranges=>"bytes", :content_type=>"text/html", :date=>"Sun, 28 Jan 2018 16:59:14 GMT", :last_modified=>"Sat, 18 Nov 2017 18:59:27 GMT", :server=>"Mashape/5.0.6", :x_ratelimit_requests_limit=>"100", :x_ratelimit_requests_remaining=>"82", :content_length=>"4250", :connection=>"keep-alive"}, @raw_body= "<!doctype html>\n" + "<html lang=\"en\">\n" + " <head>\n" + " <meta charset=\"utf-8\">\n" + " <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n" + " <title>404: Page not found - HostGator</title>\n" + " <meta name=\"description\" content=\"\">\n" + " <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n" + " <link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/img-sys/favicon.ico\" />\n" + " \n" + " <link rel=\"stylesheet\" href=\"/img-sys/css/style.min.css\">\n" + " \n" + " <script src=\"/img-sys/js/respond.min.js\" async=\"async\"></script>\n" + " <script src=\"/img-sys/js/modernizr-2.6.2.min.js\" async=\"async\"></script>\n" + " </head>\n" + " <body>\n" + " <!--[if lt IE 8]>\n" + " <p class=\"browserupgrade\">You are using an <strong>outdated</strong> browser. Please <a href=\"http://browsehappy.com/?utm_source=externalerror&utm_medium=hgsuspage&utm_campaign=client404\">upgrade your browser</a> to improve your experience.</p>\n" + " <![endif]-->\n" + " <div class=\"wrapper\">\n" + " <header class=\"header bg_white\">\n" + " <div class=\"container\">\n" + " <em class=\"info\">This Site Is Powered By</em>\n" + " <a href=\"http://www.hostgator.com?utm_source=externalerror&utm_medium=hgsuspage&utm_campaign=client404\" class=\"logo\" title=\"Hostgator\">\n" + " <span class=\"is-hidden\">Hostgator</span>\n" + " </a>\n" + " </div>\n" + " </header>\n" + " <section class=\"banner bg_white banner--404\">\n" + " <h1>404: Page Not&nbsp;Found</h1>\n" + " <p>This page does not exist</p>\n" + " <div class=\"banner__bg\"></div>\n" + " </section>\n" + " <section class=\"margin__btm\">\n" + " <div class=\"container\">\n" + " <div class=\"row\">\n" + " <div class=\"content col__6\">\n" + " <h2 class=\"content__headline\">Why Am I Seeing&nbsp;This?</h2>\n" + " <p>A 404 error means that the requested file cannot be found. This can be due to an incorrect URL, a misnamed file, an improper directive within the .htaccess file, or a file having been uploaded to an incorrect folder. Please ensure you typed the correct URL.</p>\n" + " </div>\n" + " <div class=\"content content--bdr col__6\">\n" + " <h2 class=\"content__headline\">How Do I Fix It?</h2>\n" + " <p>\n" + " <a href=\"http://support.hostgator.com/articles/specialized-help/technical/404-error-page?utm_source=externalerror&utm_medium=hgsuspage&utm_campaign=client404\" class=\"content__link\">Troubleshooting 404 Errors</a><br />\n" + " <a href=\"http://support.hostgator.com/articles/cpanel/custom-error-pages?utm_source=externalerror&utm_medium=hgsuspage&utm_campaign=client404\" class=\"content__link\">Learn How To Customize This Page</a>\n" + " </p>\n" + " <p>For full information on 404 errors and how to resolve them, please&nbsp;<a href=\"http://www.hostgator.com/contact?utm_source=externalerror&utm_medium=hgsuspage&utm_campaign=client404\">contact&nbsp;us</a>, or learn more with the support links above.</p>\n" + " </div>\n" + " </div>\n" + " </div>\n" + " </section>\n" + " <div class=\"snappy__bg\">\n" + " <div class=\"container\">\n" + " <img src=\"/img-sys/img/snappy.png\" class=\"snappy\" width=\"226\" height=\"195\" alt=\"HostGator\">\n" + " </div>\n" + " </div>\n" + " </div>\n" + " <footer class=\"sticky\">\n" + " <div class=\"arrow__bg\"></div>\n" + " <div class=\"container\">\n" + " <div class=\"row\">\n" + " <div class=\"col__6\">\n" + " <div class=\"v_middle\">\n" + " <h3>Want to start your own website?</h3>\n" + " <h2>It\xE2\x80\x99s easier than you&nbsp;think!</h2>\n" + " </div>\n" + " </div>\n" + " <div class=\"col__6\">\n" + " <a href=\"http://www.hostgator.com?utm_source=externalerror&utm_medium=hgsuspage&utm_campaign=client404\" class=\"btn\">Start Your Site Now!</a>\n" + " </div>\n" + " </div>\n" + " </div>\n" + " </footer>\n" + " </body>\n" + "</html>\n">

Rapid account: Andruxnet
andruxnet Commented 6 years ago

Thank you for reporting this issue. It should be working now, please give it a try again.

Присоединяйтесь к обсуждению – добавьте комментарий ниже:

Войдите / Зарегистрируйтесь, чтобы публиковать новые комментарии