This project is read-only.

404 Not found issue


i used new basecamp API C# Wrapper for my web application. But when i try to access any json (eg: me.json) using my credentials (baseacmp username, password, account id), it always shows 404 not found status. Pls explain , i done anything wrong?


wrote Sep 12, 2013 at 11:35 PM

Please share the sample code (minus your credentials) you are running that produces the 404 error.  It is most likely your account ID is incorrect - the ID is the number at the beginning of your basecamp URL - for the account id is 1772482.

Baijupv wrote Oct 3, 2013 at 2:41 PM

i used this type of code..

HttpWebRequest _WebRequest = null;
HttpWebResponse _WebResponse = null;
UTF8Encoding _Encoding = new UTF8Encoding();
string _EncryptedDetails = null;
string _Credentials = null;
string _URL = " {myaccountid} /api/v1/projects.json";

_WebRequest = (HttpWebRequest)WebRequest.Create(_URL);
            _WebRequest.Method = "GET";
            _WebRequest.ContentType = "text/json";
            _WebRequest.Accept = "text/json";

            _WebRequest.UserAgent = "My project name (my email address)";

            _WebRequest.Host = "";
            _WebRequest.ServicePoint.Expect100Continue = false;
            _WebRequest.Proxy = WebRequest.GetSystemWebProxy();
            _Credentials = string.Concat(m_Username, ":", m_Password);
            _EncryptedDetails = Convert.ToBase64String(Encoding.UTF8.GetBytes(_Credentials));
            _WebRequest.Headers.Add("Authorization", _EncryptedDetails);

            _WebResponse = (HttpWebResponse)_WebRequest.GetResponse(); -- From this section i got an error  - "The remote server returned an error: (404) Not Found." 

trevorjdaniel wrote Jul 24, 2014 at 10:17 PM

_WebRequest.UserAgent = "My project name (my email address)";

is wrong.

I tripped up on this.

user just your email address. the api is fine.