I’m trying to access the FlightInfoEx API via REST and C#. I was able to pull down info 3 times yesterday, and since then, I’ve gotten an HTTP500 error.
Here’s my POST:
POST http://flightxml.flightaware.com/json/FlightXML2/FlightInfoEx HTTP/1.1
Authorization: Basic **REDACTED==**
Host: flightxml.flightaware.com
Content-Length: 11
Expect: 100-continue
Proxy-Connection: Keep-Alive
ident=N12MU
Here’s the response:
HTTP/1.1 500 Internal Server Error
Via: 1.1 varnish, 1.1 STAPX1000
Connection: Keep-Alive
Proxy-Connection: Keep-Alive
Content-Length: 543
Age: 0
Date: Tue, 28 Apr 2015 17:11:55 GMT
Content-Type: text/html; charset=iso-8859-1
Server: FlightAware/3.1
Vary: Accept-Encoding
Accept-Ranges: bytes
X-Varnish: 3142241935
X-FA-Cache: MISS
cache-control: max-age=5, must-revalidate
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
support@flightaware.com and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
</body></html>
Unfortunately, this error doesn’t give me any information as to what’s wrong.
Could you please give me an idea of what I’m doing wrong, if anything?