This project is read-only.

401 Authentication error

May 8, 2008 at 5:32 PM
Hello,

I'm trying to create the test application that ships with the MySpace Toolkit. I think I've set everything up properly. However, when I try to test my app, I get the following error :

<error>
<statuscode>401</statuscode>
<message>
Could not identify or did not find an approved authentication protocol. Check the targeted host and all necessary parameters.
</message>
</error>
May 13, 2008 at 1:02 AM
We are planning on coming out with an update to the toolkit soon. Until then the issue actually relates to the hostURL. You would need to set it to api.myspace.com instead of api.msappspace.com

Let me know if this helps.

Thanks for the feedback.
May 13, 2008 at 9:42 PM
Edited May 13, 2008 at 9:45 PM
I made this change, and I'm getting a different error now :

<error>
<statuscode>401</statuscode>
<message>
Invalid digital signature for base string: GET&http%3A%2F%2Fapi.myspace.com%2Fv1%2Fusers%2F8842028.xml&oauth_consumer_key%3Dhttp%253A%252F%252Fwww.myspace.com%252F378053170%26oauth_nonce%3D1cf738e5-226e-4989-8579-814dc92cf4ec%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1210712194%26oauth_token%3D%26oauth_version%3D1.0
</message>
</error>

Any idea what this means?
May 13, 2008 at 10:00 PM
Ok, it looks like I needed to make a few more userId replacements.  It's not throwing an error anymore, but I still can't tell if it's working.  Is this what I'm supposed to see when I visit my app?

This XML file does not appear to have any style information associated with it. The document tree is shown below.
     
<user xsi:schemaLocation="http://api.myspace.com/MySpaceAPI_1.1.xsd">
<userid>8842028</userid>
<uri>http://api.myspace.com/v1/users/8842028</uri>
<displayname>Panama Joe</displayname>
<weburi>http://www.myspace.com/panamajoe2323</weburi>
   
<imageuri>
http://b1.ac-images.myspacecdn.com/00055/10/33/55613301_s.jpg
</imageuri>

<largeimageuri>
http://b1.ac-images.myspacecdn.com/00055/10/33/55613301_l.jpg
</largeimageuri>
<usertype>RegularUser</usertype>
</user>
Sep 22, 2008 at 3:57 AM
I'm getting the same error "Invalid digital signature for base string" and I'm using api.myspace.com .  What did you mean "needed to make a few more userId replacements"?